summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phycard-i.MX27
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/phycard-i.MX27
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/phycard-i.MX27')
-rw-r--r--arch/arm/boards/phycard-i.MX27/pca100.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/boards/phycard-i.MX27/pca100.c b/arch/arm/boards/phycard-i.MX27/pca100.c
index 9a10a9d28a..68f972a172 100644
--- a/arch/arm/boards/phycard-i.MX27/pca100.c
+++ b/arch/arm/boards/phycard-i.MX27/pca100.c
@@ -123,7 +123,6 @@ static int pca100_devices_init(void)
{
int i;
struct device_d *nand;
- struct device_d *sdram_dev;
unsigned int mode[] = {
PD0_AIN_FEC_TXD0,
@@ -198,9 +197,7 @@ static int pca100_devices_init(void)
imx_gpio_mode(mode[i]);
imx27_add_nand(&nand_info);
- sdram_dev = add_mem_device("ram0", 0xa0000000, 128 * 1024 * 1024,
- IORESOURCE_MEM_WRITEABLE);
- armlinux_add_dram(sdram_dev);
+ arm_add_mem_device("ram0", 0xa0000000, 128 * 1024 * 1024);
imx27_add_fec(&fec_info);
imx27_add_mmc0(NULL);