Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 1 | chip soc/intel/apollolake |
| 2 | device cpu_cluster 0 on |
| 3 | device lapic 0 on end |
| 4 | end |
| 5 | |
| 6 | # Graphics |
| 7 | # TODO: |
| 8 | # register "panel_cfg" = "{ |
| 9 | # .up_delay_ms = 0, // T3 |
| 10 | # .backlight_on_delay_ms = 0, // T7 |
| 11 | # .backlight_off_delay_ms = 0, // T9 |
| 12 | # .down_delay_ms = 0, // T10 |
| 13 | # .cycle_delay_ms = 500, // T12 |
| 14 | # .backlight_pwm_hz = 200, // PWM |
| 15 | # }" |
| 16 | |
| 17 | # PM Util (soc/intel/apollolake/pmutil.c) |
| 18 | # Enable the correct decode ranges on the LPC bus. |
| 19 | register "lpc_ioe" = "LPC_IOE_EC_4E_4F | |
| 20 | LPC_IOE_EC_62_66 | |
| 21 | LPC_IOE_KBC_60_64" |
| 22 | |
| 23 | # Enable Audio Clock and Power gating |
| 24 | register "hdaudio_clk_gate_enable" = "1" |
| 25 | register "hdaudio_pwr_gate_enable" = "1" |
| 26 | register "hdaudio_bios_config_lockdown" = "1" |
| 27 | |
Sean Rhodes | fe97c77 | 2022-05-26 22:25:03 +0100 | [diff] [blame] | 28 | register "enhanced_cstates" = "1" |
| 29 | |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 30 | register "pnp_settings" = "PNP_PERF_POWER" |
| 31 | |
| 32 | register "ModPhyIfValue" = "0x12" |
| 33 | |
Sean Rhodes | c754462 | 2022-05-18 09:01:42 +0100 | [diff] [blame] | 34 | register "prt0_gpio" = "GPIO_PRT0_UDEF" |
| 35 | |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 36 | register "usb_config_override" = "1" |
| 37 | register "DisableComplianceMode" = "1" |
| 38 | |
| 39 | register "pcie_rp_clkreq_pin[0]" = "CLKREQ_DISABLED" |
| 40 | register "pcie_rp_clkreq_pin[1]" = "CLKREQ_DISABLED" |
| 41 | register "pcie_rp_clkreq_pin[2]" = "CLKREQ_DISABLED" |
| 42 | register "pcie_rp_clkreq_pin[3]" = "CLKREQ_DISABLED" |
| 43 | register "pcie_rp_clkreq_pin[4]" = "CLKREQ_DISABLED" |
| 44 | register "pcie_rp_clkreq_pin[5]" = "CLKREQ_DISABLED" |
| 45 | |
| 46 | register "pcie_rp_deemphasis_enable[0]" = "1" |
| 47 | register "pcie_rp_deemphasis_enable[1]" = "1" |
| 48 | register "pcie_rp_deemphasis_enable[2]" = "1" |
| 49 | register "pcie_rp_deemphasis_enable[3]" = "1" |
| 50 | register "pcie_rp_deemphasis_enable[4]" = "1" |
| 51 | register "pcie_rp_deemphasis_enable[5]" = "1" |
| 52 | |
| 53 | # GPE configuration |
| 54 | register "gpe0_dw1" = "PMC_GPE_NW_63_32" |
| 55 | register "gpe0_dw2" = "PMC_GPE_N_95_64" |
| 56 | register "gpe0_dw3" = "PMC_GPE_NW_31_0" |
| 57 | |
Sean Rhodes | cc88d98 | 2022-05-18 09:12:04 +0100 | [diff] [blame] | 58 | register "slp_s3_assertion_width_usecs" = "28000" |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 59 | |
| 60 | device domain 0 on |
| 61 | device pci 00.0 on end # Host Bridge |
Sean Rhodes | 0ef8ad2 | 2022-05-18 09:15:14 +0100 | [diff] [blame] | 62 | device pci 00.1 off end # DPTF |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 63 | device pci 00.2 off end # NPK |
| 64 | device pci 02.0 on end # Gen |
| 65 | device pci 03.0 off end # Iunit |
| 66 | device pci 0c.0 on # CNVi |
| 67 | chip drivers/wifi/generic |
| 68 | register "wake" = "GPE0A_CNVI_PME_STS" |
| 69 | device generic 0 on end |
| 70 | end |
| 71 | end |
| 72 | device pci 0d.0 off end # P2SB |
Sean Rhodes | 2bbb6f3 | 2022-05-18 09:20:07 +0100 | [diff] [blame] | 73 | device pci 0d.1 off end # PMC |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 74 | device pci 0d.2 on end # SPI |
| 75 | device pci 0d.3 off end # Shared SRAM |
Sean Rhodes | b2f8d0c | 2022-05-18 09:13:42 +0100 | [diff] [blame] | 76 | device pci 0e.0 on end # Audio |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 77 | device pci 0f.0 on end # Heci1 |
| 78 | device pci 0f.1 on end # Heci2 |
| 79 | device pci 0f.2 on end # Heci3 |
| 80 | device pci 11.0 off end # ISH |
| 81 | device pci 12.0 on end # SATA |
| 82 | device pci 13.0 off end # PCIe-A 0 Slot 1 |
| 83 | device pci 13.1 off end # PCIe-A 1 |
| 84 | device pci 13.2 off end # PCIe-A 2 Onboard Lan |
| 85 | device pci 13.3 off end # PCIe-A 3 |
| 86 | device pci 14.0 off end # PCIe-B 0 Slot2 |
| 87 | device pci 14.1 off end # PCIe-B 1 Onboard M2 Slot(Wifi/BT) |
| 88 | device pci 15.0 on # XHCI |
| 89 | ### USB 2.0 Devices |
| 90 | # Motherboard USB Type C |
Sean Rhodes | 8d991a8 | 2022-05-11 07:52:43 +0100 | [diff] [blame] | 91 | register "usb2_port[0]" = "PORT_EN(OC1)" |
Sean Rhodes | 8a4f076 | 2022-05-30 10:57:11 +0100 | [diff] [blame^] | 92 | register "usb3_port[1]" = "PORT_EN(OC1)" |
| 93 | |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 94 | # Motherboard USB 3.0 |
Sean Rhodes | 8d991a8 | 2022-05-11 07:52:43 +0100 | [diff] [blame] | 95 | register "usb2_port[1]" = "PORT_EN(OC0)" |
Sean Rhodes | 8a4f076 | 2022-05-30 10:57:11 +0100 | [diff] [blame^] | 96 | register "usb3_port[0]" = "PORT_EN(OC0)" |
| 97 | |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 98 | # Daughterboard USB 3.0 |
Sean Rhodes | 8d991a8 | 2022-05-11 07:52:43 +0100 | [diff] [blame] | 99 | register "usb2_port[3]" = "PORT_EN(OC1)" |
Sean Rhodes | 8a4f076 | 2022-05-30 10:57:11 +0100 | [diff] [blame^] | 100 | |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 101 | # Daughterboard SD Card |
| 102 | register "usb2_port[5]" = "PORT_EN(OC_SKIP)" |
Sean Rhodes | 8a4f076 | 2022-05-30 10:57:11 +0100 | [diff] [blame^] | 103 | register "usb3_port[3]" = "PORT_EN(OC1)" |
| 104 | |
Sean Rhodes | 0225af3 | 2022-05-20 10:30:30 +0100 | [diff] [blame] | 105 | # Bluetooth |
| 106 | register "usb2_port[6]" = "PORT_EN(OC_SKIP)" |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 107 | end |
| 108 | device pci 15.1 off end # XDCI |
| 109 | device pci 16.0 off end # I2C0 |
| 110 | device pci 16.1 off end # I2C1 |
| 111 | device pci 16.2 off end # I2C2 |
| 112 | device pci 16.3 off end # I2C3 |
| 113 | device pci 17.0 on end # I2C4 |
| 114 | device pci 17.1 off end # I2C5 |
| 115 | device pci 17.2 off end # I2C6 |
| 116 | device pci 17.3 on # I2C7 |
| 117 | # Handled by touchpad.asl |
| 118 | end |
| 119 | device pci 18.0 on end # UART #0 |
| 120 | device pci 18.1 off end # UART #1 |
| 121 | device pci 18.2 on end # UART #2 |
| 122 | device pci 18.3 off end # UART #3 |
| 123 | device pci 19.0 off end # SPI #0 |
| 124 | device pci 19.1 off end # SPI #1 |
| 125 | device pci 19.2 on end # SPI #2 |
| 126 | device pci 1a.0 off end # PWM |
| 127 | device pci 1b.0 off end # SDCard |
| 128 | device pci 1c.0 off end # eMMC |
| 129 | device pci 1e.0 off end # SDIO |
| 130 | device pci 1f.0 on # LPC Interface |
Sean Rhodes | b7c1a3a | 2022-06-06 08:38:49 +0100 | [diff] [blame] | 131 | register "gen1_dec" = "0x000c06a1" |
| 132 | register "gen2_dec" = "0x000c0081" |
| 133 | |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 134 | chip ec/starlabs/merlin |
| 135 | # Port pair 4Eh/4Fh |
| 136 | device pnp 4e.00 on end # IO Interface |
| 137 | device pnp 4e.04 off end # System Wake-Up |
| 138 | device pnp 4e.05 off end # Mouse |
| 139 | device pnp 4e.06 on # Keyboard |
| 140 | io 0x60 = 0x0060 |
| 141 | io 0x62 = 0x0064 |
| 142 | irq 0x70 = 1 |
| 143 | end |
| 144 | device pnp 4e.0f off end # Shared Memory/Flash Interface |
| 145 | device pnp 4e.11 off end # Power Management Channel 1 |
| 146 | device pnp 4e.12 off end # Power Management Channel 2 |
| 147 | device pnp 4e.17 off end # Power Management Channel 3 |
| 148 | device pnp 4e.1d off end # Extended Shared Memory (ESHM) |
| 149 | device pnp 4e.1e off end # Power Management Channel 4 |
| 150 | end |
| 151 | end |
| 152 | device pci 1f.1 off end # SMBus |
| 153 | end |
| 154 | chip drivers/crb |
| 155 | device mmio 0xfed40000 on end |
| 156 | end |
| 157 | end |