mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / aopen / dxplplusu / acpi / e7505_sec.asl
blob2a206e08fec873846d835334f9e87db3eedf8d8b
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/ioapic.h>
5 Name (PBRS, ResourceTemplate ()
7         WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
8                 0x0000, 0x0000, 0x00FF, 0x0000, 0x0100, ,, )
10         /* System IO */
11         DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
12                 0x0, 0x0, 0xffff, 0x0000, 0x10000, ,,, TypeStatic)
13         IO (Decode16, 0x0CF8, 0x0CF8, 0x08, 0x08, )
15         /* Video RAM */
16         DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
17                 0x00000000, 0x000A0000, 0x000BFFFF,
18                 0x00000000, 0x00020000, ,,, AddressRangeMemory, TypeStatic)
20         /* Video ROM */
21         DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
22                 0x00000000, 0x000C0000, 0x000C7FFF,
23                 0x00000000, 0x00008000, ,,, AddressRangeMemory, TypeStatic)
25         /* Option ROMs ? */
26         DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
27                 0x00000000, 0x000C8000, 0x000DFFFF,
28                 0x00000000, 0x00018000, ,,, AddressRangeMemory, TypeStatic)
30         /* Top Of Lowmemory to IOAPIC */
31         DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
32                 0x00000000, 0x00000000, 0xFEBFFFFF,
33                 0x00000000, IO_APIC_ADDR, ,, _Y08, AddressRangeMemory, TypeStatic)
37 Method (_CRS, 0, NotSerialized)
40         /* Top Of Lowmemory to IOAPIC */
41         CreateDWordField (PBRS, \_SB.PCI0._Y08._MIN, MEML)
42         CreateDWordField (PBRS, \_SB.PCI0._Y08._MAX, MEMH)
43         CreateDWordField (PBRS, \_SB.PCI0._Y08._LEN, LENM)
44         Local1 = \_SB.PCI0.TOLM & 0xF800
45         Local1 >>= 4
46         MEML = Local1 << 0x14
47         MEMH = IO_APIC_ADDR - 1
48         LENM = IO_APIC_ADDR - MEML
50         Return (PBRS)
53 Method (_STA, 0, NotSerialized)
55         Return (0x0F)