summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuillaume La Roque <glaroque@baylibre.com>2022-11-23 14:41:09 +0100
committerAnand Gadiyar <gadiyar@ti.com>2022-11-29 16:11:59 -0600
commit0157ebd591918c79714b191af05430265199c8aa (patch)
treefdcc0cc6b70b9418c095e4ed27fa94cfd149df19 /include
parentac6a7aa9d5f87eae4471d54fb57c7e02e725977a (diff)
configs: am62x_evm: Add dtbo support
- Add support of device tree overlay for Android to support CSI camera, LVDS screen, HDMI Audio output. - Support for multiple dtbo indices. This assumes that the `dtbo_index` env variable is a space-separated list of indices. Example: => env set dtbo_index "0 2" Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/am62x_evm.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/configs/am62x_evm.h b/include/configs/am62x_evm.h
index 03a7c5cc05..e38a4c3fdc 100644
--- a/include/configs/am62x_evm.h
+++ b/include/configs/am62x_evm.h
@@ -244,7 +244,25 @@
"fi; " \
"abootimg get dtb --index=$dtb_index dtb_start dtb_size; " \
"cp.b $dtb_start $fdt_addr_r $dtb_size; " \
- "fdt addr $fdt_addr_r 0x80000; " \
+ "fdt addr $fdt_addr_r $fdt_size; " \
+ "part start mmc ${mmcdev} dtbo${slot_suffix} dtbo_start; " \
+ "part size mmc ${mmcdev} dtbo${slot_suffix} dtbo_size; " \
+ "mmc read ${dtboaddr} ${dtbo_start} ${dtbo_size}; " \
+ "echo \" Applying DTBOs...\"; " \
+ "adtimg addr $dtboaddr; " \
+ "dtbo_idx=''; " \
+ "for index in $dtbo_index; do " \
+ "adtimg get dt --index=$index dtbo_addr; " \
+ "fdt resize; " \
+ "fdt apply $dtbo_addr; " \
+ "if test $dtbo_idx = ''; then " \
+ "dtbo_idx=${index}; " \
+ "else " \
+ "dtbo_idx=${dtbo_idx},${index}; " \
+ "fi; " \
+ "done; " \
+ "setenv bootargs \"$bootargs androidboot.dtbo_idx=$dtbo_idx \"; "
+
#define BOOT_CMD "bootm ${loadaddr} ${loadaddr} ${fdt_addr_r};"