]> git.baikalelectronics.ru Git - uboot.git/commit
qemu-arm: Remove need to specify flash banks
authorAndre Przywara <andre.przywara@arm.com>
Wed, 30 Sep 2020 16:39:16 +0000 (17:39 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 15:42:36 +0000 (11:42 -0400)
commitbaf4cc81fa01b661fdeafd0db048232ba45c1da7
treefe896ec6845ba37a27d4501f9490ddd38339da9d
parent2540886a0b12c8c2d1385897df0efeb96f911a00
qemu-arm: Remove need to specify flash banks

Currently we hard-code the number and initial addresses of QEMU's flash
banks, even though our code is perfectly able to gather the same
information from the DTB provided by QEMU.
This is especially annoying, since we have two slightly different
U-Boot configurations ("bare-metal" vs. loaded via Arm Trusted
Firmware), which need to be selected at build time.

Drop the two hard coded alternatives, and use
CONFIG_SYS_MAX_FLASH_BANKS_DETECT instead, which relies on the DTB to
figure out the actual flash configuration at runtime.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
include/configs/qemu-arm.h