aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/dm355.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-04-30 20:35:48 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-05-28 18:18:12 -0400
commit0d04eb47054f685b23033ed6ceadfb20db77c5b3 (patch)
tree3a3de44b01ac71a80f970ddf80f8d1ca28c3e2f6 /arch/arm/mach-davinci/dm355.c
parentb79dbdefd2be0980c58b5e36fdc23eb14a7caab4 (diff)
davinci: soc-specific SRAM setup
Package on-chip SRAM. It's always accessible from the ARM, so set up a standardized virtual address mapping into a 128 KiB area that's reserved for platform use. In some cases (dm6467) the physical addresses used for EDMA are not the same as the ones used by the ARM ... so record that info separately in the SOC data, for chips (unlike the OMAP-L137) where SRAM may be used with EDMA. Other blocks of SRAM, such as the ETB buffer or DSP L1/L2 RAM, may be unused/available on some system. They are ignored here. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm355.c')
-rw-r--r--arch/arm/mach-davinci/dm355.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c
index 893d5ba21d5f..baaaf328de2e 100644
--- a/arch/arm/mach-davinci/dm355.c
+++ b/arch/arm/mach-davinci/dm355.c
@@ -613,6 +613,13 @@ static struct map_desc dm355_io_desc[] = {
613 .length = IO_SIZE, 613 .length = IO_SIZE,
614 .type = MT_DEVICE 614 .type = MT_DEVICE
615 }, 615 },
616 {
617 .virtual = SRAM_VIRT,
618 .pfn = __phys_to_pfn(0x00010000),
619 .length = SZ_32K,
620 /* MT_MEMORY_NONCACHED requires supersection alignment */
621 .type = MT_DEVICE,
622 },
616}; 623};
617 624
618/* Contents of JTAG ID register used to identify exact cpu type */ 625/* Contents of JTAG ID register used to identify exact cpu type */
@@ -702,6 +709,8 @@ static struct davinci_soc_info davinci_soc_info_dm355 = {
702 .gpio_num = 104, 709 .gpio_num = 104,
703 .gpio_irq = IRQ_DM355_GPIOBNK0, 710 .gpio_irq = IRQ_DM355_GPIOBNK0,
704 .serial_dev = &dm355_serial_device, 711 .serial_dev = &dm355_serial_device,
712 .sram_dma = 0x00010000,
713 .sram_len = SZ_32K,
705}; 714};
706 715
707void __init dm355_init(void) 716void __init dm355_init(void)