summaryrefslogtreecommitdiff
path: root/include/configs/tegra-common.h
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@gmail.com>2020-04-02 00:28:54 +0100
committerTom Warren <twarren@nvidia.com>2020-12-04 13:30:16 -0700
commit632fb978a513e22e4cbc8410156a185716216649 (patch)
treebec79a585726caacedef3a2c246c6d50657077d8 /include/configs/tegra-common.h
parent1b56cd868e3c691625aa9bce2f475fcd4cf0405a (diff)
downloadu-boot-632fb978a513e22e4cbc8410156a185716216649.tar.gz
u-boot-632fb978a513e22e4cbc8410156a185716216649.tar.bz2
u-boot-632fb978a513e22e4cbc8410156a185716216649.zip
arm: tegra: define fdtfile option for distro boot
For booting via UEFI we need to define the fdtfile option so bootefi has the option to load a fdtfile from disk. For arm64 the kernel dtb is located in a vendor directory so we define that as nvidia for that architecture. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/configs/tegra-common.h')
-rw-r--r--include/configs/tegra-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 2b968917d3..432eceaf35 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -49,6 +49,12 @@
/* Boot Argument Buffer Size */
#define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE)
+#ifdef CONFIG_ARM64
+#define FDTFILE "nvidia/" CONFIG_DEFAULT_DEVICE_TREE ".dtb"
+#else
+#define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb"
+#endif
+
/*-----------------------------------------------------------------------
* Physical Memory Map
*/