summaryrefslogtreecommitdiffstats
path: root/board/pcm038
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/pcm038
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/pcm038')
-rw-r--r--board/pcm038/pcm038.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/board/pcm038/pcm038.c b/board/pcm038/pcm038.c
index 6013ea949d..7866499686 100644
--- a/board/pcm038/pcm038.c
+++ b/board/pcm038/pcm038.c
@@ -46,17 +46,28 @@ static struct device_d cfi_dev = {
.size = 32 * 1024 * 1024,
};
+static struct memory_platform_data ram_pdata = {
+ .name = "ram0",
+ .flags = DEVFS_RDWR,
+};
+
static struct device_d sdram_dev = {
- .name = "ram",
+ .name = "mem",
.map_base = 0xa0000000,
.size = 128 * 1024 * 1024,
+ .platform_data = &ram_pdata,
+};
+
+static struct memory_platform_data sram_pdata = {
+ .name = "sram0",
+ .flags = DEVFS_RDWR,
};
static struct device_d sram_dev = {
- .name = "ram",
- .id = "sram0",
+ .name = "mem",
.map_base = 0xc8000000,
.size = 512 * 1024, /* Can be up to 2MiB */
+ .platform_data = &sram_pdata,
};
static struct fec_platform_data fec_info = {