diff options
author | Ye Li <ye.li@nxp.com> | 2019-04-21 21:06:13 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-04-06 15:58:17 +0800 |
commit | 8ed3345155069d63e689bb4bcdad9ad6f02fc2c5 (patch) | |
tree | a0a3907607077a5bbb9a0623f2c89aa47c650abe /board/freescale/imx8mq_evk | |
parent | 1c7037701d4e783bb32ac29bc375435def16dea9 (diff) |
MLK-21846-2 imx8mq_evk: Enable USB SDP in SPL
Enable the SPL SDP driver and SPL gadget drivers on iMX8MQ EVK board.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 957fd8c849142802c4f0b9479be607c8c5ed1f7a)
(cherry picked from commit 69015a4b7fe719260929d4aca32da45addba0efe)
Diffstat (limited to 'board/freescale/imx8mq_evk')
-rw-r--r-- | board/freescale/imx8mq_evk/spl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c index 6243d76666..90af80b2a4 100644 --- a/board/freescale/imx8mq_evk/spl.c +++ b/board/freescale/imx8mq_evk/spl.c @@ -204,6 +204,17 @@ void spl_board_init(void) if (sec_init()) printf("\nsec_init failed!\n"); } + +#ifndef CONFIG_SPL_USB_SDP_SUPPORT + /* Serial download mode */ + if (is_usb_boot()) { + puts("Back to ROM, SDP\n"); + restore_boot_params(); + } +#endif + + init_usb_clk(); + puts("Normal Boot\n"); } |