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)
commit3d8d9186c379a9d7504088d901b6cb97eb6598ba
treefe896ec6845ba37a27d4501f9490ddd38339da9d
parent12650e4a46c859eb14e6141b828d92919a18b9c6
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