Skip to content

Commit

Permalink
rpi: Switch to OF_HAS_PRIOR_STAGE by default
Browse files Browse the repository at this point in the history
On all Raspberry Pi platforms, we're loaded by a prior stage firmware
that has assembled and passed on a device tree binary for us to use.
Switch to using this tree by default.

Cc: Matthias Brugger <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: François Ozog <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Tested-by: Simon Glass <[email protected]>
  • Loading branch information
trini authored and nullr0ute committed May 13, 2024
1 parent 5283526 commit 713c9d3
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ config ARCH_BCM283X
select SERIAL_SEARCH_ALL
imply CMD_DM
imply FAT_WRITE
imply OF_HAS_PRIOR_STAGE

config ARCH_BCMSTB
bool "Broadcom BCM7XXX family"
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-bcm283x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ config TARGET_RPI_4_32B

This option creates a build targeting the ARMv7/AArch32 ISA.
select BCM2711_32B
imply OF_HAS_PRIOR_STAGE

config TARGET_RPI_4
bool "Raspberry Pi 4 64-bit build"
Expand All @@ -189,15 +188,13 @@ config TARGET_RPI_4

This option creates a build targeting the ARMv8/AArch64 ISA.
select BCM2711_64B
imply OF_HAS_PRIOR_STAGE

config TARGET_RPI_ARM64
bool "Raspberry Pi one binary 64-bit build"
help
Support for all armv8 based Raspberry Pi variants, such as
the RPi 4 model B, in AArch64 (64-bit) mode.
select ARM64
imply OF_HAS_PRIOR_STAGE

endchoice

Expand Down
1 change: 0 additions & 1 deletion configs/rpi_0_w_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
CONFIG_OF_EMBED=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
Expand Down
1 change: 0 additions & 1 deletion configs/rpi_2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
CONFIG_OF_EMBED=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
Expand Down
1 change: 0 additions & 1 deletion configs/rpi_3_32b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
CONFIG_OF_EMBED=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
Expand Down
1 change: 0 additions & 1 deletion configs/rpi_3_b_plus_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
CONFIG_OF_EMBED=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
Expand Down
1 change: 0 additions & 1 deletion configs/rpi_3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
CONFIG_OF_EMBED=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
Expand Down
1 change: 0 additions & 1 deletion configs/rpi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
CONFIG_OF_EMBED=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
Expand Down

0 comments on commit 713c9d3

Please sign in to comment.