2022-07-12 10:08:48 +02:00
|
|
|
From 07985ff4863c9b54f103e613ad2bb7e08e4d64d1 Mon Sep 17 00:00:00 2001
|
2020-10-19 11:00:01 +02:00
|
|
|
From: Guillaume Gardet <guillaume.gardet@arm.com>
|
|
|
|
Date: Fri, 18 Sep 2020 15:27:37 +0200
|
2018-03-15 13:26:00 +01:00
|
|
|
Subject: [PATCH] rpi: Use firmware provided device tree
|
|
|
|
|
|
|
|
Currently the firmware generates a device tree for us that we could
|
|
|
|
just use to adjust ourselves. We then on boot throw that away and
|
|
|
|
use our own built-in device tree to configure device access.
|
|
|
|
|
|
|
|
This is bad for a multitude of reasons. For starters, it breaks
|
|
|
|
overlay support in config.txt, confusing users. Much worse however
|
|
|
|
is that we are stuck with individual U-Boot builds per board.
|
|
|
|
The firmware can easily give us the right DT depending on the
|
|
|
|
target board and revision though.
|
|
|
|
|
|
|
|
So let's use the firmware provided device tree instead. That way
|
|
|
|
U-Boot as well as payloads loaded by it can automatically adapt
|
|
|
|
to variants of RPi hardware.
|
|
|
|
|
|
|
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
2019-01-15 13:38:26 +01:00
|
|
|
Signed-off-by: Guillaume Gardet <guillaume.gardet@free.fr>
|
2018-03-15 13:26:00 +01:00
|
|
|
---
|
|
|
|
configs/rpi_0_w_defconfig | 2 +-
|
|
|
|
configs/rpi_2_defconfig | 2 +-
|
|
|
|
configs/rpi_3_32b_defconfig | 2 +-
|
|
|
|
configs/rpi_3_defconfig | 2 +-
|
|
|
|
configs/rpi_defconfig | 2 +-
|
2018-07-12 17:14:04 +02:00
|
|
|
5 files changed, 5 insertions(+), 5 deletions(-)
|
2018-03-15 13:26:00 +01:00
|
|
|
|
|
|
|
diff --git a/configs/rpi_0_w_defconfig b/configs/rpi_0_w_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
index 2e4a0df39b..09e17da008 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_0_w_defconfig
|
|
|
|
+++ b/configs/rpi_0_w_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
@@ -20,7 +20,7 @@ CONFIG_CMD_GPIO=y
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_CMD_MMC=y
|
|
|
|
CONFIG_CMD_USB=y
|
2019-01-15 13:38:26 +01:00
|
|
|
CONFIG_CMD_FS_UUID=y
|
2018-03-15 13:26:00 +01:00
|
|
|
-CONFIG_OF_EMBED=y
|
|
|
|
+CONFIG_OF_BOARD=y
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
2020-10-19 11:00:01 +02:00
|
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
|
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
2018-03-15 13:26:00 +01:00
|
|
|
diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
index 7b78e84ba3..718b35cd1b 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_2_defconfig
|
|
|
|
+++ b/configs/rpi_2_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
@@ -21,7 +21,7 @@ CONFIG_CMD_GPIO=y
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_CMD_MMC=y
|
|
|
|
CONFIG_CMD_USB=y
|
2019-01-15 13:38:26 +01:00
|
|
|
CONFIG_CMD_FS_UUID=y
|
2018-03-15 13:26:00 +01:00
|
|
|
-CONFIG_OF_EMBED=y
|
|
|
|
+CONFIG_OF_BOARD=y
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
2020-10-19 11:00:01 +02:00
|
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
|
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
2018-03-15 13:26:00 +01:00
|
|
|
diff --git a/configs/rpi_3_32b_defconfig b/configs/rpi_3_32b_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
index c1d5538810..05547f5ac6 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_3_32b_defconfig
|
|
|
|
+++ b/configs/rpi_3_32b_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
@@ -20,7 +20,7 @@ CONFIG_CMD_GPIO=y
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_CMD_MMC=y
|
|
|
|
CONFIG_CMD_USB=y
|
2019-01-15 13:38:26 +01:00
|
|
|
CONFIG_CMD_FS_UUID=y
|
2018-03-15 13:26:00 +01:00
|
|
|
-CONFIG_OF_EMBED=y
|
|
|
|
+CONFIG_OF_BOARD=y
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
2020-10-19 11:00:01 +02:00
|
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
|
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
2018-03-15 13:26:00 +01:00
|
|
|
diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
index 9e4e168ef0..aba5756845 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_3_defconfig
|
|
|
|
+++ b/configs/rpi_3_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
@@ -19,7 +19,7 @@ CONFIG_CMD_GPIO=y
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_CMD_MMC=y
|
|
|
|
CONFIG_CMD_USB=y
|
2019-01-15 13:38:26 +01:00
|
|
|
CONFIG_CMD_FS_UUID=y
|
2018-03-15 13:26:00 +01:00
|
|
|
-CONFIG_OF_EMBED=y
|
|
|
|
+CONFIG_OF_BOARD=y
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
2020-10-19 11:00:01 +02:00
|
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
|
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
2018-03-15 13:26:00 +01:00
|
|
|
diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
index 0fe4ec4cf4..25c2a0272e 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_defconfig
|
|
|
|
+++ b/configs/rpi_defconfig
|
2022-07-12 10:08:48 +02:00
|
|
|
@@ -20,7 +20,7 @@ CONFIG_CMD_GPIO=y
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_CMD_MMC=y
|
|
|
|
CONFIG_CMD_USB=y
|
2019-01-15 13:38:26 +01:00
|
|
|
CONFIG_CMD_FS_UUID=y
|
2018-03-15 13:26:00 +01:00
|
|
|
-CONFIG_OF_EMBED=y
|
|
|
|
+CONFIG_OF_BOARD=y
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
2020-10-19 11:00:01 +02:00
|
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
|
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|