Revision | 319d309b58f863cbb8dcb240ace6af17dc98939b (tree) |
---|---|
Time | 2022-07-20 04:54:57 |
Author | Tom Rini <trini@kons...> |
Commiter | Tom Rini |
@@ -69,6 +69,7 @@ CONFIG_DFU_MMC=y | ||
69 | 69 | CONFIG_DFU_RAM=y |
70 | 70 | CONFIG_DFU_SF=y |
71 | 71 | CONFIG_MISC=y |
72 | +CONFIG_SPL_MISC=y | |
72 | 73 | CONFIG_SYS_I2C_EEPROM_ADDR=0x50 |
73 | 74 | CONFIG_MMC_OMAP_HS=y |
74 | 75 | CONFIG_MTD=y |
@@ -103,6 +104,7 @@ CONFIG_USB_XHCI_OMAP=y | ||
103 | 104 | CONFIG_USB_DWC3=y |
104 | 105 | CONFIG_USB_DWC3_OMAP=y |
105 | 106 | CONFIG_USB_DWC3_GENERIC=y |
107 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
106 | 108 | CONFIG_USB_DWC3_PHY_OMAP=y |
107 | 109 | CONFIG_USB_GADGET=y |
108 | 110 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
@@ -8,6 +8,7 @@ CONFIG_DM_GPIO=y | ||
8 | 8 | CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm" |
9 | 9 | CONFIG_AM43XX=y |
10 | 10 | CONFIG_SPL=y |
11 | +CONFIG_SPL_MISC=y | |
11 | 12 | CONFIG_DISTRO_DEFAULTS=y |
12 | 13 | CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y |
13 | 14 | CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x4033ff00 |
@@ -104,6 +105,7 @@ CONFIG_USB_XHCI_OMAP=y | ||
104 | 105 | CONFIG_USB_DWC3=y |
105 | 106 | CONFIG_USB_DWC3_OMAP=y |
106 | 107 | CONFIG_USB_DWC3_GENERIC=y |
108 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
107 | 109 | CONFIG_USB_DWC3_PHY_OMAP=y |
108 | 110 | CONFIG_USB_GADGET=y |
109 | 111 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
@@ -15,6 +15,7 @@ CONFIG_TI_SECURE_EMIF_TOTAL_REGION_SIZE=0x02000000 | ||
15 | 15 | CONFIG_TI_SECURE_EMIF_PROTECTED_REGION_SIZE=0x01c00000 |
16 | 16 | CONFIG_SPL_DRIVERS_MISC=y |
17 | 17 | CONFIG_SPL=y |
18 | +CONFIG_SPL_MISC=y | |
18 | 19 | CONFIG_DISTRO_DEFAULTS=y |
19 | 20 | CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y |
20 | 21 | CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x4033ff00 |
@@ -102,6 +103,7 @@ CONFIG_USB_XHCI_OMAP=y | ||
102 | 103 | CONFIG_USB_DWC3=y |
103 | 104 | CONFIG_USB_DWC3_OMAP=y |
104 | 105 | CONFIG_USB_DWC3_GENERIC=y |
106 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
105 | 107 | CONFIG_USB_DWC3_PHY_OMAP=y |
106 | 108 | CONFIG_USB_GADGET=y |
107 | 109 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
@@ -14,6 +14,7 @@ CONFIG_TI_SECURE_EMIF_TOTAL_REGION_SIZE=0x02000000 | ||
14 | 14 | CONFIG_TI_SECURE_EMIF_PROTECTED_REGION_SIZE=0x01c00000 |
15 | 15 | CONFIG_TARGET_AM57XX_EVM=y |
16 | 16 | CONFIG_SPL=y |
17 | +CONFIG_SPL_MISC=y | |
17 | 18 | CONFIG_ENV_OFFSET_REDUND=0x280000 |
18 | 19 | CONFIG_SPL_SPI_FLASH_SUPPORT=y |
19 | 20 | CONFIG_SPL_SPI=y |
@@ -121,6 +122,7 @@ CONFIG_USB_XHCI_DWC3=y | ||
121 | 122 | CONFIG_USB_XHCI_OMAP=y |
122 | 123 | CONFIG_USB_DWC3=y |
123 | 124 | CONFIG_USB_DWC3_GENERIC=y |
125 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
124 | 126 | CONFIG_USB_GADGET=y |
125 | 127 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
126 | 128 | CONFIG_USB_GADGET_VENDOR_NUM=0x0451 |
@@ -12,6 +12,7 @@ CONFIG_ENV_SIZE=0x20000 | ||
12 | 12 | CONFIG_ENV_OFFSET=0x680000 |
13 | 13 | CONFIG_DM_GPIO=y |
14 | 14 | CONFIG_SPL_DM_SPI=y |
15 | +CONFIG_SPL_MISC=y | |
15 | 16 | CONFIG_DEFAULT_DEVICE_TREE="k3-am654-base-board" |
16 | 17 | CONFIG_SPL_TEXT_BASE=0x80080000 |
17 | 18 | CONFIG_SPL_MMC=y |
@@ -173,6 +174,7 @@ CONFIG_USB_XHCI_HCD=y | ||
173 | 174 | CONFIG_USB_XHCI_DWC3=y |
174 | 175 | CONFIG_USB_DWC3=y |
175 | 176 | CONFIG_USB_DWC3_GENERIC=y |
177 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
176 | 178 | CONFIG_USB_KEYBOARD=y |
177 | 179 | CONFIG_USB_GADGET=y |
178 | 180 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
@@ -3,6 +3,7 @@ CONFIG_ARCH_K3=y | ||
3 | 3 | CONFIG_SYS_MALLOC_LEN=0x2000000 |
4 | 4 | CONFIG_SYS_MALLOC_F_LEN=0x55000 |
5 | 5 | CONFIG_SPL_GPIO=y |
6 | +CONFIG_SPL_MISC=y | |
6 | 7 | CONFIG_SPL_LIBCOMMON_SUPPORT=y |
7 | 8 | CONFIG_SPL_LIBGENERIC_SUPPORT=y |
8 | 9 | CONFIG_NR_DRAM_BANKS=2 |
@@ -128,6 +129,7 @@ CONFIG_USB_XHCI_HCD=y | ||
128 | 129 | CONFIG_USB_XHCI_DWC3=y |
129 | 130 | CONFIG_USB_DWC3=y |
130 | 131 | CONFIG_USB_DWC3_GENERIC=y |
132 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
131 | 133 | CONFIG_USB_STORAGE=y |
132 | 134 | CONFIG_USB_GADGET=y |
133 | 135 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
@@ -10,6 +10,7 @@ CONFIG_SPL_TEXT_BASE=0x40300000 | ||
10 | 10 | CONFIG_OMAP54XX=y |
11 | 11 | CONFIG_TARGET_DRA7XX_EVM=y |
12 | 12 | CONFIG_SPL=y |
13 | +CONFIG_SPL_MISC=y | |
13 | 14 | CONFIG_ENV_OFFSET_REDUND=0x280000 |
14 | 15 | CONFIG_SPL_SPI_FLASH_SUPPORT=y |
15 | 16 | CONFIG_SPL_SPI=y |
@@ -147,6 +148,7 @@ CONFIG_USB_XHCI_OMAP=y | ||
147 | 148 | CONFIG_USB_DWC3=y |
148 | 149 | CONFIG_USB_DWC3_OMAP=y |
149 | 150 | CONFIG_USB_DWC3_GENERIC=y |
151 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
150 | 152 | CONFIG_USB_DWC3_PHY_OMAP=y |
151 | 153 | CONFIG_USB_GADGET=y |
152 | 154 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
@@ -13,6 +13,7 @@ CONFIG_TI_SECURE_EMIF_TOTAL_REGION_SIZE=0x02000000 | ||
13 | 13 | CONFIG_TI_SECURE_EMIF_PROTECTED_REGION_SIZE=0x01c00000 |
14 | 14 | CONFIG_TARGET_DRA7XX_EVM=y |
15 | 15 | CONFIG_SPL=y |
16 | +CONFIG_SPL_MISC=y | |
16 | 17 | CONFIG_ENV_OFFSET_REDUND=0x280000 |
17 | 18 | CONFIG_SPL_SPI_FLASH_SUPPORT=y |
18 | 19 | CONFIG_SPL_SPI=y |
@@ -141,6 +142,7 @@ CONFIG_USB_XHCI_OMAP=y | ||
141 | 142 | CONFIG_USB_DWC3=y |
142 | 143 | CONFIG_USB_DWC3_OMAP=y |
143 | 144 | CONFIG_USB_DWC3_GENERIC=y |
145 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
144 | 146 | CONFIG_USB_DWC3_PHY_OMAP=y |
145 | 147 | CONFIG_USB_GADGET=y |
146 | 148 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
@@ -15,6 +15,7 @@ CONFIG_TI_SECURE_EMIF_TOTAL_REGION_SIZE=0x02000000 | ||
15 | 15 | CONFIG_TI_SECURE_EMIF_PROTECTED_REGION_SIZE=0x01c00000 |
16 | 16 | CONFIG_TARGET_DRA7XX_EVM=y |
17 | 17 | CONFIG_SPL=y |
18 | +CONFIG_SPL_MISC=y | |
18 | 19 | CONFIG_ENV_OFFSET_REDUND=0x280000 |
19 | 20 | CONFIG_SPL_SPI_FLASH_SUPPORT=y |
20 | 21 | CONFIG_SPL_SPI=y |
@@ -129,6 +130,7 @@ CONFIG_USB_XHCI_DWC3=y | ||
129 | 130 | CONFIG_USB_XHCI_OMAP=y |
130 | 131 | CONFIG_USB_DWC3=y |
131 | 132 | CONFIG_USB_DWC3_GENERIC=y |
133 | +CONFIG_SPL_USB_DWC3_GENERIC=y | |
132 | 134 | CONFIG_USB_GADGET=y |
133 | 135 | CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
134 | 136 | CONFIG_USB_GADGET_VENDOR_NUM=0x0451 |
@@ -30,6 +30,13 @@ config USB_DWC3_GENERIC | ||
30 | 30 | Select this for Xilinx ZynqMP and similar Platforms. |
31 | 31 | This wrapper supports Host and Peripheral operation modes. |
32 | 32 | |
33 | +config SPL_USB_DWC3_GENERIC | |
34 | + bool "Generic implementation of a DWC3 wrapper (aka dwc3 glue) for the SPL" | |
35 | + depends on SPL_DM_USB && USB_DWC3 && SPL_MISC | |
36 | + help | |
37 | + Select this for Xilinx ZynqMP and similar Platforms. | |
38 | + This wrapper supports Host and Peripheral operation modes. | |
39 | + | |
33 | 40 | config USB_DWC3_MESON_G12A |
34 | 41 | bool "Amlogic Meson G12A USB wrapper" |
35 | 42 | depends on DM_USB && USB_DWC3 && ARCH_MESON |
@@ -9,7 +9,7 @@ obj-$(CONFIG_USB_DWC3_GADGET) += gadget.o ep0.o | ||
9 | 9 | obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o |
10 | 10 | obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o |
11 | 11 | obj-$(CONFIG_USB_DWC3_MESON_GXL) += dwc3-meson-gxl.o |
12 | -obj-$(CONFIG_USB_DWC3_GENERIC) += dwc3-generic.o | |
12 | +obj-$(CONFIG_$(SPL_)USB_DWC3_GENERIC) += dwc3-generic.o | |
13 | 13 | obj-$(CONFIG_USB_DWC3_UNIPHIER) += dwc3-uniphier.o |
14 | 14 | obj-$(CONFIG_USB_DWC3_LAYERSCAPE) += dwc3-layerscape.o |
15 | 15 | obj-$(CONFIG_USB_DWC3_PHY_OMAP) += ti_usb_phy.o |
@@ -241,12 +241,6 @@ static int sunxi_musb_enable(struct musb *musb) | ||
241 | 241 | musb_writeb(musb->mregs, USBC_REG_o_VEND0, 0); |
242 | 242 | |
243 | 243 | if (is_host_enabled(musb)) { |
244 | - ret = sun4i_usb_phy_vbus_detect(&glue->phy); | |
245 | - if (ret == 1) { | |
246 | - printf("A charger is plugged into the OTG: "); | |
247 | - return -ENODEV; | |
248 | - } | |
249 | - | |
250 | 244 | ret = sun4i_usb_phy_id_detect(&glue->phy); |
251 | 245 | if (ret == 1) { |
252 | 246 | printf("No host cable detected: "); |