mb/google/zork/var/vilboz: adjust USB phy settings for all USB ports
Sometimes the USB device will be lost after DUT resume. Adjust USB phy settings for all USB ports to fix the failed symptom. BUG=b:174538960 BRANCH=zork TEST=USB devices stay connected after running suspend test Signed-off-by: Frank Wu <frank_wu@compal.corp-partner.google.com> Change-Id: I25bca968bb4a740161b36e2082d1e500ae648712 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50020 Reviewed-by: Kangheui Won <khwon@chromium.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Peichao Wang <pwang12@lenovo.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
738aaa24d3
commit
3dba88401d
|
@ -51,6 +51,84 @@ chip soc/amd/picasso
|
||||||
# USB OC pin mapping
|
# USB OC pin mapping
|
||||||
register "usb_port_overcurrent_pin[1]" = "USB_OC_NONE" # LTE instead of USB C1
|
register "usb_port_overcurrent_pin[1]" = "USB_OC_NONE" # LTE instead of USB C1
|
||||||
|
|
||||||
|
# Controller0 Port0
|
||||||
|
register "usb_2_port_tune_params[0]" = "{
|
||||||
|
.com_pds_tune = 0x07,
|
||||||
|
.sq_rx_tune = 0x3,
|
||||||
|
.tx_fsls_tune = 0x3,
|
||||||
|
.tx_pre_emp_amp_tune = 0x03,
|
||||||
|
.tx_pre_emp_pulse_tune = 0x0,
|
||||||
|
.tx_rise_tune = 0x1,
|
||||||
|
.tx_vref_tune = 0x6,
|
||||||
|
.tx_hsxv_tune = 0x3,
|
||||||
|
.tx_res_tune = 0x01,
|
||||||
|
}"
|
||||||
|
|
||||||
|
# Controller0 Port1
|
||||||
|
register "usb_2_port_tune_params[1]" = "{
|
||||||
|
.com_pds_tune = 0x07,
|
||||||
|
.sq_rx_tune = 0x3,
|
||||||
|
.tx_fsls_tune = 0x3,
|
||||||
|
.tx_pre_emp_amp_tune = 0x03,
|
||||||
|
.tx_pre_emp_pulse_tune = 0x0,
|
||||||
|
.tx_rise_tune = 0x1,
|
||||||
|
.tx_vref_tune = 0x6,
|
||||||
|
.tx_hsxv_tune = 0x3,
|
||||||
|
.tx_res_tune = 0x01,
|
||||||
|
}"
|
||||||
|
|
||||||
|
# Controller0 Port2
|
||||||
|
register "usb_2_port_tune_params[2]" = "{
|
||||||
|
.com_pds_tune = 0x07,
|
||||||
|
.sq_rx_tune = 0x3,
|
||||||
|
.tx_fsls_tune = 0x3,
|
||||||
|
.tx_pre_emp_amp_tune = 0x03,
|
||||||
|
.tx_pre_emp_pulse_tune = 0x0,
|
||||||
|
.tx_rise_tune = 0x1,
|
||||||
|
.tx_vref_tune = 0x6,
|
||||||
|
.tx_hsxv_tune = 0x3,
|
||||||
|
.tx_res_tune = 0x01,
|
||||||
|
}"
|
||||||
|
|
||||||
|
# Controller0 Port3
|
||||||
|
register "usb_2_port_tune_params[3]" = "{
|
||||||
|
.com_pds_tune = 0x07,
|
||||||
|
.sq_rx_tune = 0x3,
|
||||||
|
.tx_fsls_tune = 0x3,
|
||||||
|
.tx_pre_emp_amp_tune = 0x03,
|
||||||
|
.tx_pre_emp_pulse_tune = 0x0,
|
||||||
|
.tx_rise_tune = 0x1,
|
||||||
|
.tx_vref_tune = 0x6,
|
||||||
|
.tx_hsxv_tune = 0x3,
|
||||||
|
.tx_res_tune = 0x01,
|
||||||
|
}"
|
||||||
|
|
||||||
|
# Controller1 Port0
|
||||||
|
register "usb_2_port_tune_params[4]" = "{
|
||||||
|
.com_pds_tune = 0x07,
|
||||||
|
.sq_rx_tune = 0x3,
|
||||||
|
.tx_fsls_tune = 0x3,
|
||||||
|
.tx_pre_emp_amp_tune = 0x03,
|
||||||
|
.tx_pre_emp_pulse_tune = 0x0,
|
||||||
|
.tx_rise_tune = 0x1,
|
||||||
|
.tx_vref_tune = 0x6,
|
||||||
|
.tx_hsxv_tune = 0x3,
|
||||||
|
.tx_res_tune = 0x01,
|
||||||
|
}"
|
||||||
|
|
||||||
|
# Controller1 Port1
|
||||||
|
register "usb_2_port_tune_params[5]" = "{
|
||||||
|
.com_pds_tune = 0x07,
|
||||||
|
.sq_rx_tune = 0x3,
|
||||||
|
.tx_fsls_tune = 0x3,
|
||||||
|
.tx_pre_emp_amp_tune = 0x03,
|
||||||
|
.tx_pre_emp_pulse_tune = 0x0,
|
||||||
|
.tx_rise_tune = 0x1,
|
||||||
|
.tx_vref_tune = 0x6,
|
||||||
|
.tx_hsxv_tune = 0x3,
|
||||||
|
.tx_res_tune = 0x01,
|
||||||
|
}"
|
||||||
|
|
||||||
# I2C2 for touchscreen and trackpad
|
# I2C2 for touchscreen and trackpad
|
||||||
register "i2c[2]" = "{
|
register "i2c[2]" = "{
|
||||||
.speed = I2C_SPEED_FAST,
|
.speed = I2C_SPEED_FAST,
|
||||||
|
|
Loading…
Reference in New Issue