soc/intel/apollolake/acpi: Remove STOM from ACPI

This should only contain resources that the PCI domain uses. Stolen
memory prevents the PCI domain from allocating anything where it is.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I1562396f0b747a81bbc584314956809bd3865ff9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66267
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Sean Rhodes 2022-07-29 14:21:28 +01:00
parent a17864c2c9
commit 823a329bb8
1 changed files with 0 additions and 22 deletions

View File

@ -17,9 +17,6 @@ Device (MCHC)
, 25, , 25,
PXBR, 11, /* PCI Express Base Address */ PXBR, 11, /* PCI Express Base Address */
Offset(0xB4),
BGSM, 32, /* Base of Graphics Stolen Memory */
Offset (0xbc), /* TOLUD (0:0:0:bc) */ Offset (0xbc), /* TOLUD (0:0:0:bc) */
, 20, , 20,
TLUD, 12, /* Top of Lower Usable DRAM */ TLUD, 12, /* Top of Lower Usable DRAM */
@ -59,12 +56,6 @@ Method (_CRS, 0, Serialized)
0x00000000, 0x000a0000, 0x000bffff, 0x00000000, 0x00000000, 0x000a0000, 0x000bffff, 0x00000000,
0x00020000,,,) 0x00020000,,,)
/* Data and GFX stolen memory */
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed,
Cacheable, ReadWrite,
0x00000000, 0x3be00000, 0x3fffffff, 0x00000000,
0x04200000,,, STOM)
/* /*
* PCI MMIO Region (TOLUD - PCI extended base MMCONF) * PCI MMIO Region (TOLUD - PCI extended base MMCONF)
* This assumes that MMCONF is placed after PCI config space, * This assumes that MMCONF is placed after PCI config space,
@ -99,19 +90,6 @@ Method (_CRS, 0, Serialized)
/* Calculate PCI MMIO Length */ /* Calculate PCI MMIO Length */
PLEN = PMAX - PMIN + 1 PLEN = PMAX - PMIN + 1
/* Find GFX resource area in GCRS */
CreateDwordField(MCRS, STOM._MIN, GMIN)
CreateDwordField(MCRS, STOM._MAX, GMAX)
CreateDwordField(MCRS, STOM._LEN, GLEN)
/* Read BGSM */
GMIN = \_SB.PCI0.MCHC.BGSM & 0xFFF00000
/* Read TOLUD */
GMAX = ^MCHC.TLUD << 20
GMAX--
GLEN = GMAX - GMIN + 1
/* Patch PM02 range based on Memory Size */ /* Patch PM02 range based on Memory Size */
If (A4GS == 0) { If (A4GS == 0) {
CreateQwordField (MCRS, PM02._LEN, MSEN) CreateQwordField (MCRS, PM02._LEN, MSEN)