2019-01-15 13:38:26 +01:00
|
|
|
From 7a279c1c451cd1cf4294a9037f7acf22a6cea7d6 Mon Sep 17 00:00:00 2001
|
2018-03-15 13:26:00 +01:00
|
|
|
From: Alexander Graf <agraf@suse.de>
|
|
|
|
Date: Wed, 21 Feb 2018 17:41:13 +0100
|
|
|
|
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
|
2019-01-15 13:38:26 +01:00
|
|
|
index 39da54c3e7..81997056f4 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_0_w_defconfig
|
|
|
|
+++ b/configs/rpi_0_w_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
@@ -14,7 +14,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
|
2018-09-12 08:32:57 +02:00
|
|
|
CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-zero-w"
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_ENV_FAT_INTERFACE="mmc"
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
|
|
|
diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
index 5f5b40522d..06080b9347 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_2_defconfig
|
|
|
|
+++ b/configs/rpi_2_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
@@ -14,7 +14,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
|
2018-09-12 08:32:57 +02:00
|
|
|
CONFIG_DEFAULT_DEVICE_TREE="bcm2836-rpi-2-b"
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_ENV_FAT_INTERFACE="mmc"
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
|
|
|
diff --git a/configs/rpi_3_32b_defconfig b/configs/rpi_3_32b_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
index bbf902bb91..17f672c9da 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_3_32b_defconfig
|
|
|
|
+++ b/configs/rpi_3_32b_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
@@ -15,7 +15,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
|
2018-09-12 08:32:57 +02:00
|
|
|
CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_ENV_FAT_INTERFACE="mmc"
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
|
|
|
diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
index ea40351dc4..e84adb5f83 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_3_defconfig
|
|
|
|
+++ b/configs/rpi_3_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
@@ -15,7 +15,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
|
2018-09-12 08:32:57 +02:00
|
|
|
CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_ENV_FAT_INTERFACE="mmc"
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
|
|
|
diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
index 981d17381a..8a2a5b83f8 100644
|
2018-03-15 13:26:00 +01:00
|
|
|
--- a/configs/rpi_defconfig
|
|
|
|
+++ b/configs/rpi_defconfig
|
2019-01-15 13:38:26 +01:00
|
|
|
@@ -14,7 +14,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
|
2018-09-12 08:32:57 +02:00
|
|
|
CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-b"
|
2018-03-15 13:26:00 +01:00
|
|
|
CONFIG_ENV_FAT_INTERFACE="mmc"
|
|
|
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|