Commit 0093b3fcd83a77b18be2f8d7833a597032df6fdf

Authored by Eric Nelson
Committed by Stefano Babic
1 parent cc9467ef7e

mx6memcal: enable SDP support

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>

Showing 3 changed files with 12 additions and 1 deletions Side-by-side Diff

board/freescale/mx6memcal/spl.c
... ... @@ -453,6 +453,5 @@
453 453 display_calibration(&calibration);
454 454 }
455 455 }
456   - reset_cpu(0);
457 456 }
configs/mx6memcal_defconfig
... ... @@ -8,6 +8,10 @@
8 8 CONFIG_SPL_WATCHDOG_SUPPORT=y
9 9 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg,SPL,MX6QDL"
10 10 CONFIG_SPL=y
  11 +CONFIG_SPL_USB_HOST_SUPPORT=y
  12 +CONFIG_SPL_USB_GADGET_SUPPORT=y
  13 +CONFIG_SPL_USBETH_SUPPORT=y
  14 +CONFIG_SPL_USB_SDP_SUPPORT=y
11 15 CONFIG_HUSH_PARSER=y
12 16 # CONFIG_CMD_BOOTD is not set
13 17 # CONFIG_CMD_BOOTM is not set
... ... @@ -29,5 +33,11 @@
29 33 # CONFIG_CMD_NFS is not set
30 34 CONFIG_CMD_CACHE=y
31 35 # CONFIG_MMC is not set
  36 +CONFIG_USB=y
  37 +CONFIG_USB_GADGET=y
  38 +CONFIG_USB_GADGET_MANUFACTURER="FSL"
  39 +CONFIG_USB_GADGET_VENDOR_NUM=0x0525
  40 +CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
  41 +CONFIG_CI_UDC=y
32 42 CONFIG_REGEX=y
include/configs/mx6memcal.h
... ... @@ -56,5 +56,7 @@
56 56  
57 57 #define CONFIG_ENV_SIZE (8 * 1024)
58 58  
  59 +#define CONFIG_MXC_USB_PORTSC PORT_PTS_UTMI
  60 +
59 61 #endif /* __CONFIG_H */