summaryrefslogtreecommitdiff
path: root/include/configs/apalis_t30.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/apalis_t30.h')
-rw-r--r--include/configs/apalis_t30.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/configs/apalis_t30.h b/include/configs/apalis_t30.h
index 2896c522e7..96ff42a30c 100644
--- a/include/configs/apalis_t30.h
+++ b/include/configs/apalis_t30.h
@@ -44,12 +44,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
@@ -81,9 +88,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}-apalis-${fdt_board}.dtb && " \
"run distro_bootcmd"
+#endif
#define DFU_ALT_EMMC_INFO "apalis_t30.img raw 0x0 0x500 mmcpart 1; " \
"boot part 0 1 mmcpart 0; " \