diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2017-08-30 17:30:50 +0100 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2017-09-06 15:13:26 +0100 |
commit | a4e7767d9f39433cca5c0571d8fd0ee1538c9058 (patch) | |
tree | bced3613d797ef66ea11491b09879e7aff1d9081 | |
parent | b8e21284b963413f23b95c141243c1cb2ca92cb7 (diff) |
warp7: Set default boot command to mmcbootsec
When compiled for OPTEE boot set the default boot command to mmcbootsec.
This will have the effect of loading kernel, dtb and OPTEE binary from MMC
and subsequently handing off control to the OPTEE binary.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r-- | include/configs/warp7.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/warp7.h b/include/configs/warp7.h index aa0aa7fb66..09f03f4b05 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -88,6 +88,20 @@ "fi; " \ "fi" +/* Set OPTEE specific boot parameters */ +#if defined(CONFIG_OPTEE) + +#undef CONFIG_BOOTCOMMAND +#define CONFIG_BOOTCOMMAND \ + "mmc dev ${mmcdev};" \ + "mmc dev ${mmcdev}; if mmc rescan; then " \ + "if run loadimage; then " \ + "run mmcbootsec; " \ + "fi; " \ + "fi" + +#endif /* CONFIG_OPTEE */ + #define CONFIG_SYS_MEMTEST_START 0x80000000 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x20000000) |