summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/configs/apalis-tk1.h14
-rw-r--r--include/configs/tegra-common-post.h7
2 files changed, 17 insertions, 4 deletions
diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h
index 7aff697504..988663ec70 100644
--- a/include/configs/apalis-tk1.h
+++ b/include/configs/apalis-tk1.h
@@ -37,12 +37,19 @@
#define CONFIG_GENERIC_MMC
#define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */
-/* Environment in eMMC, before config block at the end of 1st "boot sector" */
+#ifdef CONFIG_TDX_EASY_INSTALLER
+#define CONFIG_ENV_IS_NOWHERE
+#else
#define CONFIG_ENV_IS_IN_MMC
+#endif
+
+#ifdef CONFIG_ENV_IS_IN_MMC
+/* Environment in eMMC, before config block at the end of 1st "boot sector" */
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE + \
CONFIG_TDX_CFG_BLOCK_OFFSET)
#define CONFIG_SYS_MMC_ENV_DEV 0
#define CONFIG_SYS_MMC_ENV_PART 1
+#endif /*CONFIG_ENV_IS_IN_MMC */
/* USB host support */
#define CONFIG_USB_EHCI
@@ -69,9 +76,14 @@
#undef CONFIG_SERVERIP
#define CONFIG_SERVERIP 192.168.10.1
+#ifdef CONFIG_TDX_EASY_INSTALLER
+#define CONFIG_BOOTCOMMAND \
+ "run distro_bootcmd"
+#else
#define CONFIG_BOOTCOMMAND \
"run emmcboot; setenv fdtfile ${soc}-${fdt_module}-${fdt_board}.dtb && " \
"run distro_bootcmd"
+#endif
#define DFU_ALT_EMMC_INFO "apalis-tk1.img raw 0x0 0x500 mmcpart 1; " \
"boot part 0 1 mmcpart 0; " \
diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index a9990b7383..32310bd277 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -23,9 +23,10 @@
#ifndef CONFIG_SPL_BUILD
#define BOOT_TARGET_DEVICES(func) \
- func(MMC, mmc, 1) \
- func(MMC, mmc, 0) \
- func(USB, usb, 0) \
+ func(MMC, mmc, 1) \
+ func(MMC, mmc, 2) \
+ func(MMC, mmc, 0) \
+ func(USB, usb, 0) \
func(PXE, pxe, na) \
func(DHCP, dhcp, na)
#include <config_distro_bootcmd.h>