intel/soc/baytrail: Move MCRS ResourceTemplate out of _CRS method

Fixes these remarks:
Object is not referenced (Name is within method [_CRS])

The ACPI compiler is trying to be helpful in letting us know
that we're not using various fields in the MCRS ResourceTemplate
when we define it inside of the _CRS method.  Since we're not
intending to use those objects in the method, it shouldn't be an
issue, but the warning is annoying and can mask real issues.
Moving the creation of the MCRS object to outside of the CRS
method and referencing it from there solves this problem.

Change-Id: I54ab3ad9ed148fdd24e8615d83bc8ae668d1dbff
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/12514
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Martin Roth 2015-11-23 10:38:10 -07:00
parent 69759401db
commit 6149233cce
1 changed files with 117 additions and 116 deletions

View File

@ -50,8 +50,6 @@ Name(_CID,EISAID("PNP0A03")) // PCI
Name(_ADR, 0) Name(_ADR, 0)
Name(_BBN, 0) Name(_BBN, 0)
Method (_CRS, 0, Serialized)
{
Name (MCRS, ResourceTemplate() Name (MCRS, ResourceTemplate()
{ {
// Bus Numbers // Bus Numbers
@ -166,10 +164,13 @@ Method (_CRS, 0, Serialized)
0x00005000,,, TPMR) 0x00005000,,, TPMR)
}) })
Method (_CRS, 0, Serialized)
{
// Update PCI resource area // Update PCI resource area
CreateDwordField(MCRS, PMEM._MIN, PMIN) CreateDwordField(MCRS, ^PMEM._MIN, PMIN)
CreateDwordField(MCRS, PMEM._MAX, PMAX) CreateDwordField(MCRS, ^PMEM._MAX, PMAX)
CreateDwordField(MCRS, PMEM._LEN, PLEN) CreateDwordField(MCRS, ^PMEM._LEN, PLEN)
// TOLM is BMBOUND accessible from IOSF so is saved in NVS // TOLM is BMBOUND accessible from IOSF so is saved in NVS
Store (\TOLM, PMIN) Store (\TOLM, PMIN)