diff options
author | he.he <he.he@amlogic.com> | 2019-03-19 15:42:52 +0800 |
---|---|---|
committer | Dongjin Kim <tobetter@gmail.com> | 2020-02-13 17:13:40 +0900 |
commit | aa4b779ba505199dd344eee8b54d484733d029bd (patch) | |
tree | eab751c411fa843a79967840e117b8d1d2f17b3f | |
parent | 956fc0a8cba0865ebb85aae0c9ec9503292fafb0 (diff) | |
download | u-boot-odroid-c1-aa4b779ba505199dd344eee8b54d484733d029bd.tar.gz |
usb: some udisk amldevread data failed [1/1]
PD#SWPL-5292
Problem:
g12b-revB, some u disk amldevread test failed
Solution:
Changing the register 0x54 to 0x2a, enabled the hs rx idle noise filter,
and the abnormal u-disk has no problem in the amldevread test.
Verify:
g12b revB, PASS
Test: pass
Change-Id: I3ddf566ad53ee3bb7ac42de8f8411a44147163ba
Signed-off-by: he.he <he.he@amlogic.com>
-rw-r--r-- | arch/arm/cpu/armv8/g12b/usb.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/fastboot/platform.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/v2_burning/v2_usb_tool/platform.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/g12b/usb.c b/arch/arm/cpu/armv8/g12b/usb.c index 07f2de0b73..0c75a05cd2 100644 --- a/arch/arm/cpu/armv8/g12b/usb.c +++ b/arch/arm/cpu/armv8/g12b/usb.c @@ -138,6 +138,7 @@ void set_usb_phy_tuning_1(int port) if (board_usb_get_revb_type() == 1) { (*(volatile uint32_t *)(phy_reg_base + 0x54)) = 0x2a; (*(volatile uint32_t *)(phy_reg_base + 0x50)) = USB_G12x_PHY_PLL_SETTING_1; + (*(volatile uint32_t *)(phy_reg_base + 0x54)) = 0x2a; (*(volatile uint32_t *)(phy_reg_base + 0x34)) = USB_G12x_PHY_PLL_SETTING_3 & (0x1f << 16); return; } diff --git a/drivers/usb/gadget/fastboot/platform.c b/drivers/usb/gadget/fastboot/platform.c index 43ff5c3d6c..8677063b77 100644 --- a/drivers/usb/gadget/fastboot/platform.c +++ b/drivers/usb/gadget/fastboot/platform.c @@ -236,6 +236,7 @@ void set_usb_phy21_tuning_fb(void) if (f_platform_usb_check_g12b_revb() || f_platform_usb_check_sm1()) { (*(volatile uint32_t *)(phy_reg_base + 0x54)) = 0x2a; (*(volatile uint32_t *)(phy_reg_base + 0x50)) = USB_G12x_PHY_PLL_SETTING_1; + (*(volatile uint32_t *)(phy_reg_base + 0x54)) = 0x2a; (*(volatile uint32_t *)(phy_reg_base + 0x34)) = USB_G12x_PHY_PLL_SETTING_3 & (0x1f << 16); return; } diff --git a/drivers/usb/gadget/v2_burning/v2_usb_tool/platform.c b/drivers/usb/gadget/v2_burning/v2_usb_tool/platform.c index ff2bf53b5f..812cd1cdee 100644 --- a/drivers/usb/gadget/v2_burning/v2_usb_tool/platform.c +++ b/drivers/usb/gadget/v2_burning/v2_usb_tool/platform.c @@ -238,6 +238,7 @@ void set_usb_phy21_tuning_update(void) if (b_platform_usb_check_g12b_revb() || b_platform_usb_check_sm1()) { (*(volatile uint32_t *)(phy_reg_base + 0x54)) = 0x2a; (*(volatile uint32_t *)(phy_reg_base + 0x50)) = USB_G12x_PHY_PLL_SETTING_1; + (*(volatile uint32_t *)(phy_reg_base + 0x54)) = 0x2a; (*(volatile uint32_t *)(phy_reg_base + 0x34)) = USB_G12x_PHY_PLL_SETTING_3 & (0x1f << 16); return; } |