blob: fb9070fd34bfbb16f151c2880756483638e07a4a [file] [log] [blame]
Sean Rhodes5da05b62022-01-10 21:58:04 +00001chip soc/intel/apollolake
Sean Rhodes5da05b62022-01-10 21:58:04 +00002
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 Rhodes5da05b62022-01-10 21:58:04 +000020 # 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 Rhodesfe97c772022-05-26 22:25:03 +010025 register "enhanced_cstates" = "1"
26
Sean Rhodes5da05b62022-01-10 21:58:04 +000027 register "pnp_settings" = "PNP_PERF_POWER"
28
29 register "ModPhyIfValue" = "0x12"
30
Sean Rhodesc7544622022-05-18 09:01:42 +010031 register "prt0_gpio" = "GPIO_PRT0_UDEF"
32
Sean Rhodes5da05b62022-01-10 21:58:04 +000033 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 Rhodescc88d982022-05-18 09:12:04 +010055 register "slp_s3_assertion_width_usecs" = "28000"
Sean Rhodes5da05b62022-01-10 21:58:04 +000056
57 device domain 0 on
Sean Rhodes6f138872022-07-27 15:32:57 +010058 device ref igd on end
59 device ref cnvi on
Sean Rhodes5da05b62022-01-10 21:58:04 +000060 chip drivers/wifi/generic
61 register "wake" = "GPE0A_CNVI_PME_STS"
62 device generic 0 on end
63 end
64 end
Sean Rhodesd8e35802022-09-07 15:16:22 +010065 device ref pmc on end
Sean Rhodes184ac202022-08-23 16:36:48 +010066 device ref p2sb on end
Sean Rhodes6f138872022-07-27 15:32:57 +010067 device ref fast_spi on end
Sean Rhodesd29b4ae2022-09-07 13:43:56 +010068 device ref sram on end
Sean Rhodes6f138872022-07-27 15:32:57 +010069 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 Scheithauer7e5b28f2023-05-31 14:36:22 +020074 register "sata_ports_enable[0]" = "1"
Sean Rhodes57779952022-05-19 15:35:31 +010075 end
Sean Rhodes6f138872022-07-27 15:32:57 +010076 device ref xhci on
Sean Rhodes5da05b62022-01-10 21:58:04 +000077 # Motherboard USB Type C
Sean Rhodesff16e412022-05-06 13:18:44 +010078 register "usb2_port[0]" = "PORT_EN(OC_SKIP)"
Sean Rhodes3ae95b22022-05-30 10:59:20 +010079 register "usb3_port[1]" = "PORT_EN(OC_SKIP)"
80
Sean Rhodes5da05b62022-01-10 21:58:04 +000081 # Motherboard USB 3.0
Sean Rhodesff16e412022-05-06 13:18:44 +010082 register "usb2_port[3]" = "PORT_EN(OC1)"
Sean Rhodes3ae95b22022-05-30 10:59:20 +010083 register "usb3_port[0]" = "PORT_EN(OC1)"
84
Sean Rhodes5da05b62022-01-10 21:58:04 +000085 # Daughterboard USB 3.0
Sean Rhodesff16e412022-05-06 13:18:44 +010086 register "usb2_port[5]" = "PORT_EN(OC_SKIP)"
Sean Rhodes3ae95b22022-05-30 10:59:20 +010087 register "usb3_port[4]" = "PORT_EN(OC_SKIP)"
88
Sean Rhodes5da05b62022-01-10 21:58:04 +000089 # Daughterboard SD Card
Sean Rhodesff16e412022-05-06 13:18:44 +010090 register "usb2_port[6]" = "PORT_EN(OC_SKIP)"
Sean Rhodesf304d5f2022-05-16 12:45:10 +010091 end
Sean Rhodes6f138872022-07-27 15:32:57 +010092 device ref i2c4 on end
93 device ref i2c7 on
Sean Rhodes5da05b62022-01-10 21:58:04 +000094 # Handled by touchpad.asl
95 end
Sean Rhodes6f138872022-07-27 15:32:57 +010096 device ref uart0 on end
97 device ref uart2 on end
98 device ref spi2 on end
99 device ref lpc_espi on
Sean Rhodese07ac222022-06-06 08:41:26 +0100100 register "gen1_dec" = "0x000c06a1"
101 register "gen2_dec" = "0x000c0081"
102
Sean Rhodes5da05b62022-01-10 21:58:04 +0000103 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 Rhodes5da05b62022-01-10 21:58:04 +0000127 end
128 chip drivers/crb
129 device mmio 0xfed40000 on end
130 end
131end