Commit c94472d4 authored by Subhasish Ghosh's avatar Subhasish Ghosh Committed by Sekhar Nori

ARM: davinci: da850: changed SRAM allocator to shared ram.

This patch modifies the sram allocator to allocate memory
from the DA8XX shared RAM.

Regression tested suspend/resume on AM180x EVM.
Signed-off-by: default avatarSubhasish Ghosh <subhasish@mistralsolutions.com>
[rebased onto consolidated SRAM patches]
Signed-off-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
[rebased to mainline as consolidated SRAM patches were dropped]
Signed-off-by: default avatarMatt Porter <mporter@ti.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent 626863a3
...@@ -1233,8 +1233,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = { ...@@ -1233,8 +1233,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
.gpio_irq = IRQ_DA8XX_GPIO0, .gpio_irq = IRQ_DA8XX_GPIO0,
.serial_dev = &da8xx_serial_device, .serial_dev = &da8xx_serial_device,
.emac_pdata = &da8xx_emac_pdata, .emac_pdata = &da8xx_emac_pdata,
.sram_dma = DA8XX_ARM_RAM_BASE, .sram_dma = DA8XX_SHARED_RAM_BASE,
.sram_len = SZ_8K, .sram_len = SZ_128K,
}; };
void __init da850_init(void) void __init da850_init(void)
......
...@@ -72,6 +72,7 @@ extern unsigned int da850_max_speed; ...@@ -72,6 +72,7 @@ extern unsigned int da850_max_speed;
#define DA8XX_AEMIF_CS2_BASE 0x60000000 #define DA8XX_AEMIF_CS2_BASE 0x60000000
#define DA8XX_AEMIF_CS3_BASE 0x62000000 #define DA8XX_AEMIF_CS3_BASE 0x62000000
#define DA8XX_AEMIF_CTL_BASE 0x68000000 #define DA8XX_AEMIF_CTL_BASE 0x68000000
#define DA8XX_SHARED_RAM_BASE 0x80000000
#define DA8XX_ARM_RAM_BASE 0xffff0000 #define DA8XX_ARM_RAM_BASE 0xffff0000
void __init da830_init(void); void __init da830_init(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment