acpi/gnvs.c: Drop unused pointer to the cbmem console
Change-Id: I7e2018dbccead15fcd84e34df8207120d3a0c57c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64303 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
This commit is contained in:
parent
a52b93b262
commit
cde4f3b279
|
@ -31,8 +31,6 @@ static void acpi_create_gnvs(void *unused)
|
|||
if (dnvs_size)
|
||||
dnvs = (char *)gnvs + gnvs_size;
|
||||
|
||||
if (CONFIG(CONSOLE_CBMEM))
|
||||
gnvs->cbmc = (uintptr_t)cbmem_find(CBMEM_ID_CONSOLE);
|
||||
}
|
||||
|
||||
BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_EXIT, acpi_create_gnvs, NULL);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
CBMC, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
PM1I, 64, // 0x04 - 0x0b - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x0c - 0x13 - GPE Wake Source
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
struct __packed global_nvs {
|
||||
/* Miscellaneous */
|
||||
uint32_t cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint32_t unused_was_cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint64_t pm1i; /* 0x04 - 0x0b - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x0c - 0x13 - GPE Wake Source */
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
CBMC, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
PM1I, 64, // 0x04 - 0x0b - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x0c - 0x13 - GPE Wake Source
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
struct __packed global_nvs {
|
||||
/* Miscellaneous */
|
||||
uint32_t cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint32_t unused_was_cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint64_t pm1i; /* 0x04 - 0x0b - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x0c - 0x13 - GPE Wake Source */
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
CBMC, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
PM1I, 64, // 0x04 - 0x0b - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x0c - 0x13 - GPE Wake Source
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
struct __packed global_nvs {
|
||||
/* Miscellaneous */
|
||||
uint32_t cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint32_t unused_was_cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint64_t pm1i; /* 0x04 - 0x0b - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x0c - 0x13 - GPE Wake Source */
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
CBMC, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
PM1I, 64, // 0x04 - 0x0b - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x0c - 0x13 - GPE Wake Source
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
struct __packed global_nvs {
|
||||
/* Miscellaneous */
|
||||
uint32_t cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint32_t unused_was_cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint64_t pm1i; /* 0x04 - 0x0b - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x0c - 0x13 - GPE Wake Source */
|
||||
};
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
CBMC, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
PM1I, 64, // 0x04 - 0x0b - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x0c - 0x13 - GPE Wake Source
|
||||
TMPS, 8, // 0x14 - Temperature Sensor ID
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
struct __packed global_nvs {
|
||||
/* Miscellaneous */
|
||||
uint32_t cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint32_t unused_was_cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint64_t pm1i; /* 0x04 - 0x0b - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x0c - 0x13 - GPE Wake Source */
|
||||
uint8_t tmps; /* 0x14 - Temperature Sensor ID */
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
CBMC, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
, 32, // 0x00 - 0x03 - coreboot Memory Console
|
||||
PM1I, 64, // 0x04 - 0x0b - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x0c - 0x13 - GPE Wake Source
|
||||
TMPS, 8, // 0x14 - Temperature Sensor ID
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
struct __packed global_nvs {
|
||||
/* Miscellaneous */
|
||||
uint32_t cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint32_t unused_was_cbmc; /* 0x00 - 0x03 - coreboot Memory Console */
|
||||
uint64_t pm1i; /* 0x04 - 0x0b - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x0c - 0x13 - GPE Wake Source */
|
||||
uint8_t tmps; /* 0x14 - Temperature Sensor ID */
|
||||
|
|
|
@ -14,7 +14,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
LIDS, 8, // 0x02 - LID State
|
||||
, 8, // 0x03 - AC Power State
|
||||
DPTE, 8, // 0x04 - Enable DPTF
|
||||
CBMC, 32, // 0x05 - 0x08 - coreboot Memory Console
|
||||
, 32, // 0x05 - 0x08 - coreboot Memory Console
|
||||
PM1I, 64, // 0x09 - 0x10 - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x11 - 0x18 - GPE Wake Source
|
||||
NHLA, 64, // 0x19 - 0x20 - NHLT Address
|
||||
|
|
|
@ -18,7 +18,7 @@ struct __packed global_nvs {
|
|||
uint8_t lids; /* 0x02 - LID State */
|
||||
uint8_t unused_was_pwrs; /* 0x03 - AC Power State */
|
||||
uint8_t dpte; /* 0x04 - Enable DPTF */
|
||||
uint32_t cbmc; /* 0x05 - 0x08 - coreboot Memory Console */
|
||||
uint32_t unused_was_cbmc; /* 0x05 - 0x08 - coreboot Memory Console */
|
||||
uint64_t pm1i; /* 0x09 - 0x10 - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x11 - 0x18 - GPE Wake Source */
|
||||
uint64_t nhla; /* 0x19 - 0x20 - NHLT Address */
|
||||
|
|
|
@ -40,5 +40,5 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
Offset (0x30),
|
||||
, 32, /* 0x30 - CBMEM TOC */
|
||||
, 32, /* 0x34 - Top of Low Memory */
|
||||
CBMC, 32, /* 0x38 - coreboot mem console pointer */
|
||||
, 32, /* 0x38 - coreboot mem console pointer */
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ struct __packed global_nvs {
|
|||
/* Base Addresses */
|
||||
u32 obsolete_cmem; /* 0x30 - CBMEM TOC */
|
||||
u32 tolm; /* 0x34 - Top of Low Memory */
|
||||
u32 cbmc; /* 0x38 - coreboot memconsole */
|
||||
u32 unused_was_cbmc; /* 0x38 - coreboot memconsole */
|
||||
};
|
||||
|
||||
#endif /* _BAYTRAIL_NVS_H_ */
|
||||
|
|
|
@ -41,5 +41,5 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
Offset (0x30),
|
||||
, 32, /* 0x30 - CBMEM TOC */
|
||||
, 32, /* 0x34 - Top of Low Memory */
|
||||
CBMC, 32, /* 0x38 - coreboot mem console pointer */
|
||||
, 32, /* 0x38 - coreboot mem console pointer */
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ struct __packed global_nvs {
|
|||
/* Base Addresses */
|
||||
u32 obsolete_cmem; /* 0x30 - CBMEM TOC */
|
||||
u32 tolm; /* 0x34 - Top of Low Memory */
|
||||
u32 cbmc; /* 0x38 - coreboot memconsole */
|
||||
u32 unused_was_cbmc; /* 0x38 - coreboot memconsole */
|
||||
};
|
||||
|
||||
#endif /* _SOC_NVS_H_ */
|
||||
|
|
|
@ -31,7 +31,7 @@ struct __packed global_nvs {
|
|||
u8 lids; /* 0x16 - LID State */
|
||||
u8 unused_was_pwrs; /* 0x17 - AC Power State */
|
||||
u32 obsolete_cmem; /* 0x18 - 0x1b - CBMEM TOC */
|
||||
u32 cbmc; /* 0x1c - 0x1f - coreboot Memory Console */
|
||||
u32 unused_was_cbmc; /* 0x1c - 0x1f - coreboot Memory Console */
|
||||
u64 pm1i; /* 0x20 - 0x27 - PM1 wake status bit */
|
||||
u64 gpei; /* 0x28 - 0x2f - GPE wake status bit */
|
||||
};
|
||||
|
|
|
@ -29,7 +29,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
LIDS, 8, // 0x16 - LID State
|
||||
, 8, // 0x17 - AC Power State
|
||||
, 32, // 0x18 - 0x1b - CBMEM TOC
|
||||
CBMC, 32, // 0x1c - 0x1f - coreboot Memory Console
|
||||
, 32, // 0x1c - 0x1f - coreboot Memory Console
|
||||
PM1I, 64, // 0x20 - 0x27 - PM1 wake status bit
|
||||
GPEI, 64, // 0x28 - 0x2f - GPE wake status bit
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
TLVL, 8, // 0x05 - Throttle Level Limit
|
||||
LIDS, 8, // 0x06 - LID State
|
||||
, 8, // 0x07 - AC Power State
|
||||
CBMC, 32, // 0x08 - 0x0b AC Power State
|
||||
, 32, // 0x08 - 0x0b AC Power State
|
||||
PM1I, 64, // 0x0c - 0x13 PM1 wake status bit
|
||||
GPEI, 64, // 0x14 - 0x17 GPE wake status bit
|
||||
DPTE, 8, // 0x1c - Enable DPTF
|
||||
|
|
|
@ -14,7 +14,7 @@ struct __packed global_nvs {
|
|||
u8 tlvl; /* 0x05 - Throttle Level Limit */
|
||||
u8 lids; /* 0x06 - LID State */
|
||||
u8 unused_was_pwrs; /* 0x07 - AC Power State */
|
||||
u32 cbmc; /* 0x08 - 0xb coreboot Memory Console */
|
||||
u32 unused_was_cbmc; /* 0x08 - 0xb coreboot Memory Console */
|
||||
u64 pm1i; /* 0x0c - 0x13 PM1 wake status bit */
|
||||
u64 gpei; /* 0x14 - 0x1b GPE wake status bit */
|
||||
u8 dpte; /* 0x1c - Enable DPTF */
|
||||
|
|
|
@ -38,7 +38,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
Offset (0x30),
|
||||
, 32, // 0x30 - CBMEM TOC
|
||||
TOLM, 32, // 0x34 - Top of Low Memory
|
||||
CBMC, 32, // 0x38 - coreboot mem console pointer
|
||||
, 32, // 0x38 - coreboot mem console pointer
|
||||
MMOB, 32, // 0x3c - MMIO Base Low Base
|
||||
MMOL, 32, // 0x40 - MMIO Base Low Limit
|
||||
MMHB, 64, // 0x44 - MMIO Base High Base
|
||||
|
|
|
@ -38,7 +38,7 @@ struct __packed global_nvs {
|
|||
/* Base Addresses */
|
||||
u32 obsolete_cmem; /* 0x30 - CBMEM TOC */
|
||||
u32 tolm; /* 0x34 - Top of Low Memory */
|
||||
u32 cbmc; /* 0x38 - coreboot memconsole */
|
||||
u32 unused_was_cbmc; /* 0x38 - coreboot memconsole */
|
||||
u32 mmiob; /* 0x3c - MMIO Base Low */
|
||||
u32 mmiol; /* 0x40 - MMIO Base Limit */
|
||||
u64 mmiohb; /* 0x44 - MMIO Base High */
|
||||
|
|
|
@ -103,7 +103,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
|
||||
Offset (0xf5),
|
||||
TPIQ, 8, // 0xf5 - trackpad IRQ value
|
||||
CBMC, 32,
|
||||
, 32,
|
||||
}
|
||||
|
||||
External (\_TZ.SKIN)
|
||||
|
|
|
@ -104,7 +104,7 @@ struct __packed global_nvs {
|
|||
u8 rsvd12[57];
|
||||
|
||||
u8 tpiq; /* 0xf5 - trackpad IRQ value */
|
||||
u32 cbmc;
|
||||
u32 unused_was_cbmc;
|
||||
};
|
||||
|
||||
#endif /* SOUTHBRIDGE_INTEL_BD82X6X_NVS_H */
|
||||
|
|
|
@ -98,7 +98,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
Offset (0xf0),
|
||||
DOCK, 8, // 0xf0 - Docking Status
|
||||
BTEN, 8, // 0xf1 - Bluetooth Enable
|
||||
CBMC, 32,
|
||||
, 32,
|
||||
PM1I, 32, // System Wake Source - PM1 Index
|
||||
GPEI, 32, // GPE Wake Source
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ struct __packed global_nvs {
|
|||
u8 dock; /* 0xf0 - Docking Status */
|
||||
u8 bten;
|
||||
|
||||
u32 cbmc;
|
||||
u32 unused_was_cbmc;
|
||||
|
||||
/* Required for future unified acpi_save_wake_source. */
|
||||
u32 pm1i;
|
||||
|
|
|
@ -100,7 +100,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
Offset (0xf0),
|
||||
DOCK, 8, // 0xf0 - Docking Status
|
||||
BTEN, 8, // 0xf1 - Bluetooth Enable
|
||||
CBMC, 32,
|
||||
, 32,
|
||||
PM1I, 32, // System Wake Source - PM1 Index
|
||||
GPEI, 32, // GPE Wake Source
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ struct __packed global_nvs {
|
|||
u8 dock; /* 0xf0 - Docking Status */
|
||||
u8 bten;
|
||||
|
||||
u32 cbmc;
|
||||
u32 unused_was_cbmc;
|
||||
|
||||
/* Required for future unified acpi_save_wake_source. */
|
||||
u32 pm1i;
|
||||
|
|
|
@ -90,7 +90,7 @@ Field (GNVS, ByteAcc, NoLock, Preserve)
|
|||
S7B1, 32, // 0x9c - D23:F0 Serial IO SDIO BAR1
|
||||
|
||||
Offset (0xa0),
|
||||
CBMC, 32, // 0xa0 - coreboot mem console pointer
|
||||
, 32, // 0xa0 - coreboot mem console pointer
|
||||
|
||||
PM1I, 32, // System Wake Source - PM1 Index
|
||||
GPEI, 32, // GPE Wake Source
|
||||
|
|
|
@ -72,7 +72,7 @@ struct __packed global_nvs {
|
|||
/* LynxPoint Serial IO device BARs */
|
||||
u32 s0b[8]; /* 0x60 - 0x7f - BAR0 */
|
||||
u32 s1b[8]; /* 0x80 - 0x9f - BAR1 */
|
||||
u32 cbmc; /* 0xa0 - 0xa3 - coreboot memconsole */
|
||||
u32 unused_was_cbmc; /* 0xa0 - 0xa3 - coreboot memconsole */
|
||||
|
||||
/* Required for future unified acpi_save_wake_source. */
|
||||
u32 pm1i;
|
||||
|
|
Loading…
Reference in New Issue