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:
1 parent
aec118ebe6
commit
aa6e94deab
589 files changed
+1197
-1197
No files matched your search
@@ -88,7 +88,7 @@ int dram_init(void)
|
||||
*/
|
||||
out_be32(&dc->dacr0, 0x00003304);
|
||||
|
||||
dramsize = ((CONFIG_SYS_SDRAM_SIZE)-1) & 0xfffc0000;
|
||||
dramsize = ((CFG_SYS_SDRAM_SIZE)-1) & 0xfffc0000;
|
||||
out_be32(&dc->dmr0, dramsize|1);
|
||||
|
||||
/* issue a PRECHARGE ALL */
|
||||
@@ -102,8 +102,8 @@ int dram_init(void)
|
||||
out_be32(&dc->dacr0, 0x0000b344);
|
||||
out_be32((u32 *)0x00000c00, 0xbeaddeed);
|
||||
|
||||
gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE,
|
||||
CONFIG_SYS_SDRAM_SIZE);
|
||||
gd->ram_size = get_ram_size(CFG_SYS_SDRAM_BASE,
|
||||
CFG_SYS_SDRAM_SIZE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ int dram_init(void)
|
||||
* Serial Boot: The dram is already initialized in start.S
|
||||
* only require to return DRAM size
|
||||
*/
|
||||
dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
|
||||
dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
|
||||
|
||||
gd->ram_size = dramsize;
|
||||
|
||||
|
||||
Reference in new issue
Block a user