Commit dba0d7c7dc3b9b60043726931b1f635b725e9756
1 parent
bb5ed5774d
Exists in
smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga
and in
4 other branches
MLK-20559-1 spl_sdp: Add CONFIG_SPL_SDP_USB_DEV for USB device
Add a new configuration CONFIG_SPL_SDP_USB_DEV to specify the usb index for spl sdp driver, so that we change use different device. The default value is 0. Signed-off-by: Ye Li <ye.li@nxp.com>
Showing 2 changed files with 10 additions and 2 deletions Side-by-side Diff
common/spl/Kconfig
... | ... | @@ -724,6 +724,14 @@ |
724 | 724 | Enable Serial Download Protocol (SDP) device support in SPL. This |
725 | 725 | allows to download images into memory and execute (jump to) them |
726 | 726 | using the same protocol as implemented by the i.MX family's boot ROM. |
727 | + | |
728 | +config SPL_SDP_USB_DEV | |
729 | + int "SDP USB controller index" | |
730 | + default 0 | |
731 | + depends on SPL_USB_SDP_SUPPORT | |
732 | + help | |
733 | + Some boards have USB controller other than 0. Define this option | |
734 | + so it can be used in compiled environment. | |
727 | 735 | endif |
728 | 736 | |
729 | 737 | config SPL_WATCHDOG_SUPPORT |
common/spl/spl_sdp.c
... | ... | @@ -17,9 +17,9 @@ |
17 | 17 | struct spl_boot_device *bootdev) |
18 | 18 | { |
19 | 19 | int ret; |
20 | - const int controller_index = 0; | |
20 | + const int controller_index = CONFIG_SPL_SDP_USB_DEV; | |
21 | 21 | |
22 | - board_usb_init(0, USB_INIT_DEVICE); | |
22 | + board_usb_init(controller_index, USB_INIT_DEVICE); | |
23 | 23 | |
24 | 24 | g_dnl_clear_detach(); |
25 | 25 | g_dnl_register("usb_dnl_sdp"); |
-
mentioned in commit c2da45
-
mentioned in commit c2da45
-
mentioned in commit a43cdc
-
mentioned in commit a43cdc
-
mentioned in commit a43cdc
-
mentioned in commit a43cdc
-
mentioned in commit b4907f
-
mentioned in commit b4907f
-
mentioned in commit a43cdc
-
mentioned in commit b4907f
-
mentioned in commit b4907f
-
mentioned in commit b4907f
-
mentioned in commit b4907f