summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-09-19 17:47:55 -0700
committerMax Krummenacher <max.krummenacher@toradex.com>2017-10-02 19:30:07 +0200
commitc32f05d9958ad1792318a340020b222c25795396 (patch)
tree293ec8e0f6482af15f17a126e173a32a17006178 /board
parent07a817a117c05fbe05f9bec221653510de6c5578 (diff)
colibri-imx6ull: use SDP if USB serial downloader has been used
In case USB serial downloader has been used to load U-Boot start the serial download protocol (SDP) emulation. This allows to download complete images such as Toradex Easy Installer over USB SDP as well. This code uses the boot ROM provided boot information to reliably detect USB serial downloader. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'board')
-rw-r--r--board/toradex/colibri-imx6ull/colibri_imx6ull.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/toradex/colibri-imx6ull/colibri_imx6ull.c b/board/toradex/colibri-imx6ull/colibri_imx6ull.c
index 6e15362360..51d1492a69 100644
--- a/board/toradex/colibri-imx6ull/colibri_imx6ull.c
+++ b/board/toradex/colibri-imx6ull/colibri_imx6ull.c
@@ -358,6 +358,14 @@ int board_late_init(void)
add_board_boot_modes(board_boot_modes);
#endif
+#ifdef CONFIG_CMD_USB_SDP
+ if (is_boot_from_usb()) {
+ printf("Serial Downloader recovery mode, using sdp command\n");
+ setenv("bootdelay", "0");
+ setenv("bootcmd", "sdp 0");
+ }
+#endif /* CONFIG_CMD_USB_SDP */
+
return 0;
}