summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/freescale-mx23-evk
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-30 13:57:22 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-08-01 21:49:33 +0800
commit95067e23ac78db76db3afddc92e17b6789012d38 (patch)
tree4c3d417d7ae43ec834c1ebe5950652da5072b5d7 /arch/arm/boards/freescale-mx23-evk
parentb821d73607cc6387b1ee588af97a44e8eb2b4fe2 (diff)
downloadbarebox-95067e23ac78db76db3afddc92e17b6789012d38.tar.gz
barebox-95067e23ac78db76db3afddc92e17b6789012d38.tar.xz
arm: introduce arm_add_mem_device to register dram device
this will automaticaly register the device to armlinux_add_dram Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/boards/freescale-mx23-evk')
-rw-r--r--arch/arm/boards/freescale-mx23-evk/mx23-evk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/boards/freescale-mx23-evk/mx23-evk.c b/arch/arm/boards/freescale-mx23-evk/mx23-evk.c
index f9f85fa6dd..7e23e9a337 100644
--- a/arch/arm/boards/freescale-mx23-evk/mx23-evk.c
+++ b/arch/arm/boards/freescale-mx23-evk/mx23-evk.c
@@ -29,9 +29,7 @@ static int mx23_evk_devices_init(void)
{
struct device_d *sdram_dev;
- sdram_dev = add_mem_device("ram0", IMX_MEMORY_BASE, 32 * 1024 * 1024,
- IORESOURCE_MEM_WRITEABLE);
- armlinux_add_dram(sdram_dev);
+ sdram_dev = arm_add_mem_device("ram0", IMX_MEMORY_BASE, 32 * 1024 * 1024);
armlinux_set_bootparams(dev_get_mem_region(sdram_dev, 0) + 0x100);
armlinux_set_architecture(MACH_TYPE_MX23EVK);