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:
@@ -424,7 +424,7 @@ int dram_init(void)
|
||||
defined(CONFIG_ARCH_QEMU_E500)
|
||||
gd->ram_size = fsl_ddr_sdram_size();
|
||||
#else
|
||||
gd->ram_size = (phys_size_t)CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
|
||||
gd->ram_size = (phys_size_t)CFG_SYS_SDRAM_SIZE * 1024 * 1024;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -195,7 +195,7 @@ u32 determine_mp_bootpg(unsigned int *pagesize)
|
||||
/* use last 4K of mapped memory */
|
||||
bootpg = ((gd->ram_size > CONFIG_MAX_MEM_MAPPED) ?
|
||||
CONFIG_MAX_MEM_MAPPED : gd->ram_size) +
|
||||
CONFIG_SYS_SDRAM_BASE - 4096;
|
||||
CFG_SYS_SDRAM_BASE - 4096;
|
||||
if (pagesize)
|
||||
*pagesize = 4096;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user