aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/dm644x.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/dm644x.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/dm644x.c')
-rw-r--r--arch/arm/mach-davinci/dm644x.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c
index 4ab5f07ead05..fb5449b3c97b 100644
--- a/arch/arm/mach-davinci/dm644x.c
+++ b/arch/arm/mach-davinci/dm644x.c
@@ -539,6 +539,13 @@ static struct map_desc dm644x_io_desc[] = {
539 .length = IO_SIZE, 539 .length = IO_SIZE,
540 .type = MT_DEVICE 540 .type = MT_DEVICE
541 }, 541 },
542 {
543 .virtual = SRAM_VIRT,
544 .pfn = __phys_to_pfn(0x00008000),
545 .length = SZ_16K,
546 /* MT_MEMORY_NONCACHED requires supersection alignment */
547 .type = MT_DEVICE,
548 },
542}; 549};
543 550
544/* Contents of JTAG ID register used to identify exact cpu type */ 551/* Contents of JTAG ID register used to identify exact cpu type */
@@ -629,6 +636,8 @@ static struct davinci_soc_info davinci_soc_info_dm644x = {
629 .gpio_irq = IRQ_GPIOBNK0, 636 .gpio_irq = IRQ_GPIOBNK0,
630 .serial_dev = &dm644x_serial_device, 637 .serial_dev = &dm644x_serial_device,
631 .emac_pdata = &dm644x_emac_pdata, 638 .emac_pdata = &dm644x_emac_pdata,
639 .sram_dma = 0x00008000,
640 .sram_len = SZ_16K,
632}; 641};
633 642
634void __init dm644x_init(void) 643void __init dm644x_init(void)