summaryrefslogtreecommitdiff
path: root/src/mainboard/intel
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-26 08:39:35 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-27 09:04:02 +0000
commitdfbb634ae16065811894d67ff802c1e838ce0749 (patch)
tree0ad779089e19231a8e1c279ab40b3c9f195a680f /src/mainboard/intel
parentca4b587f95c0f1ed64e187511781abdfd4c7ebfb (diff)
mainboard/acpi: Replace constant "One" with actual number
Change-Id: Id1078b14a805eea53d2a7c5a8183a5413f26e115 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71521 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/intel')
-rw-r--r--src/mainboard/intel/baskingridge/acpi/thermal.asl10
-rw-r--r--src/mainboard/intel/emeraldlake2/acpi/thermal.asl10
-rw-r--r--src/mainboard/intel/glkrvp/touchpad.asl14
-rw-r--r--src/mainboard/intel/tglrvp/acpi/mipi_camera.asl12
-rw-r--r--src/mainboard/intel/wtm2/acpi/thermal.asl10
5 files changed, 28 insertions, 28 deletions
diff --git a/src/mainboard/intel/baskingridge/acpi/thermal.asl b/src/mainboard/intel/baskingridge/acpi/thermal.asl
index c1bb1163ed..373683064a 100644
--- a/src/mainboard/intel/baskingridge/acpi/thermal.asl
+++ b/src/mainboard/intel/baskingridge/acpi/thermal.asl
@@ -101,7 +101,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 0) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -122,7 +122,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 1) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -143,7 +143,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 2) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -164,7 +164,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 3) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -185,7 +185,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 4) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
diff --git a/src/mainboard/intel/emeraldlake2/acpi/thermal.asl b/src/mainboard/intel/emeraldlake2/acpi/thermal.asl
index 0a3bb49732..3d5b25061d 100644
--- a/src/mainboard/intel/emeraldlake2/acpi/thermal.asl
+++ b/src/mainboard/intel/emeraldlake2/acpi/thermal.asl
@@ -120,7 +120,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 0) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -141,7 +141,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 1) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -162,7 +162,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 2) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -183,7 +183,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 3) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -204,7 +204,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 4) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
diff --git a/src/mainboard/intel/glkrvp/touchpad.asl b/src/mainboard/intel/glkrvp/touchpad.asl
index 14ed629334..57b9c7fa2e 100644
--- a/src/mainboard/intel/glkrvp/touchpad.asl
+++ b/src/mainboard/intel/glkrvp/touchpad.asl
@@ -3,7 +3,7 @@
{
Device (TPAD)
{
- Name(_ADR, One)
+ Name(_ADR, 1)
Name (_HID, "ALPS0001")
Name (_CID, "PNP0C50")
Name (_DDN, "ALPS Touchpad")
@@ -41,22 +41,22 @@
If(Arg2 == Zero)
{
// Revision 1
- If(Arg1 == One)
+ If(Arg1 == 1)
{
- Return (Buffer (One) {0x03})
+ Return (Buffer (1) {0x03})
}
Else
{
- Return (Buffer (One) {0x00})
+ Return (Buffer (1) {0x00})
}
- } ElseIf (Arg2 == One) { // Function 1 : HID Function
+ } ElseIf (Arg2 == 1) { // Function 1 : HID Function
// HID Descriptor Address (IHV Specific)
Return(0x0020)
} Else {
- Return (Buffer (One) {0x00})
+ Return (Buffer (1) {0x00})
}
} Else {
- Return (Buffer (One) {0x00})
+ Return (Buffer (1) {0x00})
}
}
}
diff --git a/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl b/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
index ffecfd2256..290069b269 100644
--- a/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
+++ b/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
@@ -28,7 +28,7 @@ Scope (\_SB.PCI0.IPU0)
Package (0x02)
{
"port",
- One
+ 1
}
},
ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
@@ -88,7 +88,7 @@ Scope (\_SB.PCI0.IPU0)
"data-lanes",
Package (0x04)
{
- One,
+ 1,
0x02,
0x03,
0x04
@@ -126,7 +126,7 @@ Scope (\_SB.PCI0.IPU0)
"data-lanes",
Package (0x04)
{
- One,
+ 1,
0x02,
0x03,
0x04
@@ -290,7 +290,7 @@ Scope (\_SB.PCI0.I2C3)
"data-lanes",
Package (0x04)
{
- One,
+ 1,
0x02,
0x03,
0x04
@@ -505,7 +505,7 @@ Scope (\_SB.PCI0.I2C5)
"data-lanes",
Package (0x04)
{
- One,
+ 1,
0x02,
0x03,
0x04
@@ -526,7 +526,7 @@ Scope (\_SB.PCI0.I2C5)
Package (0x03)
{
IPU0,
- One,
+ 1,
Zero
}
}
diff --git a/src/mainboard/intel/wtm2/acpi/thermal.asl b/src/mainboard/intel/wtm2/acpi/thermal.asl
index fe3961ef29..4d392430b1 100644
--- a/src/mainboard/intel/wtm2/acpi/thermal.asl
+++ b/src/mainboard/intel/wtm2/acpi/thermal.asl
@@ -103,7 +103,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 0) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -122,7 +122,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 1) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -141,7 +141,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 2) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -160,7 +160,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 3) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
@@ -179,7 +179,7 @@ Scope (\_TZ)
{
Method (_STA) {
If (\FLVL <= 4) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}