src: Drop useless PM1b settings from FADT
None of the currently-supported chips has PM1b_EVT nor PM1b_CNT event register blocks. According to the ACPI specification, version 6.3, sections 4.8.1.1 and 4.8.1.2 (PM1 Event/Control Registers): If the PM1b_EVT_BLK is not supported, its pointer contains a value of zero in the FADT. If the PM1b_CNT_BLK is not supported, its pointer contains a value of zero in the FADT. Since the FADT struct defaults to zero in coreboot, we don't need to do anything with PM1b for now. So, drop unneeded writes to PM1b fields. Tested on Asus P8Z77-V LX2 with Linux 5.7.6 and Windows 10 at the end of the patch train, both operating systems are able to boot successfully. Change-Id: Iff788b2ff17ba190a8dd9b0b540f1ef059a1a0ea Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43380 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
77653e3bce
commit
1b5a7dec43
|
@ -99,9 +99,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||||
fadt->pm1b_evt_blk = 0x0000;
|
|
||||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||||
fadt->pm1b_cnt_blk = 0x0000;
|
|
||||||
fadt->pm2_cnt_blk = 0x0000;
|
fadt->pm2_cnt_blk = 0x0000;
|
||||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||||
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
||||||
|
@ -159,14 +157,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -174,13 +164,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: Under this current AMD C state implementation, this is no
|
* Note: Under this current AMD C state implementation, this is no
|
||||||
* longer used and should not be reported to OS.
|
* longer used and should not be reported to OS.
|
||||||
|
|
|
@ -71,9 +71,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||||
fadt->pm1b_evt_blk = 0x0000;
|
|
||||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||||
fadt->pm1b_cnt_blk = 0x0000;
|
|
||||||
fadt->pm2_cnt_blk = 0x0000;
|
fadt->pm2_cnt_blk = 0x0000;
|
||||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||||
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
||||||
|
@ -131,14 +129,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -146,13 +136,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: Under this current AMD C state implementation, this is no
|
* Note: Under this current AMD C state implementation, this is no
|
||||||
* longer used and should not be reported to OS.
|
* longer used and should not be reported to OS.
|
||||||
|
|
|
@ -20,9 +20,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2A_CNT_BLK;
|
fadt->pm2_cnt_blk = pmbase + PM2A_CNT_BLK;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS;
|
fadt->gpe0_blk = pmbase + GPE0_STS;
|
||||||
|
@ -63,13 +61,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -77,13 +68,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -20,9 +20,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2A_CNT_BLK;
|
fadt->pm2_cnt_blk = pmbase + PM2A_CNT_BLK;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS;
|
fadt->gpe0_blk = pmbase + GPE0_STS;
|
||||||
|
@ -63,13 +61,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -77,13 +68,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -19,9 +19,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
||||||
|
@ -62,13 +60,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -76,13 +67,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -104,9 +104,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
|
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
||||||
|
|
||||||
|
@ -137,16 +135,11 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS;
|
||||||
|
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_cnt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Windows 10 requires x_gpe0_blk to be set starting with FADT revision 5.
|
* Windows 10 requires x_gpe0_blk to be set starting with FADT revision 5.
|
||||||
* The bit_width field intentionally overflows here.
|
* The bit_width field intentionally overflows here.
|
||||||
|
|
|
@ -162,13 +162,6 @@ void soc_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = fadt->pm1a_evt_blk;
|
fadt->x_pm1a_evt_blk.addrl = fadt->pm1a_evt_blk;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x00;
|
fadt->x_pm1a_evt_blk.addrh = 0x00;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = fadt->pm1b_evt_blk;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x00;
|
|
||||||
|
|
||||||
/* PM1 Control Registers */
|
/* PM1 Control Registers */
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
|
@ -177,13 +170,6 @@ void soc_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = fadt->pm1a_cnt_blk;
|
fadt->x_pm1a_cnt_blk.addrl = fadt->pm1a_cnt_blk;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x00;
|
fadt->x_pm1a_cnt_blk.addrh = 0x00;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = fadt->pm1b_cnt_blk;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x00;
|
|
||||||
|
|
||||||
/* PM2 Control Registers */
|
/* PM2 Control Registers */
|
||||||
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
|
|
|
@ -22,9 +22,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
||||||
|
@ -71,13 +69,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -85,13 +76,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -283,9 +283,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->sci_int = SCI_INT_NUM;
|
fadt->sci_int = SCI_INT_NUM;
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
|
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
||||||
|
|
||||||
|
@ -313,14 +311,10 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
|
|
||||||
if (permanent_smi_handler()) {
|
if (permanent_smi_handler()) {
|
||||||
fadt->smi_cmd = APM_CNT;
|
fadt->smi_cmd = APM_CNT;
|
||||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||||
|
|
|
@ -269,13 +269,6 @@ void soc_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = fadt->pm1a_evt_blk;
|
fadt->x_pm1a_evt_blk.addrl = fadt->pm1a_evt_blk;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x00;
|
fadt->x_pm1a_evt_blk.addrh = 0x00;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = fadt->pm1b_evt_blk;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x00;
|
|
||||||
|
|
||||||
/* PM1 Control Registers */
|
/* PM1 Control Registers */
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
|
@ -284,13 +277,6 @@ void soc_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = fadt->pm1a_cnt_blk;
|
fadt->x_pm1a_cnt_blk.addrl = fadt->pm1a_cnt_blk;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x00;
|
fadt->x_pm1a_cnt_blk.addrh = 0x00;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = fadt->pm1b_cnt_blk;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x00;
|
|
||||||
|
|
||||||
/* PM2 Control Registers */
|
/* PM2 Control Registers */
|
||||||
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
|
@ -332,9 +318,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
fadt->gpe0_blk = pmbase + GPE0_STS(0);
|
||||||
|
@ -378,13 +362,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -392,13 +369,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -35,9 +35,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||||
fadt->pm1b_evt_blk = 0x0000;
|
|
||||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||||
fadt->pm1b_cnt_blk = 0x0000;
|
|
||||||
fadt->pm2_cnt_blk = 0x0000;
|
fadt->pm2_cnt_blk = 0x0000;
|
||||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||||
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
||||||
|
@ -92,14 +90,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -107,13 +97,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: Under this current AMD C state implementation, this is no longer
|
* Note: Under this current AMD C state implementation, this is no longer
|
||||||
* used and should not be reported to OS.
|
* used and should not be reported to OS.
|
||||||
|
|
|
@ -59,9 +59,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
/* RTC_En_En, TMR_En_En, GBL_EN_EN */
|
/* RTC_En_En, TMR_En_En, GBL_EN_EN */
|
||||||
outl(0x1, PM1_CNT_BLK_ADDRESS); /* set SCI_EN */
|
outl(0x1, PM1_CNT_BLK_ADDRESS); /* set SCI_EN */
|
||||||
fadt->pm1a_evt_blk = PM1_EVT_BLK_ADDRESS;
|
fadt->pm1a_evt_blk = PM1_EVT_BLK_ADDRESS;
|
||||||
fadt->pm1b_evt_blk = 0x0000;
|
|
||||||
fadt->pm1a_cnt_blk = PM1_CNT_BLK_ADDRESS;
|
fadt->pm1a_cnt_blk = PM1_CNT_BLK_ADDRESS;
|
||||||
fadt->pm1b_cnt_blk = 0x0000;
|
|
||||||
fadt->pm2_cnt_blk = ACPI_PMA_CNT_BLK_ADDRESS;
|
fadt->pm2_cnt_blk = ACPI_PMA_CNT_BLK_ADDRESS;
|
||||||
fadt->pm_tmr_blk = PM1_TMR_BLK_ADDRESS;
|
fadt->pm_tmr_blk = PM1_TMR_BLK_ADDRESS;
|
||||||
fadt->gpe0_blk = GPE0_BLK_ADDRESS;
|
fadt->gpe0_blk = GPE0_BLK_ADDRESS;
|
||||||
|
@ -114,14 +112,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = PM1_EVT_BLK_ADDRESS;
|
fadt->x_pm1a_evt_blk.addrl = PM1_EVT_BLK_ADDRESS;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -129,14 +119,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = PM1_CNT_BLK_ADDRESS;
|
fadt->x_pm1a_cnt_blk.addrl = PM1_CNT_BLK_ADDRESS;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8; /* Hudson 1 Pm2Control is 8 bits */
|
fadt->x_pm2_cnt_blk.bit_width = 8; /* Hudson 1 Pm2Control is 8 bits */
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -35,9 +35,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||||
fadt->pm1b_evt_blk = 0x0000;
|
|
||||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||||
fadt->pm1b_cnt_blk = 0x0000;
|
|
||||||
fadt->pm2_cnt_blk = 0x0000;
|
fadt->pm2_cnt_blk = 0x0000;
|
||||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||||
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
fadt->gpe0_blk = ACPI_GPE0_BLK;
|
||||||
|
@ -95,14 +93,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -110,13 +100,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
fadt->x_pm1a_cnt_blk.addrl = ACPI_PM1_CNT_BLK;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: Under this current AMD C state implementation, this is no longer
|
* Note: Under this current AMD C state implementation, this is no longer
|
||||||
* used and should not be reported to OS.
|
* used and should not be reported to OS.
|
||||||
|
|
|
@ -23,9 +23,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase;
|
fadt->pm1a_evt_blk = pmbase;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + 0x50;
|
fadt->pm2_cnt_blk = pmbase + 0x50;
|
||||||
fadt->pm_tmr_blk = pmbase + 0x8;
|
fadt->pm_tmr_blk = pmbase + 0x8;
|
||||||
fadt->gpe0_blk = pmbase + 0x20;
|
fadt->gpe0_blk = pmbase + 0x20;
|
||||||
|
@ -82,13 +80,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -96,13 +87,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + 0x4;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + 0x4;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -25,9 +25,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = DEFAULT_PMBASE;
|
fadt->pm1a_evt_blk = DEFAULT_PMBASE;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = DEFAULT_PMBASE + PMCNTRL;
|
fadt->pm1a_cnt_blk = DEFAULT_PMBASE + PMCNTRL;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
|
|
||||||
fadt->pm2_cnt_blk = 0;
|
fadt->pm2_cnt_blk = 0;
|
||||||
fadt->pm_tmr_blk = DEFAULT_PMBASE + PMTMR;
|
fadt->pm_tmr_blk = DEFAULT_PMBASE + PMTMR;
|
||||||
|
@ -124,13 +122,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = fadt->pm1a_evt_blk;
|
fadt->x_pm1a_evt_blk.addrl = fadt->pm1a_evt_blk;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = fadt->pm1b_evt_blk;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -138,13 +129,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = fadt->pm1a_cnt_blk;
|
fadt->x_pm1a_cnt_blk.addrl = fadt->pm1a_cnt_blk;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = fadt->pm1_cnt_len * 8;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = fadt->pm1b_cnt_blk;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -31,9 +31,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase;
|
fadt->pm1a_evt_blk = pmbase;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = 0x0;
|
fadt->pm2_cnt_blk = 0x0;
|
||||||
fadt->pm_tmr_blk = pmbase + 0x8;
|
fadt->pm_tmr_blk = pmbase + 0x8;
|
||||||
fadt->gpe0_blk = pmbase + 0x28;
|
fadt->gpe0_blk = pmbase + 0x28;
|
||||||
|
@ -75,13 +73,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -89,13 +80,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + 0x4;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + 0x4;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 0;
|
fadt->x_pm2_cnt_blk.bit_width = 0;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -25,9 +25,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase;
|
fadt->pm1a_evt_blk = pmbase;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS;
|
fadt->gpe0_blk = pmbase + GPE0_STS;
|
||||||
|
@ -73,13 +71,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_MEMORY;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16; /* Upper word is reserved and
|
fadt->x_pm1a_cnt_blk.bit_width = 16; /* Upper word is reserved and
|
||||||
Linux complains about 32 bit. */
|
Linux complains about 32 bit. */
|
||||||
|
@ -88,13 +79,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_MEMORY;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -21,9 +21,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase;
|
fadt->pm1a_evt_blk = pmbase;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS;
|
fadt->gpe0_blk = pmbase + GPE0_STS;
|
||||||
|
@ -64,13 +62,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_MEMORY;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16; /* Upper word is reserved and
|
fadt->x_pm1a_cnt_blk.bit_width = 16; /* Upper word is reserved and
|
||||||
Linux complains about 32 bit. */
|
Linux complains about 32 bit. */
|
||||||
|
@ -79,13 +70,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_MEMORY;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -24,9 +24,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase;
|
fadt->pm1a_evt_blk = pmbase;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
fadt->gpe0_blk = pmbase + GPE0_STS;
|
fadt->gpe0_blk = pmbase + GPE0_STS;
|
||||||
|
@ -69,13 +67,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_MEMORY;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16; /* Upper word is reserved and
|
fadt->x_pm1a_cnt_blk.bit_width = 16; /* Upper word is reserved and
|
||||||
Linux complains about 32 bit. */
|
Linux complains about 32 bit. */
|
||||||
|
@ -84,13 +75,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_MEMORY;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -23,9 +23,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase;
|
fadt->pm1a_evt_blk = pmbase;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + 0x50;
|
fadt->pm2_cnt_blk = pmbase + 0x50;
|
||||||
fadt->pm_tmr_blk = pmbase + 0x8;
|
fadt->pm_tmr_blk = pmbase + 0x8;
|
||||||
fadt->gpe0_blk = pmbase + 0x20;
|
fadt->gpe0_blk = pmbase + 0x20;
|
||||||
|
@ -81,13 +79,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = 1;
|
fadt->x_pm1a_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -95,13 +86,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + 0x4;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + 0x4;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = 1;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = 1;
|
fadt->x_pm2_cnt_blk.space_id = 1;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
|
@ -21,9 +21,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||||
fadt->pm1b_evt_blk = 0x0;
|
|
||||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||||
fadt->pm1b_cnt_blk = 0x0;
|
|
||||||
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
fadt->pm2_cnt_blk = pmbase + PM2_CNT;
|
||||||
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
fadt->pm_tmr_blk = pmbase + PM1_TMR;
|
||||||
if (pch_is_lp())
|
if (pch_is_lp())
|
||||||
|
@ -85,13 +83,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
fadt->x_pm1a_evt_blk.addrl = pmbase + PM1_STS;
|
||||||
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
fadt->x_pm1a_evt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_evt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
fadt->x_pm1a_cnt_blk.bit_width = 16;
|
||||||
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
fadt->x_pm1a_cnt_blk.bit_offset = 0;
|
||||||
|
@ -99,13 +90,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
fadt->x_pm1a_cnt_blk.addrl = pmbase + PM1_CNT;
|
||||||
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
fadt->x_pm1a_cnt_blk.addrh = 0x0;
|
||||||
|
|
||||||
fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_width = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.bit_offset = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.access_size = 0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrl = 0x0;
|
|
||||||
fadt->x_pm1b_cnt_blk.addrh = 0x0;
|
|
||||||
|
|
||||||
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm2_cnt_blk.bit_width = 8;
|
fadt->x_pm2_cnt_blk.bit_width = 8;
|
||||||
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
fadt->x_pm2_cnt_blk.bit_offset = 0;
|
||||||
|
|
Loading…
Reference in New Issue