mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_SDRAM namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -27,7 +27,7 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
|
||||
{
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
if (gd->ram_top < CONFIG_SYS_SDRAM_BASE) {
|
||||
if (gd->ram_top < CFG_SYS_SDRAM_BASE) {
|
||||
/* 2GB wrapped around to 0 */
|
||||
return CKSEG0ADDR(256 << 20);
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ _msc01:
|
||||
/* setup basic address decode */
|
||||
PTR_LI t0, CKSEG1ADDR(MALTA_MSC01_BIU_BASE)
|
||||
li t1, 0x0
|
||||
li t2, -CONFIG_SYS_SDRAM_SIZE
|
||||
li t2, -CFG_SYS_SDRAM_SIZE
|
||||
sw t1, MSC01_BIU_MCBAS1L_OFS(t0)
|
||||
sw t2, MSC01_BIU_MCMSK1L_OFS(t0)
|
||||
sw t1, MSC01_BIU_MCBAS2L_OFS(t0)
|
||||
@@ -168,7 +168,7 @@ _msc01:
|
||||
sw t3, MSC01_PCI_SC2PIOMAPL_OFS(t0)
|
||||
|
||||
/* setup PCI_BAR0 memory window */
|
||||
li t1, -CONFIG_SYS_SDRAM_SIZE
|
||||
li t1, -CFG_SYS_SDRAM_SIZE
|
||||
sw t1, MSC01_PCI_BAR0_OFS(t0)
|
||||
|
||||
/* setup PCI to SysCon/CPU translation */
|
||||
|
||||
@@ -94,7 +94,7 @@ static enum sys_con malta_sys_con(void)
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
|
||||
gd->ram_size = CFG_SYS_SDRAM_SIZE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ int dram_init(void)
|
||||
{
|
||||
/* MIG IP block is smart and doesn't need SW
|
||||
* to do any init */
|
||||
gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */
|
||||
gd->ram_size = CFG_SYS_SDRAM_SIZE; /* in bytes */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user