diff options
author | Sekhar Nori <nsekhar@ti.com> | 2009-11-16 06:51:39 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-02-04 16:29:40 -0500 |
commit | 60cd02e1f4a1574c26c9ae8d29d63bd3d179c0c2 (patch) | |
tree | f2048e3179726cc0cc5aa0c75dd2f045fe7d3ea6 | |
parent | 7aad472bb5602242113718fc170e61b127460cbe (diff) |
davinci: da850/omap-l138: create static map for SRAM
Create static map for internal SRAM and populate SRAM base
and size in soc_info structure to allow SRAM allocation
functions from arch/arm/mach-davinci/sram.c to work.
On DA850 SRAM is used for suspend-to-RAM implementation
in places where DDR2 cannot be accessed as its clocks are
stopped.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/da8xx.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index fcfde2a72f8f..1ac8f6318c1b 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -771,6 +771,12 @@ static struct map_desc da850_io_desc[] = { | |||
771 | .length = DA8XX_CP_INTC_SIZE, | 771 | .length = DA8XX_CP_INTC_SIZE, |
772 | .type = MT_DEVICE | 772 | .type = MT_DEVICE |
773 | }, | 773 | }, |
774 | { | ||
775 | .virtual = SRAM_VIRT, | ||
776 | .pfn = __phys_to_pfn(DA8XX_ARM_RAM_BASE), | ||
777 | .length = SZ_8K, | ||
778 | .type = MT_DEVICE | ||
779 | }, | ||
774 | }; | 780 | }; |
775 | 781 | ||
776 | static void __iomem *da850_psc_bases[] = { | 782 | static void __iomem *da850_psc_bases[] = { |
@@ -1044,6 +1050,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = { | |||
1044 | .gpio_irq = IRQ_DA8XX_GPIO0, | 1050 | .gpio_irq = IRQ_DA8XX_GPIO0, |
1045 | .serial_dev = &da8xx_serial_device, | 1051 | .serial_dev = &da8xx_serial_device, |
1046 | .emac_pdata = &da8xx_emac_pdata, | 1052 | .emac_pdata = &da8xx_emac_pdata, |
1053 | .sram_dma = DA8XX_ARM_RAM_BASE, | ||
1054 | .sram_len = SZ_8K, | ||
1047 | }; | 1055 | }; |
1048 | 1056 | ||
1049 | void __init da850_init(void) | 1057 | void __init da850_init(void) |
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index cab4a25ebe4f..d43a4b6b6d76 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h | |||
@@ -57,6 +57,7 @@ extern void __iomem *da8xx_syscfg1_base; | |||
57 | #define DA8XX_AEMIF_CS3_BASE 0x62000000 | 57 | #define DA8XX_AEMIF_CS3_BASE 0x62000000 |
58 | #define DA8XX_AEMIF_CTL_BASE 0x68000000 | 58 | #define DA8XX_AEMIF_CTL_BASE 0x68000000 |
59 | #define DA8XX_DDR2_CTL_BASE 0xb0000000 | 59 | #define DA8XX_DDR2_CTL_BASE 0xb0000000 |
60 | #define DA8XX_ARM_RAM_BASE 0xffff0000 | ||
60 | 61 | ||
61 | #define PINMUX0 0x00 | 62 | #define PINMUX0 0x00 |
62 | #define PINMUX1 0x04 | 63 | #define PINMUX1 0x04 |