diff options
author | Andre Przywara <andre.przywara@arm.com> | 2020-04-27 19:18:01 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-07 09:01:42 -0400 |
commit | b3270e91385111facdb7c79c30f2943d93e63280 (patch) | |
tree | b337090c8b8e5f333a01b95a5768a16a507299fb /arch/arm/Kconfig | |
parent | deaa511d87e94c4e6274c0327333bdafd914e940 (diff) | |
download | u-boot-b3270e91385111facdb7c79c30f2943d93e63280.tar.gz u-boot-b3270e91385111facdb7c79c30f2943d93e63280.tar.xz u-boot-b3270e91385111facdb7c79c30f2943d93e63280.zip |
arm: juno: Enable OF_CONTROL
The Arm Juno board was still somewhat stuck in "hardcoded land", even
though there are stable DTs around, and one happens to actually be on
the memory mapped NOR flash.
Enable the configuration options to let the board use OF_CONTROL, and
add a routine to find the address of the DTB partition in NOR
flash, to use that for U-Boot's own purposes.
This can also passed on via $fdtcontroladdr to any kernel or EFI
application, removing the need to actually load a device tree.
Since the existing "afs" command and its flash routines require
flash_init() to be called before being usable, and this is done much
later in the boot process, we introduce a stripped-down partition finder
routine in vexpress64.c, to scan the NOR flash partitions for the
DT partition. This location is then used for U-Boot to find and probe
devices.
The name of the partition can be configured, if needed, but defaults
to "board.dtb", which is used by Linaro's firmware image provided.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r-- | arch/arm/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index b494bcae95..27ae0a8b5d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1162,6 +1162,11 @@ config TARGET_VEXPRESS64_JUNO bool "Support Versatile Express Juno Development Platform" select ARM64 select PL01X_SERIAL + select DM + select OF_CONTROL + select OF_BOARD + select CLK + select DM_SERIAL config TARGET_LS2080A_EMU bool "Support ls2080a_emu" |