From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1azitd-0001q4-Kh for barebox@lists.infradead.org; Mon, 09 May 2016 10:58:42 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 9 May 2016 12:58:17 +0200 Message-Id: <1462791497-5107-1-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] ARM: mxs: add parameter to mx28_mem_init to allow custom memory config To: barebox@lists.infradead.org UmVuYW1lIHRoZSBhbHJlYWR5IGdsb2JhbCBhcnJheSBvZiBkZWZhdWx0IG1lbW9yeSBzZXR0aW5n cyB0byBtYWtlIHRoZQppbnRlbmRlZCB1c2FnZSBtb3JlIG9idmlvdXMuCgpBbHNvIG1ha2UgZ2Vu ZXJvdXMgdXNlIG9mIHRoZSBjb25zdCBrZXl3b3JkLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWlu ZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4KLS0tCiBhcmNoL2FybS9i b2FyZHMvZHVja2JpbGwvbG93bGV2ZWwuYyAgICAgICAgICAgfCAgMiArLQogYXJjaC9hcm0vYm9h cmRzL2ZyZWVzY2FsZS1teDI4LWV2ay9sb3dsZXZlbC5jIHwgIDIgKy0KIGFyY2gvYXJtL2JvYXJk cy9rYXJvLXR4MjgvbG93bGV2ZWwuYyAgICAgICAgICB8ICAyICstCiBhcmNoL2FybS9tYWNoLW14 cy9pbmNsdWRlL21hY2gvaW5pdC5oICAgICAgICAgfCAgNCArKy0tCi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