mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
powerpc/85xx: enable USB2 gadget mode for corenet ds board
to make USB2 worked in gadget mode, we need to set it's 'dr_mode' to 'peripheral' in hwconfig, but driver starts scan from 'usb1', it'll break out if it cannot find 'usb1', so drop the 'else' clause to make driver scan all the 'usbx'. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@ -163,8 +163,6 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd)
|
|||||||
usb1_defined = 1;
|
usb1_defined = 1;
|
||||||
if (mode_idx < 0 && phy_idx < 0)
|
if (mode_idx < 0 && phy_idx < 0)
|
||||||
printf("WARNING: invalid phy or mode\n");
|
printf("WARNING: invalid phy or mode\n");
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!usb1_defined) {
|
if (!usb1_defined) {
|
||||||
|
@ -236,6 +236,7 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
fdt_fixup_liodn(blob);
|
fdt_fixup_liodn(blob);
|
||||||
|
fdt_fixup_dr_usb(blob, bd);
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
|
@ -595,6 +595,7 @@
|
|||||||
#define CONFIG_USB_EHCI_FSL
|
#define CONFIG_USB_EHCI_FSL
|
||||||
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
|
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
|
||||||
#define CONFIG_CMD_EXT2
|
#define CONFIG_CMD_EXT2
|
||||||
|
#define CONFIG_HAS_FSL_DR_USB
|
||||||
|
|
||||||
#define CONFIG_MMC
|
#define CONFIG_MMC
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user