diff mbox

[U-Boot,1/4] Raspberry Pi: add device tree overlay support

Message ID 20170626132506.26519-2-pbrobinson@gmail.com
State Accepted
Commit a6e66793498ce432970f4dcdc7f5fbc47fdcaa57
Delegated to: Tom Rini
Headers show

Commit Message

Peter Robinson June 26, 2017, 1:25 p.m. UTC
Raspberry Pi has numerous HAT and other HW expansion options such as screens and
cameras some of which need overlays from the beginning so it makes sense to
enable evice tree overlays.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
 configs/rpi_2_defconfig     | 2 ++
 configs/rpi_3_32b_defconfig | 2 ++
 configs/rpi_3_defconfig     | 2 ++
 configs/rpi_defconfig       | 2 ++
 4 files changed, 8 insertions(+)

Comments

Heinrich Schuchardt June 26, 2017, 6:55 p.m. UTC | #1
On 06/26/2017 03:25 PM, Peter Robinson wrote:
> Raspberry Pi has numerous HAT and other HW expansion options such as screens and
> cameras some of which need overlays from the beginning so it makes sense to
> enable evice tree overlays.
> 
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---
>  configs/rpi_2_defconfig     | 2 ++
>  configs/rpi_3_32b_defconfig | 2 ++
>  configs/rpi_3_defconfig     | 2 ++
>  configs/rpi_defconfig       | 2 ++
>  4 files changed, 8 insertions(+)
> 
> diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig
> index f8b3ed49a9..be3e5e7e7d 100644
> --- a/configs/rpi_2_defconfig
> +++ b/configs/rpi_2_defconfig
> @@ -25,3 +25,5 @@ CONFIG_DM_VIDEO=y
>  CONFIG_SYS_WHITE_ON_BLACK=y
>  CONFIG_CONSOLE_SCROLL_LINES=10
>  CONFIG_PHYS_TO_BUS=y
> +CONFIG_OF_LIBFDT=y

OF_LIBFDT=y is default for ARCH_BCM283X.

> +CONFIG_OF_LIBFDT_OVERLAY=y
> diff --git a/configs/rpi_3_32b_defconfig b/configs/rpi_3_32b_defconfig
> index 490af818b6..f0c9f49799 100644
> --- a/configs/rpi_3_32b_defconfig
> +++ b/configs/rpi_3_32b_defconfig
> @@ -27,3 +27,5 @@ CONFIG_DM_VIDEO=y
>  CONFIG_SYS_WHITE_ON_BLACK=y
>  CONFIG_CONSOLE_SCROLL_LINES=10
>  CONFIG_PHYS_TO_BUS=y
> +CONFIG_OF_LIBFDT=y

see above

> +CONFIG_OF_LIBFDT_OVERLAY=y
> diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig
> index 4c0eb049b2..9709d53a0a 100644
> --- a/configs/rpi_3_defconfig
> +++ b/configs/rpi_3_defconfig
> @@ -27,3 +27,5 @@ CONFIG_DM_VIDEO=y
>  CONFIG_SYS_WHITE_ON_BLACK=y
>  CONFIG_CONSOLE_SCROLL_LINES=10
>  CONFIG_PHYS_TO_BUS=y
> +CONFIG_OF_LIBFDT=y

see above

> +CONFIG_OF_LIBFDT_OVERLAY=y
> diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig
> index 1b954fe2b7..4aa2d3eaf7 100644
> --- a/configs/rpi_defconfig
> +++ b/configs/rpi_defconfig
> @@ -25,3 +25,5 @@ CONFIG_DM_VIDEO=y
>  CONFIG_SYS_WHITE_ON_BLACK=y
>  CONFIG_CONSOLE_SCROLL_LINES=10
>  CONFIG_PHYS_TO_BUS=y
> +CONFIG_OF_LIBFDT=y

see above

> +CONFIG_OF_LIBFDT_OVERLAY=y
> 

Regards

Heinrich Schuchardt
Tom Rini July 7, 2017, 11:41 a.m. UTC | #2
On Mon, Jun 26, 2017 at 02:25:03PM +0100, Peter Robinson wrote:

> Raspberry Pi has numerous HAT and other HW expansion options such as screens and
> cameras some of which need overlays from the beginning so it makes sense to
> enable evice tree overlays.
> 
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig
index f8b3ed49a9..be3e5e7e7d 100644
--- a/configs/rpi_2_defconfig
+++ b/configs/rpi_2_defconfig
@@ -25,3 +25,5 @@  CONFIG_DM_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_PHYS_TO_BUS=y
+CONFIG_OF_LIBFDT=y
+CONFIG_OF_LIBFDT_OVERLAY=y
diff --git a/configs/rpi_3_32b_defconfig b/configs/rpi_3_32b_defconfig
index 490af818b6..f0c9f49799 100644
--- a/configs/rpi_3_32b_defconfig
+++ b/configs/rpi_3_32b_defconfig
@@ -27,3 +27,5 @@  CONFIG_DM_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_PHYS_TO_BUS=y
+CONFIG_OF_LIBFDT=y
+CONFIG_OF_LIBFDT_OVERLAY=y
diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig
index 4c0eb049b2..9709d53a0a 100644
--- a/configs/rpi_3_defconfig
+++ b/configs/rpi_3_defconfig
@@ -27,3 +27,5 @@  CONFIG_DM_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_PHYS_TO_BUS=y
+CONFIG_OF_LIBFDT=y
+CONFIG_OF_LIBFDT_OVERLAY=y
diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig
index 1b954fe2b7..4aa2d3eaf7 100644
--- a/configs/rpi_defconfig
+++ b/configs/rpi_defconfig
@@ -25,3 +25,5 @@  CONFIG_DM_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_PHYS_TO_BUS=y
+CONFIG_OF_LIBFDT=y
+CONFIG_OF_LIBFDT_OVERLAY=y