Varshit Pandya | d888f61 | 2023-08-31 22:18:48 +0530 | [diff] [blame] | 1 | chip soc/amd/genoa |
| 2 | |
Martin Roth | 21be665 | 2023-09-27 16:47:15 -0600 | [diff] [blame^] | 3 | # USB configuration |
| 4 | register "usb.xhci0_enable" = "1" |
| 5 | register "usb.xhci1_enable" = "1" |
| 6 | # OC pins |
| 7 | register "usb.usb2_oc_pins[0].port0" = "0x0" |
| 8 | register "usb.usb2_oc_pins[0].port1" = "0x1" |
| 9 | register "usb.usb2_oc_pins[0].port2" = "0x0" |
| 10 | register "usb.usb2_oc_pins[0].port3" = "0x1" |
| 11 | |
| 12 | register "usb.usb2_oc_pins[1].port0" = "0x0" |
| 13 | register "usb.usb2_oc_pins[1].port1" = "0x1" |
| 14 | |
| 15 | register "usb.usb3_oc_pins[0].port0" = "0x0" |
| 16 | register "usb.usb3_oc_pins[0].port1" = "0x1" |
| 17 | register "usb.usb3_oc_pins[0].port2" = "0x0" |
| 18 | register "usb.usb3_oc_pins[0].port3" = "0x1" |
| 19 | register "usb.usb3_oc_pins[1].port0" = "0x0" |
| 20 | register "usb.usb3_oc_pins[1].port1" = "0x1" |
| 21 | |
| 22 | register "usb.polarity_cfg_low" = "true" |
| 23 | |
| 24 | register "usb.usb3_force_gen1.port0" = "3" |
| 25 | register "usb.usb3_force_gen1.port1" = "3" |
| 26 | register "usb.usb3_force_gen1.port2" = "3" |
| 27 | register "usb.usb3_force_gen1.port3" = "3" |
| 28 | |
Arthur Heymans | c666a91 | 2023-07-13 14:34:10 +0200 | [diff] [blame] | 29 | # eSPI configuration |
| 30 | register "common_config.espi_config" = "{ |
| 31 | .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN, |
| 32 | .io_mode = ESPI_IO_MODE_SINGLE, |
| 33 | .op_freq_mhz = ESPI_OP_FREQ_33_MHZ, |
| 34 | .crc_check_enable = 1, |
| 35 | .alert_pin = ESPI_ALERT_PIN_PUSH_PULL, |
| 36 | .periph_ch_en = 0, |
| 37 | .vw_ch_en = 0, |
| 38 | .oob_ch_en = 0, |
| 39 | .flash_ch_en = 0, |
| 40 | }" |
| 41 | |
Martin Roth | 21be665 | 2023-09-27 16:47:15 -0600 | [diff] [blame^] | 42 | # PHY settings |
| 43 | register "usb.usb31_phy_enable" = "1" |
| 44 | register "usb.usb31_phy" = "{ |
| 45 | {0x01, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, |
| 46 | {0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, |
| 47 | {0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, |
| 48 | {0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00}, |
| 49 | {0x05, 0x01, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, |
| 50 | {0x00, 0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, |
| 51 | {0x00, 0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, |
| 52 | {0x00, 0x05, 0x07, 0x00, 0x00, 0x07, 0x01, 0x05, 0x00, 0x05, 0x00, 0x05}, |
| 53 | }" |
| 54 | |
Varshit Pandya | d888f61 | 2023-08-31 22:18:48 +0530 | [diff] [blame] | 55 | device domain 0 on |
| 56 | end |
| 57 | |
| 58 | end |