mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +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:
@@ -243,17 +243,17 @@ static int mtk_ddr3_rank_size_detect(struct udevice *dev)
|
||||
* and it has maximum addressing region
|
||||
*/
|
||||
|
||||
writel(WALKING_PATTERN, CONFIG_SYS_SDRAM_BASE);
|
||||
writel(WALKING_PATTERN, CFG_SYS_SDRAM_BASE);
|
||||
|
||||
if (readl(CONFIG_SYS_SDRAM_BASE) != WALKING_PATTERN)
|
||||
if (readl(CFG_SYS_SDRAM_BASE) != WALKING_PATTERN)
|
||||
return -EINVAL;
|
||||
|
||||
for (step = 0; step < 5; step++) {
|
||||
writel(~WALKING_PATTERN, CONFIG_SYS_SDRAM_BASE +
|
||||
writel(~WALKING_PATTERN, CFG_SYS_SDRAM_BASE +
|
||||
(WALKING_STEP << step));
|
||||
|
||||
start = readl(CONFIG_SYS_SDRAM_BASE);
|
||||
test = readl(CONFIG_SYS_SDRAM_BASE + (WALKING_STEP << step));
|
||||
start = readl(CFG_SYS_SDRAM_BASE);
|
||||
test = readl(CFG_SYS_SDRAM_BASE + (WALKING_STEP << step));
|
||||
if ((test != ~WALKING_PATTERN) || test == start)
|
||||
break;
|
||||
}
|
||||
@@ -727,7 +727,7 @@ static int mtk_ddr3_get_info(struct udevice *dev, struct ram_info *info)
|
||||
struct mtk_ddr3_priv *priv = dev_get_priv(dev);
|
||||
u32 val = readl(priv->emi + EMI_CONA);
|
||||
|
||||
info->base = CONFIG_SYS_SDRAM_BASE;
|
||||
info->base = CFG_SYS_SDRAM_BASE;
|
||||
|
||||
switch ((val & EMI_COL_ADDR_MASK) >> EMI_COL_ADDR_SHIFT) {
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user