]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx6memcal: enable SDP support
authorEric Nelson <eric@nelint.com>
Thu, 18 Jan 2018 14:47:32 +0000 (07:47 -0700)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
The initial implementation of mx6memcal reset the CPU after
running the memory calibration procedure because the generic
board has no information about which boot devices are available.

Now that we have SDP support in SPL, use it to allow a full
U-Boot to be uploaded (i.e. to use "mtest").

Signed-off-by: Eric Nelson <eric@nelint.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
board/freescale/mx6memcal/spl.c
configs/mx6memcal_defconfig
include/configs/mx6memcal.h

index 027da4fbbc5faf004386ed724ce9327f9c5cc568..b4b50db772d076d7e2ce35ce432a2561a5a8084d 100644 (file)
@@ -453,5 +453,4 @@ void board_init_f(ulong dummy)
                        display_calibration(&calibration);
                }
        }
-       reset_cpu(0);
 }
index b27330c589d9057d5a7882fad6144ce1e7ba1d89..d3720dccdb35ca0879e111ae8ac229884b06a7d5 100644 (file)
@@ -8,6 +8,10 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg,SPL,MX6QDL"
 CONFIG_SPL=y
+CONFIG_SPL_USB_HOST_SUPPORT=y
+CONFIG_SPL_USB_GADGET_SUPPORT=y
+CONFIG_SPL_USBETH_SUPPORT=y
+CONFIG_SPL_USB_SDP_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 # CONFIG_CMD_BOOTD is not set
 # CONFIG_CMD_BOOTM is not set
@@ -29,4 +33,10 @@ CONFIG_CMD_MEMTEST=y
 # CONFIG_CMD_NFS is not set
 CONFIG_CMD_CACHE=y
 # CONFIG_MMC is not set
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="FSL"
+CONFIG_USB_GADGET_VENDOR_NUM=0x0525
+CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
+CONFIG_CI_UDC=y
 CONFIG_REGEX=y
index f5238a52f50fb9fe42a63d0b0fbf9cfe5e14a28f..28c67c493ee08594a24771272bd03340bf05a95a 100644 (file)
@@ -56,4 +56,6 @@
 
 #define CONFIG_ENV_SIZE                        (8 * 1024)
 
+#define CONFIG_MXC_USB_PORTSC  PORT_PTS_UTMI
+
 #endif        /* __CONFIG_H */