David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
| 3 | # Mapping of USB port # to device |
| 4 | #+----------------+-------+-----------------------------------+ |
| 5 | #| Device | Port# | Rev | |
| 6 | #+----------------+-------+-----------------------------------+ |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 7 | #| USB A Side | 3 | 2/3 | |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 8 | #| SD Card | 4 | | |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 9 | #| Camera | 8 | | |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 10 | #| Touchsreen | 10 | | |
| 11 | #+----------------+-------+-----------------------------------+ |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 12 | register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Side |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 13 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Card reader |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 14 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Camera |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 15 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Touchscreen |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 16 | |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 17 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Side |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 18 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Card reader |
| 19 | |
David Wu | 5478865 | 2018-11-16 15:35:50 +0800 | [diff] [blame] | 20 | register "psys_pmax" = "151" |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 21 | |
| 22 | device domain 0 on |
| 23 | device pci 14.0 on |
| 24 | chip drivers/usb/acpi |
| 25 | device usb 0.0 on |
| 26 | chip drivers/usb/acpi |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 27 | register "desc" = ""USB2 Type-A Side"" |
| 28 | register "type" = "UPC_TYPE_A" |
| 29 | device usb 2.2 on end |
| 30 | end |
| 31 | chip drivers/usb/acpi |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 32 | register "desc" = ""USB2 SD Card"" |
| 33 | register "type" = "UPC_TYPE_INTERNAL" |
| 34 | device usb 2.3 on end |
| 35 | end |
| 36 | chip drivers/usb/acpi |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 37 | register "desc" = ""USB2 Camera"" |
| 38 | register "type" = "UPC_TYPE_INTERNAL" |
| 39 | device usb 2.7 on end |
| 40 | end |
| 41 | chip drivers/usb/acpi |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 42 | register "desc" = ""USB2 Touchscreen"" |
| 43 | register "type" = "UPC_TYPE_INTERNAL" |
| 44 | device usb 2.9 on end |
| 45 | end |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 46 | chip drivers/usb/acpi |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 47 | register "desc" = ""USB3 Type-A Side"" |
| 48 | register "type" = "UPC_TYPE_USB3_A" |
| 49 | device usb 3.2 on end |
| 50 | end |
| 51 | chip drivers/usb/acpi |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 52 | register "desc" = ""USB3 SD Card"" |
| 53 | register "type" = "UPC_TYPE_INTERNAL" |
| 54 | device usb 3.3 on end |
| 55 | end |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 56 | end |
| 57 | end |
| 58 | end # USB xHCI |
| 59 | device pci 19.1 on |
| 60 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame^] | 61 | register "hid" = ""MX98357A"" |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 62 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A23)" |
| 63 | register "sdmode_delay" = "5" |
| 64 | device generic 0 on end |
| 65 | end |
| 66 | chip drivers/i2c/da7219 |
| 67 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)" |
| 68 | register "btn_cfg" = "50" |
| 69 | register "mic_det_thr" = "500" |
| 70 | register "jack_ins_deb" = "20" |
| 71 | register "jack_det_rate" = ""32ms_64ms"" |
| 72 | register "jack_rem_deb" = "1" |
| 73 | register "a_d_btn_thr" = "0xa" |
| 74 | register "d_b_btn_thr" = "0x16" |
| 75 | register "b_c_btn_thr" = "0x21" |
| 76 | register "c_mic_btn_thr" = "0x3e" |
| 77 | register "btn_avg" = "4" |
| 78 | register "adc_1bit_rpt" = "1" |
| 79 | register "micbias_lvl" = "2600" |
| 80 | register "mic_amp_in_sel" = ""diff"" |
| 81 | device i2c 1a on end |
| 82 | end |
| 83 | end # I2C #5 |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 84 | device pci 1e.6 off end # SDCard |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 85 | end |
| 86 | end |