mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
b3270e9138
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>
19 lines
385 B
Text
19 lines
385 B
Text
if TARGET_VEXPRESS64_BASE_FVP || TARGET_VEXPRESS64_JUNO
|
|
|
|
config SYS_BOARD
|
|
default "vexpress64"
|
|
|
|
config SYS_VENDOR
|
|
default "armltd"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "vexpress_aemv8a"
|
|
|
|
config JUNO_DTB_PART
|
|
string "NOR flash partition holding DTB"
|
|
default "board.dtb"
|
|
help
|
|
The ARM partition name in the NOR flash memory holding the
|
|
device tree blob to configure U-Boot.
|
|
|
|
endif
|