summaryrefslogtreecommitdiffstats
path: root/include/configs/mx6sabre_common.h
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-01-28 12:49:02 -0200
committerStefano Babic <sbabic@denx.de>2018-02-04 12:02:35 +0100
commite705e2cd5b153af8dcdc43854693cea616cd41d0 (patch)
tree05ced44cae4917a03cdc43e68610ee2139be93de /include/configs/mx6sabre_common.h
parentc12737cea0ab4fd5fa1a6dcf724f48c8eab7043e (diff)
downloadu-boot-e705e2cd5b153af8dcdc43854693cea616cd41d0.tar.gz
u-boot-e705e2cd5b153af8dcdc43854693cea616cd41d0.tar.xz
u-boot-e705e2cd5b153af8dcdc43854693cea616cd41d0.zip
mx6sabre_common: Allow building CONFIG_USB_FUNCTION_MASS_STORAGE
Selecting CONFIG_USB_FUNCTION_MASS_STORAGE=y in the defconfig leads to the following error: cmd/built-in.o: In function `do_usb_mass_storage': cmd/usb_mass_storage.c:217: undefined reference to `fsg_main_thread' cmd/usb_mass_storage.c:170: undefined reference to `fsg_init' CONFIG_USB_FUNCTION_MASS_STORAGE option is built only for the non-SPL case as per the logic in drivers/usb/gadget/Makefile, so remove the incorrect CONFIG_SPL ifdefery to fix the build failure. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Tested-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'include/configs/mx6sabre_common.h')
-rw-r--r--include/configs/mx6sabre_common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h
index 207c05ab9d..f218e48f87 100644
--- a/include/configs/mx6sabre_common.h
+++ b/include/configs/mx6sabre_common.h
@@ -208,8 +208,7 @@
#define CONFIG_IMX_HDMI
#define CONFIG_IMX_VIDEO_SKIP
-#ifndef CONFIG_SPL
#define CONFIG_USBD_HS
-#endif
+#define CONFIG_USB_FUNCTION_MASS_STORAGE
#endif /* __MX6QSABRE_COMMON_CONFIG_H */