Merge branch 'master' of git://git.denx.de/u-boot-usb
Signed-off-by: Tom Rini <trini@konsulko.com> Conflicts: include/configs/dra7xx_evm.h
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
/* General networking support */
|
||||
#define CONFIG_IP_DEFRAG
|
||||
#define CONFIG_TFTP_BLOCKSIZE 16384
|
||||
#define CONFIG_TFTP_BLOCKSIZE 16352
|
||||
#define CONFIG_TFTP_TSIZE
|
||||
|
||||
/* Miscellaneous commands */
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
|
||||
#define CONFIG_PHYLIB
|
||||
#define CONFIG_PHY_MICREL
|
||||
#define CONFIG_TFTP_TSIZE
|
||||
#define CONFIG_IP_DEFRAG
|
||||
#define CONFIG_TFTP_BLOCKSIZE 16384
|
||||
#define CONFIG_TFTP_BLOCKSIZE 16352
|
||||
#define CONFIG_TFTP_TSIZE
|
||||
|
||||
/* ENET1 */
|
||||
#define IMX_FEC_BASE ENET_IPS_BASE_ADDR
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
/* General networking support */
|
||||
#define CONFIG_IP_DEFRAG
|
||||
#define CONFIG_TFTP_BLOCKSIZE 16384
|
||||
#define CONFIG_TFTP_BLOCKSIZE 16352
|
||||
#define CONFIG_TFTP_TSIZE
|
||||
|
||||
/* Miscellaneous commands */
|
||||
|
||||
@@ -132,6 +132,23 @@
|
||||
#define CONFIG_FASTBOOT_FLASH_MMC_DEV 1
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#undef CONFIG_CMD_BOOTD
|
||||
#ifdef CONFIG_SPL_DFU_SUPPORT
|
||||
#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80200000
|
||||
#define CONFIG_SPL_ENV_SUPPORT
|
||||
#define CONFIG_SPL_HASH_SUPPORT
|
||||
#define DFU_ALT_INFO_RAM \
|
||||
"dfu_alt_info_ram=" \
|
||||
"kernel ram 0x80200000 0x4000000;" \
|
||||
"fdt ram 0x80f80000 0x80000;" \
|
||||
"ramdisk ram 0x81000000 0x4000000\0"
|
||||
#define DFUARGS \
|
||||
"dfu_bufsiz=0x10000\0" \
|
||||
DFU_ALT_INFO_RAM
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <configs/ti_omap5_common.h>
|
||||
|
||||
/* Enhance our eMMC support / experience. */
|
||||
|
||||
@@ -64,7 +64,6 @@
|
||||
#define DFUARGS
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
DEFAULT_LINUX_BOOT_ENV \
|
||||
@@ -128,7 +127,6 @@
|
||||
"setenv mmcroot /dev/mmcblk0p2 rw; " \
|
||||
"run mmcboot;" \
|
||||
""
|
||||
#endif
|
||||
|
||||
/*
|
||||
* SPL related defines. The Public RAM memory map the ROM defines the
|
||||
|
||||
@@ -114,9 +114,9 @@ void fdt_fixup_qe_firmware(void *fdt);
|
||||
int fdt_fixup_display(void *blob, const char *path, const char *display);
|
||||
|
||||
#if defined(CONFIG_USB_EHCI_FSL) || defined(CONFIG_USB_XHCI_FSL)
|
||||
void fdt_fixup_dr_usb(void *blob, bd_t *bd);
|
||||
void fsl_fdt_fixup_dr_usb(void *blob, bd_t *bd);
|
||||
#else
|
||||
static inline void fdt_fixup_dr_usb(void *blob, bd_t *bd) {}
|
||||
static inline void fsl_fdt_fixup_dr_usb(void *blob, bd_t *bd) {}
|
||||
#endif /* defined(CONFIG_USB_EHCI_FSL) || defined(CONFIG_USB_XHCI_FSL) */
|
||||
|
||||
#if defined(CONFIG_SYS_FSL_SEC_COMPAT)
|
||||
|
||||
@@ -95,5 +95,6 @@ bool has_erratum_a007792(void);
|
||||
bool has_erratum_a005697(void);
|
||||
bool has_erratum_a004477(void);
|
||||
bool has_erratum_a008751(void);
|
||||
bool has_erratum_a010151(void);
|
||||
#endif
|
||||
#endif /*_ASM_FSL_USB_H_ */
|
||||
|
||||
@@ -43,5 +43,6 @@ void g_dnl_set_serialnumber(char *);
|
||||
bool g_dnl_detach(void);
|
||||
void g_dnl_trigger_detach(void);
|
||||
void g_dnl_clear_detach(void);
|
||||
int run_usb_dnl_gadget(int usbctrl_index, char *usb_dnl_gadget);
|
||||
|
||||
#endif /* __G_DOWNLOAD_H_ */
|
||||
|
||||
@@ -198,6 +198,7 @@ struct dwc3 { /* offset: 0xC100 */
|
||||
|
||||
/* Global USB3 PIPE Control Register */
|
||||
#define DWC3_GUSB3PIPECTL_PHYSOFTRST (1 << 31)
|
||||
#define DWC3_GUSB3PIPECTL_DISRXDETP3 (1 << 28)
|
||||
#define DWC3_GUSB3PIPECTL_SUSPHY (1 << 17)
|
||||
|
||||
/* Global TX Fifo Size Register */
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
#define USB3_PHY_TX_RX_POWERON (USB3_PHY_RX_POWERON | USB3_PHY_TX_POWERON)
|
||||
#define USB3_PWRCTL_CLK_CMD_SHIFT 14
|
||||
#define USB3_PWRCTL_CLK_FREQ_SHIFT 22
|
||||
#define USB3_ENABLE_BEAT_BURST 0xF
|
||||
#define USB3_ENABLE_BEAT_BURST_MASK 0xFF
|
||||
#define USB3_SET_BEAT_BURST_LIMIT 0xF00
|
||||
|
||||
/* USBOTGSS_WRAPPER definitions */
|
||||
#define USBOTGSS_WRAPRESET BIT(17)
|
||||
|
||||
@@ -144,4 +144,12 @@ void spl_board_init(void);
|
||||
*/
|
||||
bool spl_was_boot_source(void);
|
||||
|
||||
/**
|
||||
* spl_dfu_cmd- run dfu command with chosen mmc device interface
|
||||
* @param usb_index - usb controller number
|
||||
* @param mmc_dev - mmc device nubmer
|
||||
*
|
||||
* @return 0 on success, otherwise error code
|
||||
*/
|
||||
int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user