u-boot-brain/arch
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
..
arc arc: gitignore: ignore ARC DTBs 2015-05-18 12:06:36 +03:00
arm sunxi: usb_phy: Swap check for disconnect threshold 2015-06-04 14:11:01 +02:00
avr32 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
blackfin arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
m68k arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
microblaze arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
mips arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
nds32 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
nios2 arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
openrisc arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
powerpc powerpc: gitignore: ignore PowerPC DTBs 2015-05-28 08:18:20 -04:00
sandbox sandbox: Use defconfig to enable features 2015-05-21 09:13:18 -04:00
sh arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
sparc arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
x86 x86: Enable multi-core init for Minnowboard MAX 2015-04-30 16:13:52 -06:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig x86: Kconfig: Move DM_SPI & DM_SPI_FLASH to arch/Kconfig 2015-04-29 18:51:50 -06:00