summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/imx1.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-16 09:43:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-06 13:43:08 +0100
commit4fa54b7e5d201a3962dbed318540855ef3553f19 (patch)
treeb084340b9f987e057739990cafba1cd7974b07fc /arch/arm/mach-imx/imx1.c
parent65c1ee9cc0dcd49526403da9244128781596ecfc (diff)
downloadbarebox-4fa54b7e5d201a3962dbed318540855ef3553f19.tar.gz
barebox-4fa54b7e5d201a3962dbed318540855ef3553f19.tar.xz
ARM i.MX: Add driver to get sdram base and size
The code initializing the SDRAM controller is not at the same place where SDRAM is registered with barebox. To reduce the risk of registering wrong SDRAM sizes this patch adds a driver for the ESDCTL which reads back the configured SDRAM size and registers the memory found with barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/imx1.c')
-rw-r--r--arch/arm/mach-imx/imx1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx1.c b/arch/arm/mach-imx/imx1.c
index 18901ea6d0..59cff28ff1 100644
--- a/arch/arm/mach-imx/imx1.c
+++ b/arch/arm/mach-imx/imx1.c
@@ -49,6 +49,8 @@ void imx1_setup_eimcs(size_t cs, unsigned upper, unsigned lower)
writel(lower, MX1_EIM_BASE_ADDR + 4 + cs * 8);
}
+#include <mach/esdctl.h>
+
static int imx1_init(void)
{
imx_iomuxv1_init((void *)MX1_GPIO1_BASE_ADDR);