summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-08-14 10:24:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-14 10:24:48 +0200
commite3dde870301088469300c1ae69c346ed558b6ca8 (patch)
tree1751b5a979dbfdd0359a37a5dfb09e2b0dd1691d /board
parent384b6a4e5267aa730a57dd71898d4dcd98582903 (diff)
downloadbarebox-e3dde870301088469300c1ae69c346ed558b6ca8.tar.gz
barebox-e3dde870301088469300c1ae69c346ed558b6ca8.tar.xz
pcm038: Add SRAM device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board')
-rw-r--r--board/pcm038/pcm038.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/pcm038/pcm038.c b/board/pcm038/pcm038.c
index f292089c6d..ccbb576f8c 100644
--- a/board/pcm038/pcm038.c
+++ b/board/pcm038/pcm038.c
@@ -55,6 +55,16 @@ static struct device_d sdram_dev = {
.type = DEVICE_TYPE_DRAM,
};
+static struct device_d sram_dev = {
+ .name = "ram",
+ .id = "sram0",
+
+ .map_base = 0xc8000000,
+ .size = 512 * 1024, /* Can be up to 2MiB */
+
+ .type = DEVICE_TYPE_DRAM,
+};
+
static struct fec_platform_data fec_info = {
.xcv_type = MII100,
};
@@ -153,6 +163,7 @@ static int pcm038_devices_init(void)
register_device(&cfi_dev);
register_device(&nand_dev);
register_device(&sdram_dev);
+ register_device(&sram_dev);
PCCR0 |= PCCR0_CSPI1_EN;
PCCR1 |= PCCR1_PERCLK2_EN;