summaryrefslogtreecommitdiff
path: root/common/spl/spl_sdp.c
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-04-29 10:35:12 +0800
committerStefano Babic <sbabic@denx.de>2020-05-03 15:31:41 +0200
commit407e3844fc8bafb5a648180ec33c2ca806c1a126 (patch)
tree4c87b83b5f21ef5b43da8bf07c77ddfc5a0630f8 /common/spl/spl_sdp.c
parent8f95c0105f77dfc4f42babcdb725a55902a371f8 (diff)
downloadu-boot-407e3844fc8bafb5a648180ec33c2ca806c1a126.tar.gz
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> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'common/spl/spl_sdp.c')
-rw-r--r--common/spl/spl_sdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c
index a54c7479d0..82bce0bd2e 100644
--- a/common/spl/spl_sdp.c
+++ b/common/spl/spl_sdp.c
@@ -14,9 +14,9 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,
struct spl_boot_device *bootdev)
{
int ret;
- const int controller_index = 0;
+ const int controller_index = CONFIG_SPL_SDP_USB_DEV;
- board_usb_init(0, USB_INIT_DEVICE);
+ board_usb_init(controller_index, USB_INIT_DEVICE);
g_dnl_clear_detach();
ret = g_dnl_register("usb_dnl_sdp");