soc/intel/apollolake: Fix northbridge _crs scope

Move _CRS scope from MCHC device only to whole pci root bus. Otherwise
ACPI will not able to assign resource to devices other than MCHC.

Change-Id: Iaa294c63e03a4fc6644f1be5d69ab3de077e6cc3
Signed-off-by: Zhao, Lijian <lijian.zhao@intel.com>
Reviewed-on: https://review.coreboot.org/14477
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Zhao, Lijian 2016-04-22 11:19:44 -07:00 committed by Aaron Durbin
parent cbf1a0fec8
commit 2b9a5f5688

View File

@ -36,6 +36,7 @@ Device (MCHC)
Offset(0xBC), Offset(0xBC),
TLUD, 32, /* Top of Low Useable DRAM */ TLUD, 32, /* Top of Low Useable DRAM */
} }
}
Name (MCRS, ResourceTemplate() Name (MCRS, ResourceTemplate()
{ {
/* Bus Numbers */ /* Bus Numbers */
@ -93,9 +94,9 @@ Device (MCHC)
CreateDwordField (MCRS, ^PM01._LEN, PLEN) CreateDwordField (MCRS, ^PM01._LEN, PLEN)
/* Read C-Unit PCI CFG Reg. 0xBC for TOLUD (shadow from B-Unit) */ /* Read C-Unit PCI CFG Reg. 0xBC for TOLUD (shadow from B-Unit) */
And(^TLUD, 0xFFF00000, PMIN) And(^MCHC.TLUD, 0xFFF00000, PMIN)
/* Read MMCONF base */ /* Read MMCONF base */
And(^MCNF, 0xF0000000, PMAX) And(^MCHC.MCNF, 0xF0000000, PMAX)
/* Calculate PCI MMIO Length */ /* Calculate PCI MMIO Length */
Add(Subtract(PMAX, PMIN), 1, PLEN) Add(Subtract(PMAX, PMIN), 1, PLEN)
@ -106,10 +107,10 @@ Device (MCHC)
CreateDwordField(MCRS, ^STOM._LEN, GLEN) CreateDwordField(MCRS, ^STOM._LEN, GLEN)
/* Read BGSM */ /* Read BGSM */
And(^BGSM, 0xFFF00000, GMIN) And(^MCHC.BGSM, 0xFFF00000, GMIN)
/* Read TOLUD */ /* Read TOLUD */
And(^TLUD, 0xFFF00000, GMAX) And(^MCHC.TLUD, 0xFFF00000, GMAX)
Decrement(GMAX) Decrement(GMAX)
Add(Subtract(GMAX, GMIN), 1, GLEN) Add(Subtract(GMAX, GMIN), 1, GLEN)
@ -118,7 +119,7 @@ Device (MCHC)
CreateQwordField (MCRS, ^PM02._MAX, MMAX) CreateQwordField (MCRS, ^PM02._MAX, MMAX)
CreateQwordField (MCRS, ^PM02._LEN, MLEN) CreateQwordField (MCRS, ^PM02._LEN, MLEN)
Store (^TUUD, Local0) Store (^MCHC.TUUD, Local0)
If (LLessEqual (Local0, 0x1000000000)) If (LLessEqual (Local0, 0x1000000000))
{ {
@ -129,4 +130,4 @@ Device (MCHC)
Return (MCRS) Return (MCRS)
} }
}