ACPI: Move PICM declaration
Variable PICM was not inside GNVS region and can use a static initialisation value. For most AMD platforms PICM default changes from 1 to 0. Fix comments about PICM==0 used to indicate use of i8259 PIC for interrupt delivery. Change-Id: I525ef8353514ec32941c4d0c37cab38aa320cb20 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49905 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
f6f1215cdb
commit
aa969e887a
@ -11,5 +11,8 @@
|
||||
/* Operating system enumeration. */
|
||||
Name (OSYS, 0)
|
||||
|
||||
/* Zero => PIC mode, One => APIC Mode */
|
||||
Name (PICM, Zero)
|
||||
|
||||
/* Power state (AC = 1) */
|
||||
Name (PWRS, One)
|
||||
|
@ -12,4 +12,3 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -12,4 +12,3 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
@ -14,7 +14,6 @@
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -14,7 +14,6 @@
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -17,4 +17,3 @@
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -14,4 +14,3 @@
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -142,8 +142,6 @@ DefinitionBlock (
|
||||
* PCI IRQs
|
||||
****************************************************************/
|
||||
|
||||
/* Zero => PIC mode, One => APIC Mode */
|
||||
Name(\PICM, Zero)
|
||||
Method(\_PIC, 1, NotSerialized) {
|
||||
\PICM = Arg0
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -17,4 +17,3 @@ Name (HPBA, 0xFED00000)
|
||||
/* Global Data */
|
||||
Name (OSVR, 3) /* WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name (OSV, Ones) /* Assume nothing */
|
||||
Name (PICM, One) /* Assume APIC */
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -14,7 +14,6 @@
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -19,8 +19,6 @@ Field (POST, ByteAcc, Lock, Preserve)
|
||||
|
||||
Name(\APC1, Zero) // IIO IOAPIC
|
||||
|
||||
Name(\PICM, Zero) // IOAPIC/8259
|
||||
|
||||
Method(_PIC, 1)
|
||||
{
|
||||
Store(Arg0, PICM)
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -14,7 +14,6 @@
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -38,7 +38,6 @@ DefinitionBlock (
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/*
|
||||
* Processor Object
|
||||
|
@ -14,4 +14,3 @@
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
@ -13,7 +13,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
Scope(\_SB) {
|
||||
Method(OSFL, 0){
|
||||
|
@ -12,7 +12,6 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
|
||||
/* Some global data */
|
||||
Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
|
||||
Name(OSV, Ones) /* Assume nothing */
|
||||
Name(PICM, One) /* Assume APIC */
|
||||
|
||||
/* AcpiGpe0Blk */
|
||||
OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/* Global variables */
|
||||
Name (PICM, Zero) /* Interrupt Mode used by OS. Assume PIC. */
|
||||
|
||||
/*
|
||||
* NOTE: The layout of the GNVS structure below must match the layout in
|
||||
* soc/amd/picasso/include/soc/nvs.h !!!
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) /* IOAPIC/8259 */
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) /* IOAPIC/8259 */
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name (\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name (\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name (\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -45,7 +45,7 @@ Device (PCIB)
|
||||
// TODO: How many slots, where?
|
||||
|
||||
// PCI Interrupt Routing.
|
||||
// If PICM is set, interrupts are routed over the i8259, otherwise
|
||||
// If PICM is _not_ set, interrupts are routed over the i8259, otherwise
|
||||
// over the IOAPIC. (Really? If they're above 15 they need to be routed
|
||||
// fixed over the IOAPIC?)
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -45,7 +45,7 @@ Device (PCIB)
|
||||
// TODO: How many slots, where?
|
||||
|
||||
// PCI Interrupt Routing.
|
||||
// If PICM is set, interrupts are routed over the i8259, otherwise
|
||||
// If PICM is _not_ set, interrupts are routed over the i8259, otherwise
|
||||
// over the IOAPIC. (Really? If they're above 15 they need to be routed
|
||||
// fixed over the IOAPIC?)
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -45,7 +45,7 @@ Device (PCIB)
|
||||
// TODO: How many slots, where?
|
||||
|
||||
// PCI Interrupt Routing.
|
||||
// If PICM is set, interrupts are routed over the i8259, otherwise
|
||||
// If PICM is _not_ set, interrupts are routed over the i8259, otherwise
|
||||
// over the IOAPIC. (Really? If they're above 15 they need to be routed
|
||||
// fixed over the IOAPIC?)
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name(\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
Name (\PICM, 0) // IOAPIC/8259
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
|
Loading…
x
Reference in New Issue
Block a user