u-boot/drivers
zachary 7d7f22fbd3 phy: marvell: a3700: revise the USB3 comphy setting during power on
This commit is based on commit d9899826 by
  zachary <zhangzg@marvell.com>
from u-boot-marvell, see
github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/d9899826

- According to design specification, the transmitter should be set to high
  impedence mode during electrical idle. Thus transmitter should detect RX
  at high impedence mode also, and delay is needed to accommodate high
  impedence off latency. Otherwise the USB3 will have detection issue that
  most of the time the USB3 device can not be detected at all, or be
  detected as USB2 device sometimes.
  Modified registers: RD005C302h (R181h) (0051h) Lane Configuration 1
  Bit 6: set to 1 to let Tx detect Rx at HiZ mode
  Bit [3:4]: set to 2 to be delayed by 2 clock cycles
  Bit 0: set to 1 to set transmitter to high impedance mode during idle.
- USB3 De-emphasize level of -3.5dB is mandatory, but USB3 MAC selects 0x2
  (emphasize disabled) in the MAC_PHY_TXDEEMPH [1:0], while it is supposed
  to select 0x1(3.5dB emphasize). Thus need to override what comes from
  the MAC(by setting register 0x1c2 bit2 to 0x1) and to configure the
  overridded values of MAC_PHY_TXDEEMPH [1:0] to 0x1(bit15 of register
  0x181 and bit0 of register 0x180).
- According to USB3 application note, need to update below comphy
  registers:
  Set max speed generation to USB3.0 5Gbps(set RD005C04Ah bit[11:10] to 1)
  Set capacitor value to 0xF(set RF005C224 bit[3:0] to 0xF)

Signed-off-by: Marek Behun <marek.behun@nic.cz>
Signed-off-by: Stefan Roese <sr@denx.de>
2018-05-14 10:00:15 +02:00
..
adc adc: add Amlogic Meson SAR ADC driver 2018-05-08 09:07:40 -04:00
ata scsi: ceva: Convert driver to use UCLASS_AHCI instead of SCSI 2018-05-11 09:23:43 +02:00
bios_emulator SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
block SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootcount SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clk clk: Add ICS8N3QV01 driver 2018-05-08 18:50:23 -04:00
core regmap: add regmap_update_bits() helper 2018-05-08 09:07:40 -04:00
cpu SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
crypto SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dma SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
firmware SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fpga SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gpio gpio: atmel_pio4: give a full configuration when muxing pins 2018-05-08 09:07:36 -04:00
i2c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
input SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
led dm: led: auto probe() LEDs with "default-state" 2018-05-08 09:07:33 -04:00
mailbox SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc gdsys: drivers: Add gdsys_rxaui_ctrl driver 2018-05-08 18:50:23 -04:00
mmc mmc: Improve tinification 2018-05-13 07:57:32 -04:00
mtd Merge git://git.denx.de/u-boot-tegra 2018-05-11 15:22:36 -04:00
net Merge git://git.denx.de/u-boot-fsl-qoriq 2018-05-11 07:09:21 -04:00
nvme SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pch SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci pci: tegra: introduce weak tegra_pcie_board_port_reset() function 2018-05-10 16:34:21 -07:00
pcmcia SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
phy phy: marvell: a3700: revise the USB3 comphy setting during power on 2018-05-14 10:00:15 +02:00
pinctrl Merge git://git.denx.de/u-boot-uniphier 2018-05-08 13:47:26 -04:00
power power: as3722: fix ldo_get/set_enable for ldo index bigger than 7 2018-05-10 16:34:20 -07:00
pwm SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qe SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ram regmap: change regmap_init_mem() to take ofnode instead udevice 2018-05-07 15:49:51 -04:00
remoteproc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset regmap: change regmap_init_mem() to take ofnode instead udevice 2018-05-07 15:49:51 -04:00
rtc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
scsi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial arm: zynqmp: Add ZynqMP minimal R5 support 2018-05-11 09:38:23 +02:00
soc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sound SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spi spi: fsl_qspi: Introduce is_controller_busy function 2018-05-09 09:17:51 -05:00
spmi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sysreset regmap: clean up regmap allocation 2018-05-07 15:15:27 -04:00
thermal SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer timer: Add Cadence TTC timer counter support 2018-05-11 09:23:43 +02:00
tpm SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
usb SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
video SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
watchdog watchdog: cadence: Show used timeout value 2018-05-11 09:23:43 +02:00
Kconfig bootcount: add support for bootcounter on EXT filesystem 2017-11-20 09:58:31 +01:00
Makefile bootcount: spl: Enable bootcount support in SPL 2018-05-10 20:37:05 -04:00