sb/intel/lynxpoint: Remove GPE0_{EN,STS}_2 defines
By ACPI specification, those follow GPE0_EN bits in the register space. Use sizeof() to replace the 2/4 offset previously used. Change-Id: I27ada0b19b2cf5e8eca71f48bf103dcab1b3cc11 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74979 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Lean Sheng Tan
parent
23d4614d8a
commit
ab368d96d7
@@ -60,8 +60,8 @@ static void pch_log_gpe(void)
|
||||
pch_log_standard_gpe(GPE0_EN, GPE0_STS);
|
||||
|
||||
/* GPIO 0-15 */
|
||||
gpe0_en = inw(pmbase + GPE0_EN + 2);
|
||||
gpe0_sts = inw(pmbase + GPE0_STS + 2) & gpe0_en;
|
||||
gpe0_en = inw(pmbase + GPE0_EN + sizeof(uint16_t));
|
||||
gpe0_sts = inw(pmbase + GPE0_STS + sizeof(uint16_t)) & gpe0_en;
|
||||
for (i = 0; i <= 15; i++) {
|
||||
if (gpe0_sts & (1 << i))
|
||||
elog_add_event_wake(ELOG_WAKE_SOURCE_GPE, i);
|
||||
@@ -71,8 +71,8 @@ static void pch_log_gpe(void)
|
||||
* Now check and log upper status bits
|
||||
*/
|
||||
|
||||
gpe0_en = inl(pmbase + GPE0_EN_2);
|
||||
gpe0_sts = inl(pmbase + GPE0_STS_2) & gpe0_en;
|
||||
gpe0_en = inl(pmbase + GPE0_EN + sizeof(uint32_t));
|
||||
gpe0_sts = inl(pmbase + GPE0_STS + sizeof(uint32_t)) & gpe0_en;
|
||||
|
||||
for (i = 0; i <= 31; i++) {
|
||||
if (!gpe0_high_gpios[i])
|
||||
|
Reference in New Issue
Block a user