Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 1 | chip soc/intel/apollolake |
Jamie Chen | 232113e | 2019-05-14 17:18:52 +0800 | [diff] [blame] | 2 | # EMMC Tx CMD Delay |
| 3 | # Refer to EDS-Vol2-16.32. |
| 4 | # [14:8] steps of delay for DDR mode, each 125ps. |
| 5 | # [6:0] steps of delay for SDR mode, each 125ps. |
| 6 | register "emmc_tx_cmd_cntl" = "0x00000505" |
| 7 | |
| 8 | # EMMC TX DATA Delay 1 |
| 9 | # Refer to EDS-Vol2-16.33. |
| 10 | # [14:8] steps of delay for HS400, each 125ps. |
| 11 | # [6:0] steps of delay for SDR104/HS200, each 125ps. |
| 12 | register "emmc_tx_data_cntl1" = "0x00000c0d" |
| 13 | |
| 14 | # EMMC TX DATA Delay 2 |
| 15 | # Refer to EDS-Vol2-16.34. |
| 16 | # [30:24] steps of delay for SDR50, each 125ps. |
| 17 | # [22:16] steps of delay for DDR50, each 125ps. |
| 18 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 19 | # [6:0] steps of delay for SDR12, each 125ps. |
| 20 | register "emmc_tx_data_cntl2" = "0x1c2a2a2a" |
| 21 | |
| 22 | # EMMC RX CMD/DATA Delay 1 |
| 23 | # Refer to EDS-Vol2-16.35. |
| 24 | # [30:24] steps of delay for SDR50, each 125ps. |
| 25 | # [22:16] steps of delay for DDR50, each 125ps. |
| 26 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 27 | # [6:0] steps of delay for SDR12, each 125ps. |
| 28 | register "emmc_rx_cmd_data_cntl1" = "0x00181b1b" |
| 29 | |
| 30 | # EMMC RX CMD/DATA Delay 2 |
| 31 | # Refer to EDS-Vol2-16.37. |
| 32 | # [17:16] stands for Rx Clock before Output Buffer |
| 33 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps. |
| 34 | # [6:0] steps of delay for HS200, each 125ps. |
| 35 | register "emmc_rx_cmd_data_cntl2" = "0x0001000f" |
| 36 | |
| 37 | # EMMC Rx Strobe Delay |
| 38 | # Refer to EDS-Vol2-16.36. |
| 39 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps. |
| 40 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps. |
| 41 | register "emmc_rx_strobe_cntl" = "0x00000a0a" |
| 42 | |
Seunghwan Kim | 5edbea0 | 2019-02-12 11:12:34 +0900 | [diff] [blame] | 43 | # Override USB2 PER PORT register (PORT 4) |
| 44 | register "usb2eye[4]" = "{ |
| 45 | .Usb20OverrideEn = 1, |
| 46 | .Usb20PerPortPeTxiSet = 7, |
| 47 | .Usb20PerPortTxiSet = 3, |
| 48 | .Usb20IUsbTxEmphasisEn = 3, |
| 49 | .Usb20PerPortTxPeHalf = 0, |
| 50 | }" |
| 51 | |
| 52 | # Override USB2 PER PORT register (PORT 6) |
| 53 | register "usb2eye[6]" = "{ |
| 54 | .Usb20OverrideEn = 1, |
| 55 | .Usb20PerPortPeTxiSet = 3, |
| 56 | .Usb20PerPortTxiSet = 0, |
| 57 | .Usb20IUsbTxEmphasisEn = 3, |
| 58 | .Usb20PerPortTxPeHalf = 0, |
| 59 | }" |
| 60 | |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 61 | # Intel Common SoC Config |
| 62 | #+-------------------+---------------------------+ |
| 63 | #| Field | Value | |
| 64 | #+-------------------+---------------------------+ |
| 65 | #| GSPI0 | cr50 TPM. Early init is | |
| 66 | #| | required to set up a BAR | |
| 67 | #| | for TPM communication | |
| 68 | #| | before memory is up | |
Seunghwan Kim | 6dda1e0 | 2019-01-25 09:38:40 +0900 | [diff] [blame] | 69 | #| I2C5 | Audio | |
| 70 | #| I2C6 | Trackpad | |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 71 | #+-------------------+---------------------------+ |
| 72 | register "common_soc_config" = "{ |
| 73 | .gspi[0] = { |
| 74 | .speed_mhz = 1, |
| 75 | .early_init = 1, |
| 76 | }, |
Seunghwan Kim | 6dda1e0 | 2019-01-25 09:38:40 +0900 | [diff] [blame] | 77 | .i2c[6] = { |
| 78 | .speed = I2C_SPEED_FAST, |
| 79 | .rise_time_ns = 66, |
| 80 | .fall_time_ns = 90, |
| 81 | .data_hold_time_ns = 350, |
| 82 | }, |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 83 | }" |
| 84 | |
| 85 | device domain 0 on |
Karthikeyan Ramasubramanian | 25fcdce | 2019-06-05 10:29:17 -0600 | [diff] [blame] | 86 | device pci 15.0 on |
| 87 | chip drivers/usb/acpi |
| 88 | register "desc" = ""Root Hub"" |
| 89 | register "type" = "UPC_TYPE_HUB" |
| 90 | device usb 0.0 on |
| 91 | chip drivers/usb/acpi |
| 92 | register "desc" = ""Right Type-A Port"" |
| 93 | register "type" = "UPC_TYPE_A" |
| 94 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 95 | device usb 2.1 on end |
| 96 | end |
| 97 | chip drivers/usb/acpi |
| 98 | device usb 2.3 off end |
| 99 | end |
| 100 | chip drivers/usb/acpi |
| 101 | register "desc" = ""Right Type-A Port"" |
| 102 | register "type" = "UPC_TYPE_USB3_A" |
| 103 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 104 | device usb 3.1 on end |
| 105 | end |
| 106 | chip drivers/usb/acpi |
| 107 | device usb 3.3 off end |
| 108 | end |
| 109 | end |
| 110 | end |
| 111 | end # - XHCI |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 112 | device pci 17.1 on |
| 113 | chip drivers/i2c/da7219 |
| 114 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)" |
| 115 | register "btn_cfg" = "50" |
| 116 | register "mic_det_thr" = "500" |
| 117 | register "jack_ins_deb" = "20" |
| 118 | register "jack_det_rate" = ""32ms_64ms"" |
| 119 | register "jack_rem_deb" = "1" |
| 120 | register "a_d_btn_thr" = "0xa" |
| 121 | register "d_b_btn_thr" = "0x16" |
| 122 | register "b_c_btn_thr" = "0x21" |
| 123 | register "c_mic_btn_thr" = "0x3e" |
| 124 | register "btn_avg" = "4" |
| 125 | register "adc_1bit_rpt" = "1" |
| 126 | register "micbias_lvl" = "2600" |
| 127 | register "mic_amp_in_sel" = ""diff"" |
| 128 | device i2c 1a on end |
| 129 | end |
| 130 | end # - I2C 5 |
| 131 | device pci 17.2 on |
| 132 | chip drivers/i2c/generic |
| 133 | register "hid" = ""ELAN0000"" |
| 134 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | dc80745 | 2022-03-30 12:30:21 -0500 | [diff] [blame] | 135 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPIO_135_IRQ)" |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 136 | register "wake" = "GPE0_DW3_27" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 137 | register "detect" = "1" |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 138 | device i2c 15 on end |
| 139 | end |
Seunghwan Kim | 133f8e3 | 2020-12-15 13:07:05 +0900 | [diff] [blame] | 140 | chip drivers/i2c/hid |
| 141 | register "generic.hid" = ""ZNT0000"" |
| 142 | register "generic.desc" = ""Zinitix Touchpad"" |
| 143 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPIO_135_IRQ)" |
| 144 | register "generic.wake" = "GPE0_DW3_27" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 145 | register "generic.detect" = "1" |
Seunghwan Kim | 133f8e3 | 2020-12-15 13:07:05 +0900 | [diff] [blame] | 146 | register "hid_desc_reg_offset" = "0xE" |
| 147 | device i2c 40 on end |
| 148 | end |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 149 | end # - I2C 6 |
| 150 | end |
Seunghwan Kim | 0b555ab | 2020-08-13 15:41:49 +0900 | [diff] [blame] | 151 | |
| 152 | # Disable compliance mode |
Mario Scheithauer | feafddb | 2023-06-15 14:22:22 +0200 | [diff] [blame^] | 153 | register "disable_compliance_mode" = "1" |
Karthikeyan Ramasubramanian | a1ee883 | 2018-11-15 15:20:36 -0700 | [diff] [blame] | 154 | end |