diff options
Diffstat (limited to 'include/configs/apalis-tk1.h')
-rw-r--r-- | include/configs/apalis-tk1.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h index 7aff697504a..988663ec70e 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; " \ |