summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume La Roque <glaroque@baylibre.com>2023-11-08 14:51:25 +0100
committerPraneeth Bajjuri <praneeth@ti.com>2023-11-08 17:32:58 -0600
commitfabf3ae948d5bdd77568aa08802cfe81f7be7f6a (patch)
tree2fd0397b9d147bf7287016ccf148fa88baccd852
parentc5296d943c2c84dd6dcb3b91305d006ac46f3157 (diff)
configs: am62px: add android support
Add Android bootflow support for AM62PX SoC. Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
-rw-r--r--board/ti/am62px/am62px.env4
-rw-r--r--include/configs/am62px_evm.h5
-rw-r--r--include/configs/am62x_evm_android.h3
3 files changed, 12 insertions, 0 deletions
diff --git a/board/ti/am62px/am62px.env b/board/ti/am62px/am62px.env
index 0674f7e616..9ed3ef5f71 100644
--- a/board/ti/am62px/am62px.env
+++ b/board/ti/am62px/am62px.env
@@ -21,3 +21,7 @@ mmcdev=1
bootpart=1:2
bootdir=/boot
rd_spec=-
+
+#if CONFIG_CMD_ABOOTIMG
+#include <environment/ti/mmc_android.env>
+#endif
diff --git a/include/configs/am62px_evm.h b/include/configs/am62px_evm.h
index f00354f3b1..9a95253888 100644
--- a/include/configs/am62px_evm.h
+++ b/include/configs/am62px_evm.h
@@ -14,4 +14,9 @@
/* Now for the remaining common defines */
#include <configs/ti_armv7_common.h>
+/* include Android related settings */
+#if CONFIG_CMD_ABOOTIMG
+#include <configs/am62x_evm_android.h>
+#endif
+
#endif /* __CONFIG_AM62PX_EVM_H */
diff --git a/include/configs/am62x_evm_android.h b/include/configs/am62x_evm_android.h
index 88c780619d..91921ed35f 100644
--- a/include/configs/am62x_evm_android.h
+++ b/include/configs/am62x_evm_android.h
@@ -80,6 +80,9 @@
"elif test $board_name = am62x_beagleplay; then " \
"echo \" Reading DTB for am62x_beagleplay...\"; " \
"setenv dtb_index 2;" \
+ "elif test $board_name = am62px; then " \
+ "echo \" Reading DTB for am62px...\"; " \
+ "setenv dtb_index 3;" \
"else " \
"echo Error: Android boot is not supported for $board_name; " \
"exit; " \