]> git.dujemihanovic.xyz Git - u-boot.git/commit
board_f: Factor out bdinfo bi_mem{start, size} to setup_bdinfo
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 24 Jul 2020 11:12:16 +0000 (14:12 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 6 Aug 2020 18:26:35 +0000 (14:26 -0400)
commita4aa188948e637fe5951a59958ae1ed5c2f8271b
tree468f7450dc405ef1794ed99c6ff477f9c5763167
parent81e7cb1e71fb216589b4e2fd3eb498ec72489a09
board_f: Factor out bdinfo bi_mem{start, size} to setup_bdinfo

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>
arch/Kconfig
arch/arc/lib/cpu.c
arch/xtensa/lib/Makefile
arch/xtensa/lib/bdinfo.c [new file with mode: 0644]
board/cadence/xtfpga/xtfpga.c
common/board_f.c