davinci: da850/omap-l138: create static map for SRAM
authorSekhar Nori <nsekhar@ti.com>
Mon, 16 Nov 2009 11:51:39 +0000 (17:21 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:29:40 +0000 (13:29 -0800)
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>
arch/arm/mach-davinci/da850.c
arch/arm/mach-davinci/include/mach/da8xx.h

index fcfde2a72f8f3ecb66ab5c5e26473b265ad71839..1ac8f6318c1b39a3175c4194dcc460ca59b734de 100644 (file)
@@ -771,6 +771,12 @@ static struct map_desc da850_io_desc[] = {
                .length         = DA8XX_CP_INTC_SIZE,
                .type           = MT_DEVICE
        },
+       {
+               .virtual        = SRAM_VIRT,
+               .pfn            = __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+               .length         = SZ_8K,
+               .type           = MT_DEVICE
+       },
 };
 
 static void __iomem *da850_psc_bases[] = {
@@ -1044,6 +1050,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
        .gpio_irq               = IRQ_DA8XX_GPIO0,
        .serial_dev             = &da8xx_serial_device,
        .emac_pdata             = &da8xx_emac_pdata,
+       .sram_dma               = DA8XX_ARM_RAM_BASE,
+       .sram_len               = SZ_8K,
 };
 
 void __init da850_init(void)
index cab4a25ebe4feb3514e3f1365f2f9dbed3d1bc62..d43a4b6b6d76fd9429f7086c5b451b08e9406fc8 100644 (file)
@@ -57,6 +57,7 @@ extern void __iomem *da8xx_syscfg1_base;
 #define DA8XX_AEMIF_CS3_BASE   0x62000000
 #define DA8XX_AEMIF_CTL_BASE   0x68000000
 #define DA8XX_DDR2_CTL_BASE    0xb0000000
+#define DA8XX_ARM_RAM_BASE     0xffff0000
 
 #define PINMUX0                        0x00
 #define PINMUX1                        0x04