diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-05-31 19:26:54 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-06-04 14:11:01 +0200 |
commit | 7afebb5b295acee1b0f238e7cf4fb4415bcb385f (patch) | |
tree | 0a43e4d8bce6bcbe7bd03c58855314a21f2b21d8 /board/isee | |
parent | 1c09fa38e0460a1498110fa418ba5900b9aef2c2 (diff) | |
download | u-boot-imx-7afebb5b295acee1b0f238e7cf4fb4415bcb385f.zip u-boot-imx-7afebb5b295acee1b0f238e7cf4fb4415bcb385f.tar.gz u-boot-imx-7afebb5b295acee1b0f238e7cf4fb4415bcb385f.tar.bz2 |
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>
Diffstat (limited to 'board/isee')
0 files changed, 0 insertions, 0 deletions