diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-07-30 13:57:22 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-08-01 21:49:33 +0800 |
commit | 95067e23ac78db76db3afddc92e17b6789012d38 (patch) | |
tree | 4c3d417d7ae43ec834c1ebe5950652da5072b5d7 /arch/arm/boards/chumby_falconwing | |
parent | b821d73607cc6387b1ee588af97a44e8eb2b4fe2 (diff) | |
download | barebox-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/chumby_falconwing')
-rw-r--r-- | arch/arm/boards/chumby_falconwing/falconwing.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/boards/chumby_falconwing/falconwing.c b/arch/arm/boards/chumby_falconwing/falconwing.c index 69c3a61be5..06916f0a01 100644 --- a/arch/arm/boards/chumby_falconwing/falconwing.c +++ b/arch/arm/boards/chumby_falconwing/falconwing.c @@ -339,8 +339,7 @@ static int falconwing_devices_init(void) for (i = 0; i < ARRAY_SIZE(pad_setup); i++) imx_gpio_mode(pad_setup[i]); - sdram_dev = add_mem_device("ram0", IMX_MEMORY_BASE, 64 * 1024 * 1024, - IORESOURCE_MEM_WRITEABLE); + sdram_dev = arm_add_mem_device("ram0", IMX_MEMORY_BASE, 64 * 1024 * 1024); imx_set_ioclk(480000000); /* enable IOCLK to run at the PLL frequency */ /* run the SSP unit clock at 100,000 kHz */ imx_set_sspclk(0, 100000000, 1); @@ -351,7 +350,6 @@ static int falconwing_devices_init(void) falconwing_init_usb(); - armlinux_add_dram(sdram_dev); armlinux_set_bootparams(dev_get_mem_region(sdram_dev, 0) + 0x100); armlinux_set_architecture(MACH_TYPE_CHUMBY); |