summaryrefslogtreecommitdiffstats
path: root/board/ipe337
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-06-11 00:12:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-07-21 16:41:46 +0200
commit6872d79b7325c6ae82b79ab5c8a0b3eb0181e50f (patch)
tree74122bbb21568d778dd616e5f34cc9f8d24fe2ea /board/ipe337
parent86ef24563b71107546feb26f041477ae57f47d9a (diff)
downloadbarebox-6872d79b7325c6ae82b79ab5c8a0b3eb0181e50f.tar.gz
barebox-6872d79b7325c6ae82b79ab5c8a0b3eb0181e50f.tar.xz
register sdram devices correctly
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board/ipe337')
-rw-r--r--board/ipe337/ipe337.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/board/ipe337/ipe337.c b/board/ipe337/ipe337.c
index ea949b1274..3aa1be8924 100644
--- a/board/ipe337/ipe337.c
+++ b/board/ipe337/ipe337.c
@@ -12,12 +12,16 @@ static struct device_d cfi_dev = {
.size = 32 * 1024 * 1024,
};
-static struct device_d sdram_dev = {
- .name = "ram",
- .id = "ram0",
+static struct memory_platform_data ram_pdata = {
+ .name = "ram0",
+ .flags = DEVFS_RDWR,
+};
+static struct device_d sdram_dev = {
+ .name = "mem",
.map_base = 0x0,
.size = 128 * 1024 * 1024,
+ .platform_data = &ram_pdata,
};
static struct device_d smc911x_dev = {