summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/imx1.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-20 11:02:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-20 11:02:40 +0200
commit2cf467ec07cac78e60742e24553e89f80c401399 (patch)
treed8fb139b78b768142c2adfa07d77eab3f1322cb0 /arch/arm/mach-imx/imx1.c
parentd3924e4fe5c8a1445ca677065fa1376b51d3db7e (diff)
downloadbarebox-2cf467ec07cac78e60742e24553e89f80c401399.tar.gz
barebox-2cf467ec07cac78e60742e24553e89f80c401399.tar.xz
ARM: i.MX: move esdctl device registration to soc_init
The esdctl devices are currently not in the devicetrees. this means they are not registered when booting from the devicetree. Move the device registration from soc_devices_init to soc_init which is called even with devicetree support so that we get esdctl devices. 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, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx1.c b/arch/arm/mach-imx/imx1.c
index ecd71b865c..78a0242474 100644
--- a/arch/arm/mach-imx/imx1.c
+++ b/arch/arm/mach-imx/imx1.c
@@ -55,6 +55,7 @@ void imx1_setup_eimcs(size_t cs, unsigned upper, unsigned lower)
int imx1_init(void)
{
imx1_detect_reset_source();
+ add_generic_device("imx1-sdramc", 0, NULL, MX1_SDRAMC_BASE_ADDR, 0x100, IORESOURCE_MEM, NULL);
return 0;
}
@@ -70,7 +71,6 @@ int imx1_devices_init(void)
add_generic_device("imx1-gpio", 2, NULL, MX1_GPIO3_BASE_ADDR, 0x100, IORESOURCE_MEM, NULL);
add_generic_device("imx1-gpio", 3, NULL, MX1_GPIO4_BASE_ADDR, 0x100, IORESOURCE_MEM, NULL);
add_generic_device("imx1-wdt", 0, NULL, MX1_WDT_BASE_ADDR, 0x100, IORESOURCE_MEM, NULL);
- add_generic_device("imx1-sdramc", 0, NULL, MX1_SDRAMC_BASE_ADDR, 0x100, IORESOURCE_MEM, NULL);
return 0;
}