163 lines
5.4 KiB
Diff
163 lines
5.4 KiB
Diff
|
From 1e93c98419e6a1ea62ef697ed915617024eb6da0 Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Robinson <pbrobinson@gmail.com>
|
||
|
Date: Thu, 18 Apr 2019 14:03:33 +0100
|
||
|
Subject: [PATCH] arm: tegra: defaine fdtfile for all devices
|
||
|
|
||
|
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
||
|
---
|
||
|
include/configs/tegra-common.h | 6 ++++++
|
||
|
include/configs/tegra114-common.h | 1 +
|
||
|
include/configs/tegra124-common.h | 1 +
|
||
|
include/configs/tegra186-common.h | 1 +
|
||
|
include/configs/tegra20-common.h | 1 +
|
||
|
include/configs/tegra210-common.h | 1 +
|
||
|
include/configs/tegra30-common.h | 1 +
|
||
|
7 files changed, 12 insertions(+)
|
||
|
|
||
|
diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
|
||
|
index 84f671d00c..c3e16d8cfc 100644
|
||
|
--- a/include/configs/tegra-common.h
|
||
|
+++ b/include/configs/tegra-common.h
|
||
|
@@ -56,6 +56,12 @@
|
||
|
#define CONFIG_SYS_MEMTEST_START (NV_PA_SDRC_CS0 + 0x600000)
|
||
|
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x100000)
|
||
|
|
||
|
+#ifdef CONFIG_ARM64
|
||
|
+#define FDTFILE "nvidia/" CONFIG_DEFAULT_DEVICE_TREE ".dtb"
|
||
|
+#else
|
||
|
+#define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb"
|
||
|
+#endif
|
||
|
+
|
||
|
/*-----------------------------------------------------------------------
|
||
|
* Physical Memory Map
|
||
|
*/
|
||
|
diff --git a/include/configs/tegra114-common.h b/include/configs/tegra114-common.h
|
||
|
index 1aa4412645..0c44a7673b 100644
|
||
|
--- a/include/configs/tegra114-common.h
|
||
|
+++ b/include/configs/tegra114-common.h
|
||
|
@@ -50,6 +50,7 @@
|
||
|
"scriptaddr=0x90000000\0" \
|
||
|
"pxefile_addr_r=0x90100000\0" \
|
||
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
||
|
+ "fdtfile=" FDTFILE "\0" \
|
||
|
"fdt_addr_r=0x83000000\0" \
|
||
|
"ramdisk_addr_r=0x83100000\0"
|
||
|
|
||
|
diff --git a/include/configs/tegra124-common.h b/include/configs/tegra124-common.h
|
||
|
index 3530684164..29da06c8f7 100644
|
||
|
--- a/include/configs/tegra124-common.h
|
||
|
+++ b/include/configs/tegra124-common.h
|
||
|
@@ -52,6 +52,7 @@
|
||
|
"scriptaddr=0x90000000\0" \
|
||
|
"pxefile_addr_r=0x90100000\0" \
|
||
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
||
|
+ "fdtfile=" FDTFILE "\0" \
|
||
|
"fdt_addr_r=0x83000000\0" \
|
||
|
"ramdisk_addr_r=0x83100000\0"
|
||
|
|
||
|
diff --git a/include/configs/tegra186-common.h b/include/configs/tegra186-common.h
|
||
|
index b4936cc731..5c3ad35c76 100644
|
||
|
--- a/include/configs/tegra186-common.h
|
||
|
+++ b/include/configs/tegra186-common.h
|
||
|
@@ -49,6 +49,7 @@
|
||
|
"scriptaddr=0x90000000\0" \
|
||
|
"pxefile_addr_r=0x90100000\0" \
|
||
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
||
|
+ "fdtfile=" FDTFILE "\0" \
|
||
|
"fdt_addr_r=0x82000000\0" \
|
||
|
"ramdisk_addr_r=0x82100000\0"
|
||
|
|
||
|
diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h
|
||
|
index e58477e289..73c94d993b 100644
|
||
|
--- a/include/configs/tegra20-common.h
|
||
|
+++ b/include/configs/tegra20-common.h
|
||
|
@@ -51,6 +51,7 @@
|
||
|
"scriptaddr=0x10000000\0" \
|
||
|
"pxefile_addr_r=0x10100000\0" \
|
||
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
||
|
+ "fdtfile=" FDTFILE "\0" \
|
||
|
"fdt_addr_r=0x03000000\0" \
|
||
|
"ramdisk_addr_r=0x03100000\0"
|
||
|
|
||
|
diff --git a/include/configs/tegra210-common.h b/include/configs/tegra210-common.h
|
||
|
index 1c533118ad..69e446ed58 100644
|
||
|
--- a/include/configs/tegra210-common.h
|
||
|
+++ b/include/configs/tegra210-common.h
|
||
|
@@ -46,6 +46,7 @@
|
||
|
"scriptaddr=0x90000000\0" \
|
||
|
"pxefile_addr_r=0x90100000\0" \
|
||
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
||
|
+ "fdtfile=" FDTFILE "\0" \
|
||
|
"fdt_addr_r=0x82000000\0" \
|
||
|
"ramdisk_addr_r=0x82100000\0"
|
||
|
|
||
|
diff --git a/include/configs/tegra30-common.h b/include/configs/tegra30-common.h
|
||
|
index 2d8948d9d9..27696009cd 100644
|
||
|
--- a/include/configs/tegra30-common.h
|
||
|
+++ b/include/configs/tegra30-common.h
|
||
|
@@ -47,6 +47,7 @@
|
||
|
"scriptaddr=0x90000000\0" \
|
||
|
"pxefile_addr_r=0x90100000\0" \
|
||
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
||
|
+ "fdtfile=" FDTFILE "\0" \
|
||
|
"fdt_addr_r=0x83000000\0" \
|
||
|
"ramdisk_addr_r=0x83100000\0"
|
||
|
|
||
|
--
|
||
|
2.21.0
|
||
|
From 267dc15aa8f247362b04387d6a1ab01d94d41aef Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Robinson <pbrobinson@gmail.com>
|
||
|
Date: Thu, 18 Apr 2019 15:44:59 +0100
|
||
|
Subject: [PATCH] add BOOTENV_EFI_SET_FDTFILE_FALLBACK for tegra186 because tx2
|
||
|
variants
|
||
|
|
||
|
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
||
|
---
|
||
|
include/config_distro_bootcmd.h | 2 ++
|
||
|
include/configs/tegra186-common.h | 7 ++++++-
|
||
|
2 files changed, 8 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
|
||
|
index 4993303f4d..cd317bb457 100644
|
||
|
--- a/include/config_distro_bootcmd.h
|
||
|
+++ b/include/config_distro_bootcmd.h
|
||
|
@@ -118,8 +118,10 @@
|
||
|
"setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; " \
|
||
|
"fi; "
|
||
|
#else
|
||
|
+#ifndef BOOTENV_EFI_SET_FDTFILE_FALLBACK
|
||
|
#define BOOTENV_EFI_SET_FDTFILE_FALLBACK
|
||
|
#endif
|
||
|
+#endif
|
||
|
|
||
|
|
||
|
#define BOOTENV_SHARED_EFI \
|
||
|
diff --git a/include/configs/tegra186-common.h b/include/configs/tegra186-common.h
|
||
|
index 5c3ad35c76..d5f21e0907 100644
|
||
|
--- a/include/configs/tegra186-common.h
|
||
|
+++ b/include/configs/tegra186-common.h
|
||
|
@@ -20,6 +20,12 @@
|
||
|
/* Generic Interrupt Controller */
|
||
|
#define CONFIG_GICV2
|
||
|
|
||
|
+#undef FDTFILE
|
||
|
+#define BOOTENV_EFI_SET_FDTFILE_FALLBACK \
|
||
|
+ "if test -z \"${fdtfile}\" -a -n \"${soc}\"; then " \
|
||
|
+ "setenv efi_fdtfile ${vendor}/${soc}-${board}${boardver}.dtb; " \
|
||
|
+ "fi; "
|
||
|
+
|
||
|
/*
|
||
|
* Memory layout for where various images get loaded by boot scripts:
|
||
|
*
|
||
|
@@ -49,7 +55,6 @@
|
||
|
"scriptaddr=0x90000000\0" \
|
||
|
"pxefile_addr_r=0x90100000\0" \
|
||
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
||
|
- "fdtfile=" FDTFILE "\0" \
|
||
|
"fdt_addr_r=0x82000000\0" \
|
||
|
"ramdisk_addr_r=0x82100000\0"
|
||
|
|
||
|
--
|
||
|
2.21.0
|
||
|
|