Skip to content

Commit 1049fd6

Browse files
miczyg1SergiiDmytruk
authored andcommitted
mb/protectli/vault_ehl: Program ITE EC to respect SB power option
Change-Id: I7d5aa58cb7db41b558d9dc9d38d737053d1fe8aa Upstream-Status: Pending Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
1 parent ec3c3ba commit 1049fd6

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/mainboard/protectli/vault_ehl/devicetree.cb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,24 @@ chip soc/intel/elkhartlake
183183
device pci 1e.7 off end # IOAPIC
184184

185185
device pci 1f.0 on # eSPI interface
186+
# LPC generic I/O ranges
187+
register "gen1_dec" = "0x00fc0201"
188+
register "gen2_dec" = "0x003c0a01"
189+
register "gen3_dec" = "0x000c0081"
190+
186191
chip superio/ite/it8613e
187192
device pnp 2e.1 on # COM 1
188193
io 0x60 = 0x3f8
189194
irq 0x70 = 4
190195
irq 0xf0 = 1
191196
end
192-
device pnp 2e.4 off end # Environment Controller
197+
device pnp 2e.4 on # Environment Controller
198+
io 0x60 = 0xa20
199+
io 0x62 = 0xa10
200+
irq 0x70 = 0 # Don't use IRQ
201+
irq 0xf0 = 0x80 # Clear 3VSB off status
202+
irq 0xf4 = 0x60 # Use SB to control AC power loss
203+
end
193204
device pnp 2e.5 off end # Keyboard
194205
device pnp 2e.6 off end # Mouse
195206
device pnp 2e.7 off end # GPIO

0 commit comments

Comments
 (0)