mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 13:14:27 +00:00
a4aa188948
Move all assignments to gd->bd->bi_mem{start,size} to generic code in setup_bdinfo. Xtensa architecture is special in this regard as it defines its own handling of gd->bd->bi_mem{start,size} fields. In order to avoid defining a weak SDRAM function, let arch_setup_bdinfo overwrite the generic flags. For ARC architecture, remove ARCH_EARLY_INIT_R from Kconfig since it is not needed anymore. Also, use gd->ram_base to populate bi_memstart to avoid an ifdef. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Acked-by: Alexey Brodkin <abrokdin@synopsys.com> Reviewed-by: Simon Glass <sjg@chromium.org>
22 lines
412 B
C
22 lines
412 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* XTENSA-specific information for the 'bd' command
|
|
*
|
|
* (C) Copyright 2003
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <init.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
int arch_setup_bdinfo(void)
|
|
{
|
|
struct bd_info *bd = gd->bd;
|
|
|
|
bd->bi_memstart = PHYSADDR(CONFIG_SYS_SDRAM_BASE);
|
|
bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
|
|
|
|
return 0;
|
|
}
|