Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 1 | chip soc/intel/apollolake |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 2 | |
| 3 | # Graphics |
| 4 | # TODO: |
| 5 | # register "panel_cfg" = "{ |
| 6 | # .up_delay_ms = 0, // T3 |
| 7 | # .backlight_on_delay_ms = 0, // T7 |
| 8 | # .backlight_off_delay_ms = 0, // T9 |
| 9 | # .down_delay_ms = 0, // T10 |
| 10 | # .cycle_delay_ms = 500, // T12 |
| 11 | # .backlight_pwm_hz = 200, // PWM |
| 12 | # }" |
| 13 | |
| 14 | # PM Util (soc/intel/apollolake/pmutil.c) |
| 15 | # Enable the correct decode ranges on the LPC bus. |
| 16 | register "lpc_ioe" = "LPC_IOE_EC_4E_4F | |
| 17 | LPC_IOE_EC_62_66 | |
| 18 | LPC_IOE_KBC_60_64" |
| 19 | |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 20 | # Enable Audio Clock and Power gating |
| 21 | register "hdaudio_clk_gate_enable" = "1" |
| 22 | register "hdaudio_pwr_gate_enable" = "1" |
| 23 | register "hdaudio_bios_config_lockdown" = "1" |
| 24 | |
Sean Rhodes | fe97c77 | 2022-05-26 22:25:03 +0100 | [diff] [blame] | 25 | register "enhanced_cstates" = "1" |
| 26 | |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 27 | register "pnp_settings" = "PNP_PERF_POWER" |
| 28 | |
| 29 | register "ModPhyIfValue" = "0x12" |
| 30 | |
Sean Rhodes | c754462 | 2022-05-18 09:01:42 +0100 | [diff] [blame] | 31 | register "prt0_gpio" = "GPIO_PRT0_UDEF" |
| 32 | |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 33 | register "usb_config_override" = "1" |
| 34 | register "DisableComplianceMode" = "1" |
| 35 | |
| 36 | register "pcie_rp_clkreq_pin[0]" = "CLKREQ_DISABLED" |
| 37 | register "pcie_rp_clkreq_pin[1]" = "CLKREQ_DISABLED" |
| 38 | register "pcie_rp_clkreq_pin[2]" = "CLKREQ_DISABLED" |
| 39 | register "pcie_rp_clkreq_pin[3]" = "CLKREQ_DISABLED" |
| 40 | register "pcie_rp_clkreq_pin[4]" = "CLKREQ_DISABLED" |
| 41 | register "pcie_rp_clkreq_pin[5]" = "CLKREQ_DISABLED" |
| 42 | |
| 43 | register "pcie_rp_deemphasis_enable[0]" = "1" |
| 44 | register "pcie_rp_deemphasis_enable[1]" = "1" |
| 45 | register "pcie_rp_deemphasis_enable[2]" = "1" |
| 46 | register "pcie_rp_deemphasis_enable[3]" = "1" |
| 47 | register "pcie_rp_deemphasis_enable[4]" = "1" |
| 48 | register "pcie_rp_deemphasis_enable[5]" = "1" |
| 49 | |
| 50 | # GPE configuration |
| 51 | register "gpe0_dw1" = "PMC_GPE_NW_63_32" |
| 52 | register "gpe0_dw2" = "PMC_GPE_N_95_64" |
| 53 | register "gpe0_dw3" = "PMC_GPE_NW_31_0" |
| 54 | |
Sean Rhodes | cc88d98 | 2022-05-18 09:12:04 +0100 | [diff] [blame] | 55 | register "slp_s3_assertion_width_usecs" = "28000" |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 56 | |
| 57 | device domain 0 on |
Sean Rhodes | 6f13887 | 2022-07-27 15:32:57 +0100 | [diff] [blame] | 58 | device ref igd on end |
| 59 | device ref cnvi on |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 60 | chip drivers/wifi/generic |
| 61 | register "wake" = "GPE0A_CNVI_PME_STS" |
| 62 | device generic 0 on end |
| 63 | end |
| 64 | end |
Sean Rhodes | d8e3580 | 2022-09-07 15:16:22 +0100 | [diff] [blame] | 65 | device ref pmc on end |
Sean Rhodes | 184ac20 | 2022-08-23 16:36:48 +0100 | [diff] [blame] | 66 | device ref p2sb on end |
Sean Rhodes | 6f13887 | 2022-07-27 15:32:57 +0100 | [diff] [blame] | 67 | device ref fast_spi on end |
Sean Rhodes | d29b4ae | 2022-09-07 13:43:56 +0100 | [diff] [blame] | 68 | device ref sram on end |
Sean Rhodes | 6f13887 | 2022-07-27 15:32:57 +0100 | [diff] [blame] | 69 | device ref hda on end |
| 70 | device ref heci1 on end |
| 71 | device ref heci2 on end |
| 72 | device ref heci3 on end |
| 73 | device ref sata on |
Mario Scheithauer | 7e5b28f | 2023-05-31 14:36:22 +0200 | [diff] [blame^] | 74 | register "sata_ports_enable[0]" = "1" |
Sean Rhodes | 5777995 | 2022-05-19 15:35:31 +0100 | [diff] [blame] | 75 | end |
Sean Rhodes | 6f13887 | 2022-07-27 15:32:57 +0100 | [diff] [blame] | 76 | device ref xhci on |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 77 | # Motherboard USB Type C |
Sean Rhodes | ff16e41 | 2022-05-06 13:18:44 +0100 | [diff] [blame] | 78 | register "usb2_port[0]" = "PORT_EN(OC_SKIP)" |
Sean Rhodes | 3ae95b2 | 2022-05-30 10:59:20 +0100 | [diff] [blame] | 79 | register "usb3_port[1]" = "PORT_EN(OC_SKIP)" |
| 80 | |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 81 | # Motherboard USB 3.0 |
Sean Rhodes | ff16e41 | 2022-05-06 13:18:44 +0100 | [diff] [blame] | 82 | register "usb2_port[3]" = "PORT_EN(OC1)" |
Sean Rhodes | 3ae95b2 | 2022-05-30 10:59:20 +0100 | [diff] [blame] | 83 | register "usb3_port[0]" = "PORT_EN(OC1)" |
| 84 | |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 85 | # Daughterboard USB 3.0 |
Sean Rhodes | ff16e41 | 2022-05-06 13:18:44 +0100 | [diff] [blame] | 86 | register "usb2_port[5]" = "PORT_EN(OC_SKIP)" |
Sean Rhodes | 3ae95b2 | 2022-05-30 10:59:20 +0100 | [diff] [blame] | 87 | register "usb3_port[4]" = "PORT_EN(OC_SKIP)" |
| 88 | |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 89 | # Daughterboard SD Card |
Sean Rhodes | ff16e41 | 2022-05-06 13:18:44 +0100 | [diff] [blame] | 90 | register "usb2_port[6]" = "PORT_EN(OC_SKIP)" |
Sean Rhodes | f304d5f | 2022-05-16 12:45:10 +0100 | [diff] [blame] | 91 | end |
Sean Rhodes | 6f13887 | 2022-07-27 15:32:57 +0100 | [diff] [blame] | 92 | device ref i2c4 on end |
| 93 | device ref i2c7 on |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 94 | # Handled by touchpad.asl |
| 95 | end |
Sean Rhodes | 6f13887 | 2022-07-27 15:32:57 +0100 | [diff] [blame] | 96 | device ref uart0 on end |
| 97 | device ref uart2 on end |
| 98 | device ref spi2 on end |
| 99 | device ref lpc_espi on |
Sean Rhodes | e07ac22 | 2022-06-06 08:41:26 +0100 | [diff] [blame] | 100 | register "gen1_dec" = "0x000c06a1" |
| 101 | register "gen2_dec" = "0x000c0081" |
| 102 | |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 103 | chip ec/starlabs/merlin |
| 104 | # Port pair 4Eh/4Fh |
| 105 | device pnp 4e.00 on end # IO Interface |
| 106 | device pnp 4e.01 off end # Com 1 |
| 107 | device pnp 4e.02 off end # Com 2 |
| 108 | device pnp 4e.04 off end # System Wake-Up |
| 109 | device pnp 4e.05 off end # PS/2 Mouse |
| 110 | device pnp 4e.06 on # PS/2 Keyboard |
| 111 | io 0x60 = 0x0060 |
| 112 | io 0x62 = 0x0064 |
| 113 | irq 0x70 = 1 |
| 114 | end |
| 115 | device pnp 4e.0a off end # Consumer IR |
| 116 | device pnp 4e.0f off end # Shared Memory/Flash Interface |
| 117 | device pnp 4e.10 off end # RTC-like Timer |
| 118 | device pnp 4e.11 off end # Power Management Channel 1 |
| 119 | device pnp 4e.12 off end # Power Management Channel 2 |
| 120 | device pnp 4e.13 off end # Serial Peripheral Interface |
| 121 | device pnp 4e.14 off end # Platform EC Interface |
| 122 | device pnp 4e.17 off end # Power Management Channel 3 |
| 123 | device pnp 4e.18 off end # Power Management Channel 4 |
| 124 | device pnp 4e.19 off end # Power Management Channel 5 |
| 125 | end |
| 126 | end |
Sean Rhodes | 5da05b6 | 2022-01-10 21:58:04 +0000 | [diff] [blame] | 127 | end |
| 128 | chip drivers/crb |
| 129 | device mmio 0xfed40000 on end |
| 130 | end |
| 131 | end |