From e3dde870301088469300c1ae69c346ed558b6ca8 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 14 Aug 2008 10:24:48 +0200 Subject: pcm038: Add SRAM device Signed-off-by: Sascha Hauer --- board/pcm038/pcm038.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- cgit v1.2.3