u-boot-brain/arch/arm/cpu/armv7/sunxi
Hans de Goede 7afebb5b29 sunxi: usb_phy: Swap check for disconnect threshold
Before this commit the code for determining the disconnect threshold was
checking for sun4i or sun6i assuming that those where the exception and
that newer SoCs use a disconnect threshold of 2 like sun7i does.

But it turns out that newer SoCs actually use a disconnect threshold of 3
and sun5i and sun7i are the exceptions, so check for those instead.

Here are the settings from the various Allwinner SDK sources:
 sun4i-a10: USBC_Phy_Write(usbc_no, 0x2a, 3, 2);
 sun5i-a13: USBC_Phy_Write(usbc_no, 0x2a, 2, 2);
 sun6i-a31: USBC_Phy_Write(usbc_no, 0x2a, 3, 2);
 sun7i-a20: USBC_Phy_Write(usbc_no, 0x2a, 2, 2);
 sun8i-a23: USBC_Phy_Write(usbc_no, 0x2a, 3, 2);
 sun8i-h3:  USBC_Phy_Write(usbc_no, 0x2a, 3, 2);
 sun9i-a80: USBC_Phy_Write(usbc_no, 0x2a, 3, 2);

Note this commit makes no functional changes for sun4i - sun7i, and
changes the disconnect threshold for sun8i to match what Allwinner uses.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
2015-06-04 14:11:01 +02:00
..
board.c sunxi/nand: Add support to the SPL for loading u-boot from internal NAND memory 2015-05-29 13:46:36 +02:00
clock_sun4i.c sunxi: sun4i: improve cpu clock selection method 2015-03-29 13:08:39 +02:00
clock_sun6i.c sunxi: Add support for A33 PLL11 (second DRAM pll) 2015-05-04 16:51:51 +02:00
clock_sun9i.c sun9i: Add sun9i (A80) clock setup support 2015-01-22 12:34:55 +01:00
clock.c sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
config.mk sunxi: Normalise FEL support 2015-02-16 20:15:09 +01:00
cpu_info.c sun9i: Basic sun9i (A80) support 2015-05-29 13:46:36 +02:00
dram_helpers.c sunxi: dram: Un-inline dram helper functions 2015-02-16 20:05:52 +01:00
dram_sun4i.c sunxi: Make DRAM_ODT_EN Kconfig setting a bool 2015-05-19 18:46:44 +02:00
dram_sun6i.c sunxi: Fix buggy sun6i/sun8i DRAM size detection logic 2015-01-14 14:56:37 +01:00
dram_sun8i_a23.c sunxi: Make DRAM_ODT_EN Kconfig setting a bool 2015-05-19 18:46:44 +02:00
dram_sun8i_a33.c sunxi: Make DRAM_ODT_EN Kconfig setting a bool 2015-05-19 18:46:44 +02:00
fel_utils.S sunxi: Support the FEL boot mode in the regular u-boot build 2015-02-16 20:23:52 +01:00
Makefile ARM: sunxi: Share sun6i PSCI backend with sun8i 2015-05-29 13:46:36 +02:00
p2wi.c sun6i: s/SUNXI_*P2WI*/SUN6I_*P2WI*/ 2015-01-14 14:56:36 +01:00
pinmux.c dm: sunxi: Add pinmux functions which take a bank parameter 2014-11-05 13:09:58 +01:00
pmic_bus.c sunxi: axp: Add support for i2c based PMICs to the pmic-bus helpers 2015-05-04 16:51:53 +02:00
prcm.c ARM: sunxi: Allow specifying module in prcm apb0 init function 2014-10-24 09:35:39 +02:00
psci_sun6i.S ARM: sunxi: Share sun6i PSCI backend with sun8i 2015-05-29 13:46:36 +02:00
psci_sun7i.S ARM: sunxi: Make PSCI code sun7i specific 2015-05-29 13:46:36 +02:00
rsb.c sunxi: GPIO pin mux hardware-feature-specific function index defines 2015-04-15 16:17:17 +02:00
start.c sunxi: add sun7i cpu, board and start of day support 2014-05-25 16:12:40 +02:00
timer.c sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
u-boot-spl.lds sunxi: Add i2c support 2014-07-18 19:41:30 +01:00
usb_phy.c sunxi: usb_phy: Swap check for disconnect threshold 2015-06-04 14:11:01 +02:00