aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx/acpi/lpc.asl
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-09-10 21:06:40 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-12 14:41:51 +0000
commit08b5ef48346a0040d5d90b1fe1a9fd3e96b6a358 (patch)
tree19f16e89bb72987e18ab3ee05a066aed1ed1463c /src/southbridge/intel/i82801gx/acpi/lpc.asl
parent30a94751925dda7b662643c87a35a95b011d2349 (diff)
sb/intel/i82801gx/acpi: Convert *.asl to ASL 2.0 syntax
Also remove extra empty lines. It builds same binary for apple/macbook21 using BUILD_TIMELESS=1 Change-Id: Ibf349bb70b1fee31bfcdb4c87ffa5b4b8359e289 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45275 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/i82801gx/acpi/lpc.asl')
-rw-r--r--src/southbridge/intel/i82801gx/acpi/lpc.asl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/southbridge/intel/i82801gx/acpi/lpc.asl b/src/southbridge/intel/i82801gx/acpi/lpc.asl
index b93fa96d23..1f9e701e84 100644
--- a/src/southbridge/intel/i82801gx/acpi/lpc.asl
+++ b/src/southbridge/intel/i82801gx/acpi/lpc.asl
@@ -73,7 +73,7 @@ Device (LPCB)
If (HPTE) {
// Note: Ancient versions of Windows don't want
// to see the HPET in order to work right
- If (LGreaterEqual(OSYS, 2001)) {
+ If (OSYS >= 2001) {
Return (0xf) // Enable and show device
} Else {
Return (0xb) // Enable and don't show device
@@ -87,16 +87,16 @@ Device (LPCB)
{
If (HPTE) {
CreateDWordField(BUF0, \_SB.PCI0.LPCB.HPET.FED0._BAS, HPT0)
- If (Lequal(HPAS, 1)) {
- Add(CONFIG_HPET_ADDRESS, 0x1000, HPT0)
+ If (HPAS == 1) {
+ HPT0 = CONFIG_HPET_ADDRESS + 0x1000
}
- If (Lequal(HPAS, 2)) {
- Add(CONFIG_HPET_ADDRESS, 0x2000, HPT0)
+ If (HPAS == 2) {
+ HPT0 = CONFIG_HPET_ADDRESS + 0x2000
}
- If (Lequal(HPAS, 3)) {
- Add(CONFIG_HPET_ADDRESS, 0x3000, HPT0)
+ If (HPAS == 3) {
+ HPT0 = CONFIG_HPET_ADDRESS + 0x3000
}
}