Zhi Li | af207a5 | 2021-10-27 15:06:06 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field AUDIO_CODEC_SOURCE 41 43 |
| 3 | option AUDIO_CODEC_UNPROVISIONED 0 |
| 4 | option AUDIO_CODEC_ALC5682 1 |
| 5 | option AUDIO_CODEC_ALC5682I_VS 2 |
| 6 | end |
| 7 | end |
| 8 | |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 9 | chip soc/intel/jasperlake |
Zanxi Chen | 55d47bd | 2022-09-23 09:59:46 +0800 | [diff] [blame] | 10 | # Disable PCIe Root Port 8 (index 7) |
| 11 | register "PcieRpEnable[7]" = "0" |
| 12 | # Disable PCIe Clock Source 4 (index 3) |
| 13 | register "PcieClkSrcUsage[3]" = "0xff" |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 14 | |
chenzanxi | c4691ab | 2021-02-22 11:40:50 +0800 | [diff] [blame] | 15 | # USB Port Configuration |
| 16 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # User Facing Camera |
Zanxi Chen | d92966b | 2021-03-18 21:54:57 +0800 | [diff] [blame] | 17 | register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/1 Type-A Port A1 |
chenzanxi | c4691ab | 2021-02-22 11:40:50 +0800 | [diff] [blame] | 18 | |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 19 | # Intel Common SoC Config |
| 20 | #+-------------------+---------------------------+ |
| 21 | #| Field | Value | |
| 22 | #+-------------------+---------------------------+ |
| 23 | #| GSPI0 | cr50 TPM. Early init is | |
| 24 | #| | required to set up a BAR | |
| 25 | #| | for TPM communication | |
| 26 | #| | before memory is up | |
| 27 | #| I2C0 | Trackpad | |
Zanxi Chen | dfaab1b | 2021-05-21 22:29:16 +0800 | [diff] [blame] | 28 | #| I2C1 | Digitizer, Stylus | |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 29 | #| I2C2 | Touchscreen | |
| 30 | #| I2C3 | Camera | |
| 31 | #| I2C4 | Audio | |
chenzanxi | 46ee366 | 2021-02-23 10:35:50 +0800 | [diff] [blame] | 32 | #| I2C5 | P-Sensor | |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 33 | #+-------------------+---------------------------+ |
| 34 | register "common_soc_config" = "{ |
| 35 | .gspi[0] = { |
| 36 | .speed_mhz = 1, |
| 37 | .early_init = 1, |
| 38 | }, |
| 39 | .i2c[0] = { |
| 40 | .speed = I2C_SPEED_FAST, |
Zanxi Chen | 542a2d9 | 2021-05-31 20:13:21 +0800 | [diff] [blame] | 41 | .rise_time_ns = 260, |
| 42 | .fall_time_ns = 50, |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 43 | }, |
| 44 | .i2c[1] = { |
| 45 | .speed = I2C_SPEED_FAST, |
| 46 | }, |
| 47 | .i2c[2] = { |
| 48 | .speed = I2C_SPEED_FAST, |
Tao Xia | fd952aa | 2021-03-18 16:18:06 +0800 | [diff] [blame] | 49 | .rise_time_ns = 86, |
| 50 | .fall_time_ns = 5, |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 51 | }, |
| 52 | .i2c[3] = { |
| 53 | .speed = I2C_SPEED_FAST, |
Tao Xia | fd952aa | 2021-03-18 16:18:06 +0800 | [diff] [blame] | 54 | .rise_time_ns = 84, |
| 55 | .fall_time_ns = 4, |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 56 | }, |
| 57 | .i2c[4] = { |
| 58 | .speed = I2C_SPEED_FAST, |
Tao Xia | fd952aa | 2021-03-18 16:18:06 +0800 | [diff] [blame] | 59 | .rise_time_ns = 69, |
| 60 | .fall_time_ns = 3, |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 61 | }, |
chenzanxi | 46ee366 | 2021-02-23 10:35:50 +0800 | [diff] [blame] | 62 | .i2c[5] = { |
| 63 | .speed = I2C_SPEED_FAST, |
Tao Xia | fd952aa | 2021-03-18 16:18:06 +0800 | [diff] [blame] | 64 | .rise_time_ns = 129, |
| 65 | .fall_time_ns = 4, |
chenzanxi | 46ee366 | 2021-02-23 10:35:50 +0800 | [diff] [blame] | 66 | }, |
| 67 | }" |
| 68 | |
Tao Xia | 2ffd1bf | 2021-06-15 16:15:08 +0800 | [diff] [blame] | 69 | register "usb2_ports[3]" = "{ |
| 70 | .enable = 1, |
| 71 | .ocpin = OC_SKIP, |
| 72 | .tx_bias = USB2_BIAS_0MV, |
| 73 | .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON, |
| 74 | .pre_emp_bias = USB2_BIAS_28P15MV, |
| 75 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
| 76 | }" # WWAN |
| 77 | |
chenzanxi | 46ee366 | 2021-02-23 10:35:50 +0800 | [diff] [blame] | 78 | register "SerialIoI2cMode" = "{ |
| 79 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 80 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, |
| 81 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 82 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 83 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 84 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 85 | }" |
| 86 | |
Chia-Ling Hou | b5a0328 | 2023-06-07 16:53:00 +0800 | [diff] [blame^] | 87 | # Power limit config |
| 88 | register "power_limits_config[JSL_N4500_6W_CORE]" = "{ |
| 89 | .tdp_pl1_override = 7, |
| 90 | .tdp_pl2_override = 20, |
| 91 | }" |
| 92 | |
| 93 | register "power_limits_config[JSL_N6000_6W_CORE]" = "{ |
| 94 | .tdp_pl1_override = 7, |
| 95 | .tdp_pl2_override = 20, |
| 96 | }" |
| 97 | |
| 98 | register "power_limits_config[JSL_N5100_6W_CORE]" = "{ |
Tao Xia | 69984cf | 2021-06-10 21:28:32 +0800 | [diff] [blame] | 99 | .tdp_pl1_override = 7, |
| 100 | .tdp_pl2_override = 20, |
| 101 | }" |
| 102 | |
Tao Xia | 5aa5119 | 2021-07-05 14:23:01 +0800 | [diff] [blame] | 103 | register "tcc_offset" = "10" # TCC of 95C |
Tao Xia | 69984cf | 2021-06-10 21:28:32 +0800 | [diff] [blame] | 104 | |
Tao Xia | 6c88754 | 2021-07-27 17:39:12 +0800 | [diff] [blame] | 105 | register "xhci_lfps_sampling_offtime_ms" = "0" |
| 106 | |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 107 | device domain 0 on |
Tao Xia | 69984cf | 2021-06-10 21:28:32 +0800 | [diff] [blame] | 108 | device pci 04.0 on |
| 109 | chip drivers/intel/dptf |
| 110 | ## Passive Policy |
| 111 | register "policies.passive" = "{ |
Tao Xia | 3c8dc63 | 2021-08-05 19:24:21 +0800 | [diff] [blame] | 112 | [0] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 67, 3000), |
Tao Xia | 5aa5119 | 2021-07-05 14:23:01 +0800 | [diff] [blame] | 113 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 67, 3000), |
| 114 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 67, 3000),}" |
Tao Xia | 69984cf | 2021-06-10 21:28:32 +0800 | [diff] [blame] | 115 | ## Critical Policy |
| 116 | register "policies.critical" = "{ |
| 117 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 118 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 80, SHUTDOWN), |
| 119 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 90, SHUTDOWN), |
| 120 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 90, SHUTDOWN),}" |
| 121 | register "controls.power_limits.pl1" = "{ |
| 122 | .min_power = 3000, |
| 123 | .max_power = 7000, |
| 124 | .time_window_min = 28 * MSECS_PER_SEC, |
| 125 | .time_window_max = 28 * MSECS_PER_SEC, |
| 126 | .granularity = 125,}" |
| 127 | register "controls.power_limits.pl2" = "{ |
| 128 | .min_power = 20000, |
| 129 | .max_power = 20000, |
| 130 | .time_window_min = 28 * MSECS_PER_SEC, |
| 131 | .time_window_max = 32 * MSECS_PER_SEC, |
| 132 | .granularity = 1000,}" |
| 133 | ## Charger Performance Control (Control, mA) |
| 134 | register "controls.charger_perf" = "{ |
| 135 | [0] = { 255, 3000 }, |
| 136 | [1] = { 32, 2000 }, |
| 137 | [2] = { 24, 1500 }, |
| 138 | [3] = { 16, 1000 }, |
| 139 | [4] = { 8, 500 } |
| 140 | }" |
| 141 | device generic 0 on end |
| 142 | end |
| 143 | end # SA Thermal device |
chenzanxi | c4691ab | 2021-02-22 11:40:50 +0800 | [diff] [blame] | 144 | device pci 05.0 on # IPU - MIPI Camera |
| 145 | chip drivers/intel/mipi_camera |
| 146 | register "acpi_uid" = "0x50000" |
| 147 | register "acpi_name" = ""IPU0"" |
| 148 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 149 | |
| 150 | register "cio2_num_ports" = "2" |
| 151 | register "cio2_lanes_used" = "{1,4}" |
| 152 | register "cio2_lane_endpoint[1]" = ""^I2C3.CAM1"" |
| 153 | register "cio2_prt[0]" = "0" |
| 154 | register "cio2_prt[1]" = "2" |
| 155 | device generic 0 on end |
| 156 | end |
| 157 | end |
| 158 | device pci 14.0 on |
| 159 | chip drivers/usb/acpi |
| 160 | device usb 0.0 on |
| 161 | chip drivers/usb/acpi |
| 162 | register "desc" = ""User Facing Camera"" |
| 163 | register "type" = "UPC_TYPE_INTERNAL" |
| 164 | register "has_power_resource" = "1" |
| 165 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D15)" |
| 166 | register "enable_delay_ms" = "20" |
| 167 | device usb 2.5 on end |
| 168 | end |
chenzanxi | 011e1b3 | 2021-02-23 11:29:26 +0800 | [diff] [blame] | 169 | chip drivers/usb/acpi |
| 170 | register "desc" = ""LTE"" |
| 171 | register "type" = "UPC_TYPE_INTERNAL" |
| 172 | register "has_power_resource" = "1" |
| 173 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)" |
| 174 | register "reset_off_delay_ms" = "10" |
| 175 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 176 | register "enable_delay_ms" = "20" |
| 177 | device usb 3.3 on end |
| 178 | end |
Zanxi Chen | 63813f9 | 2021-03-10 16:11:37 +0800 | [diff] [blame] | 179 | chip drivers/usb/acpi |
| 180 | register "desc" = ""Right Type-A Port"" |
| 181 | register "type" = "UPC_TYPE_USB3_A" |
| 182 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 183 | device usb 3.4 on end |
| 184 | end |
chenzanxi | c4691ab | 2021-02-22 11:40:50 +0800 | [diff] [blame] | 185 | end |
| 186 | end |
| 187 | end # USB xHCI |
chenzanxi | 7eac884 | 2021-02-20 15:54:20 +0800 | [diff] [blame] | 188 | device pci 15.0 on |
| 189 | chip drivers/i2c/generic |
| 190 | register "hid" = ""ELAN0000"" |
| 191 | register "desc" = ""ELAN Touchpad"" |
| 192 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)" |
| 193 | register "wake" = "GPE0_DW0_03" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 194 | register "detect" = "1" |
chenzanxi | 7eac884 | 2021-02-20 15:54:20 +0800 | [diff] [blame] | 195 | device i2c 15 on end |
| 196 | end |
| 197 | end #I2C 0 |
chenzanxi | a03b180 | 2021-02-20 16:47:34 +0800 | [diff] [blame] | 198 | device pci 15.2 on |
Zanxi Chen | dfaab1b | 2021-05-21 22:29:16 +0800 | [diff] [blame] | 199 | chip drivers/generic/gpio_keys |
| 200 | register "name" = ""PENH"" |
| 201 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_C12)" |
| 202 | register "key.wakeup_route" = "WAKEUP_ROUTE_GPIO_IRQ" |
| 203 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 204 | register "key.dev_name" = ""EJCT"" |
| 205 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 206 | register "key.linux_input_type" = "EV_SW" |
| 207 | register "key.label" = ""pen_eject"" |
| 208 | device generic 0 on end |
| 209 | end |
chenzanxi | a03b180 | 2021-02-20 16:47:34 +0800 | [diff] [blame] | 210 | chip drivers/i2c/hid |
| 211 | register "generic.hid" = ""ELAN9008"" |
| 212 | register "generic.desc" = ""ELAN Touchscreen"" |
| 213 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 214 | register "generic.detect" = "1" |
chenzanxi | a03b180 | 2021-02-20 16:47:34 +0800 | [diff] [blame] | 215 | register "generic.reset_gpio" = |
| 216 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 217 | register "generic.enable_gpio" = |
| 218 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 219 | register "generic.enable_delay_ms" = "7" |
| 220 | register "generic.has_power_resource" = "1" |
| 221 | register "hid_desc_reg_offset" = "0x01" |
| 222 | device i2c 10 on end |
| 223 | end |
| 224 | end # I2C 2 |
chenzanxi | c4691ab | 2021-02-22 11:40:50 +0800 | [diff] [blame] | 225 | device pci 15.3 on |
| 226 | chip drivers/intel/mipi_camera |
| 227 | register "acpi_hid" = ""OVTI8856"" |
| 228 | register "acpi_uid" = "0" |
| 229 | register "acpi_name" = ""CAM1"" |
| 230 | register "chip_name" = ""Ov 8856 Camera"" |
| 231 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 232 | |
| 233 | register "ssdb.lanes_used" = "4" |
| 234 | register "ssdb.link_used" = "1" |
| 235 | register "ssdb.vcm_type" = "0x0C" |
| 236 | register "vcm_name" = ""VCM0"" |
| 237 | register "num_freq_entries" = "2" |
| 238 | register "link_freq[0]" = "360000000" |
| 239 | register "link_freq[1]" = "180000000" |
| 240 | register "remote_name" = ""IPU0"" |
| 241 | |
| 242 | register "has_power_resource" = "1" |
| 243 | #Controls |
| 244 | register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1 |
| 245 | register "clk_panel.clks[0].freq" = "1" #19.2 Mhz |
| 246 | |
| 247 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8 |
| 248 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2 |
| 249 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D12" #reset |
| 250 | |
| 251 | #_ON |
| 252 | register "on_seq.ops_cnt" = "5" |
| 253 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 254 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 255 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 256 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 257 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 258 | |
| 259 | #_OFF |
| 260 | register "off_seq.ops_cnt" = "4" |
| 261 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 262 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 263 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 264 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 265 | |
| 266 | device i2c 36 on end |
| 267 | end |
| 268 | chip drivers/intel/mipi_camera |
| 269 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 270 | register "acpi_uid" = "3" |
| 271 | register "acpi_name" = ""VCM0"" |
| 272 | register "chip_name" = ""DW AF DAC"" |
| 273 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 274 | |
| 275 | register "pr0" = ""\\_SB.PCI0.I2C3.CAM1.PRIC"" |
| 276 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 277 | |
| 278 | device i2c 0c on end |
| 279 | end |
| 280 | chip drivers/intel/mipi_camera |
| 281 | register "acpi_uid" = "1" |
| 282 | register "acpi_name" = ""NVM0"" |
| 283 | register "chip_name" = ""GT24C08"" |
| 284 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 285 | |
Tao Xia | 74d14b8 | 2021-04-02 11:44:10 +0800 | [diff] [blame] | 286 | register "nvm_size" = "0x2000" |
chenzanxi | c4691ab | 2021-02-22 11:40:50 +0800 | [diff] [blame] | 287 | register "nvm_pagesize" = "1" |
| 288 | register "nvm_readonly" = "1" |
Tao Xia | 74d14b8 | 2021-04-02 11:44:10 +0800 | [diff] [blame] | 289 | register "nvm_width" = "0x10" |
chenzanxi | c4691ab | 2021-02-22 11:40:50 +0800 | [diff] [blame] | 290 | register "nvm_compat" = ""atmel,24c08"" |
| 291 | |
| 292 | device i2c 50 on end |
| 293 | end |
| 294 | end # I2C 3 |
chenzanxi | f8aa8dc | 2021-02-22 20:20:25 +0800 | [diff] [blame] | 295 | device pci 19.0 on |
| 296 | chip drivers/i2c/generic |
| 297 | register "hid" = ""10EC5682"" |
| 298 | register "name" = ""RT58"" |
| 299 | register "desc" = ""Realtek RT5682"" |
| 300 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 301 | register "property_count" = "1" |
| 302 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 303 | register "property_list[0].name" = ""realtek,jd-src"" |
| 304 | register "property_list[0].integer" = "1" |
Zhi Li | af207a5 | 2021-10-27 15:06:06 +0800 | [diff] [blame] | 305 | device i2c 1a on |
| 306 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED |
| 307 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682 |
| 308 | end |
| 309 | end |
| 310 | chip drivers/i2c/generic |
| 311 | register "hid" = ""RTL5682"" |
| 312 | register "name" = ""RT58"" |
| 313 | register "desc" = ""Realtek RT5682"" |
| 314 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 315 | register "property_count" = "1" |
| 316 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 317 | register "property_list[0].name" = ""realtek,jd-src"" |
| 318 | register "property_list[0].integer" = "1" |
| 319 | device i2c 1a on |
| 320 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS |
| 321 | end |
chenzanxi | f8aa8dc | 2021-02-22 20:20:25 +0800 | [diff] [blame] | 322 | end |
chenzanxi | f8aa8dc | 2021-02-22 20:20:25 +0800 | [diff] [blame] | 323 | end # I2C 4 |
lizhi7 | 40a1d0d | 2021-03-23 11:31:24 +0800 | [diff] [blame] | 324 | device pci 1f.3 on |
| 325 | chip drivers/generic/alc1015 |
| 326 | register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
| 327 | device generic 0 on end |
| 328 | end |
| 329 | end # Intel HDA |
chenzanxi | 46ee366 | 2021-02-23 10:35:50 +0800 | [diff] [blame] | 330 | device pci 19.1 on |
| 331 | chip drivers/i2c/sx9324 |
| 332 | register "desc" = ""SAR Proximity Sensor"" |
| 333 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E11_IRQ)" |
| 334 | register "uid" = "2" |
| 335 | register "reg_gnrl_ctrl0" = "0x0a" |
| 336 | register "reg_gnrl_ctrl1" = "0x22" |
| 337 | register "reg_afe_ctrl0" = "0x20" |
| 338 | register "reg_afe_ctrl3" = "0x00" |
| 339 | register "reg_afe_ctrl4" = "0x47" |
| 340 | register "reg_afe_ctrl6" = "0x00" |
| 341 | register "reg_afe_ctrl7" = "0x47" |
| 342 | register "reg_afe_ctrl8" = "0x12" |
| 343 | register "reg_afe_ctrl9" = "0x08" |
| 344 | register "reg_afe_ph0" = "0x37" |
| 345 | #register "reg_afe_ph1" = "0x10" |
| 346 | register "reg_afe_ph1" = "0x37" |
| 347 | register "reg_afe_ph2" = "0x1f" |
| 348 | register "reg_afe_ph3" = "0x3d" |
| 349 | register "reg_prox_ctrl0" = "0x0b" |
| 350 | register "reg_prox_ctrl1" = "0x0b" |
| 351 | register "reg_prox_ctrl2" = "0x20" |
| 352 | register "reg_prox_ctrl3" = "0x20" |
| 353 | register "reg_prox_ctrl4" = "0x0c" |
| 354 | register "reg_prox_ctrl5" = "0x00" |
| 355 | register "reg_prox_ctrl6" = "0x1c" |
| 356 | register "reg_prox_ctrl7" = "0xc0" |
| 357 | register "reg_adv_ctrl0" = "0x00" |
| 358 | register "reg_adv_ctrl1" = "0x00" |
| 359 | register "reg_adv_ctrl2" = "0x00" |
| 360 | register "reg_adv_ctrl3" = "0x00" |
| 361 | register "reg_adv_ctrl4" = "0x00" |
| 362 | register "reg_adv_ctrl5" = "0x05" |
| 363 | register "reg_adv_ctrl6" = "0x00" |
| 364 | register "reg_adv_ctrl7" = "0x00" |
| 365 | register "reg_adv_ctrl8" = "0x00" |
| 366 | register "reg_adv_ctrl9" = "0x00" |
| 367 | register "reg_adv_ctrl10" = "0x00" |
| 368 | register "reg_adv_ctrl11" = "0x00" |
| 369 | register "reg_adv_ctrl12" = "0x00" |
| 370 | register "reg_adv_ctrl13" = "0x00" |
| 371 | register "reg_adv_ctrl14" = "0x80" |
| 372 | register "reg_adv_ctrl15" = "0x0c" |
| 373 | register "reg_adv_ctrl16" = "0x04" |
| 374 | register "reg_adv_ctrl17" = "0x70" |
| 375 | register "reg_adv_ctrl18" = "0x20" |
| 376 | register "reg_adv_ctrl19" = "0x00" |
| 377 | register "reg_adv_ctrl20" = "0x00" |
| 378 | register "reg_irq_cfg0" = "0x00" |
| 379 | register "reg_irq_cfg1" = "0x80" |
| 380 | register "reg_irq_cfg2" = "0x01" |
| 381 | device i2c 28 on end |
| 382 | end |
| 383 | end # I2C 5 |
Tao Xia | 326ff22 | 2020-12-02 13:10:15 +0800 | [diff] [blame] | 384 | end |
| 385 | end |