]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
beagleplay: Add DFU support
authorSjoerd Simons <sjoerd@collabora.com>
Mon, 6 May 2024 14:38:45 +0000 (15:38 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 15 May 2024 16:45:02 +0000 (10:45 -0600)
DFU mode on a beagleplay can be used via the Type-C connector by holding
the USR switch while powering on.

Configuration is already provided as fragments for both the A53 and R5
u-boot parts. Include the am62x_a53_usbdfu.config config. The
am62x_r5_usbdfu.config fragment needs to be added should DFU boot be
required as this will disable booting from persistent storage due to
binary size constraints.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
board/beagle/beagleplay/beagleplay.env
configs/am62x_beagleplay_a53_defconfig

index fb2032068d1c6cd761e82a3a3a51c4963df16acf..967a2bdcd1cdc41ed308e1e8407ec8cf2365bf0c 100644 (file)
        >;
 };
 
+&usbss0 {
+       bootph-all;
+};
+
+&usb0 {
+       dr_mode = "peripheral";
+       bootph-all;
+};
+
 #ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY
 
 #define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
index bbf6b925d02c3426c05004d187caf7f906e564b3..8dbfc2f7d2400a7a9b5ab14553d4702aae49f5be 100644 (file)
@@ -1,5 +1,6 @@
 #include <env/ti/ti_common.env>
 #include <env/ti/mmc.env>
+#include <env/ti/k3_dfu.env>
 
 name_kern=Image
 console=ttyS2,115200n8
index 4f1be1df5935e6ebe42f85a0ba288ada09fab979..ec62670d55d6e074857520645945e2e73feb9d5b 100644 (file)
@@ -121,3 +121,5 @@ CONFIG_EXT4_WRITE=y
 CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
 CONFIG_LZO=y
 CONFIG_EFI_SET_TIME=y
+
+#include <configs/am62x_a53_usbdfu.config>