diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-01-02 03:51:21 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-06-09 09:00:56 +0000 |
commit | b1557e870aadb366f22ea5b2529126e6cc4f50d8 (patch) | |
tree | 3a8d7aa4908ae8d55f98a88fc33df7ba49f5488d /src | |
parent | 0767747974a90c8df9615a5b24e1ac55983cf6c8 (diff) |
soc/intel/cannonlake/acpi: Replace LLessEqual(a,b) with ASL 2.0 syntax
Replace `LLessEqual(a, b)` with `a <= b`.
Change-Id: Ib00f363b48295ed1c000a839f54d5ea5dc2b88e2
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60706
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/cannonlake/acpi/gpio.asl | 10 | ||||
-rw-r--r-- | src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/soc/intel/cannonlake/acpi/gpio.asl b/src/soc/intel/cannonlake/acpi/gpio.asl index 81c41cf14d..8241ba40fd 100644 --- a/src/soc/intel/cannonlake/acpi/gpio.asl +++ b/src/soc/intel/cannonlake/acpi/gpio.asl @@ -61,31 +61,31 @@ Device (GPIO) Method (GADD, 1, NotSerialized) { /* GPIO Community 0 */ - If (Arg0 >= GPP_A0 && LLessEqual (Arg0, SPI0_CLK_LOOPBK)) + If (Arg0 >= GPP_A0 && Arg0 <= SPI0_CLK_LOOPBK) { Store (PID_GPIOCOM0, Local0) Local1 = Arg0 - GPP_A0 } /* GPIO Community 1 */ - If (Arg0 >= GPP_D0 && LLessEqual (Arg0, vSD3_CD_B)) + If (Arg0 >= GPP_D0 && Arg0 <= vSD3_CD_B) { Store (PID_GPIOCOM1, Local0) Local1 = Arg0 - GPP_D0 } /* GPIO Community 2 */ - If (Arg0 >= GPD0 && LLessEqual (Arg0, DRAM_RESET_B)) + If (Arg0 >= GPD0 && Arg0 <= DRAM_RESET_B) { Store (PID_GPIOCOM2, Local0) Local1 = Arg0 - GPD0 } /* GPIO Community 3 */ - If (Arg0 >= HDA_BCLK && LLessEqual (Arg0, TRIGGER_OUT)) + If (Arg0 >= HDA_BCLK && Arg0 <= TRIGGER_OUT) { Store (PID_GPIOCOM3, Local0) Local1 = Arg0 - HDA_BCLK } /* GPIO Community 4*/ - If (Arg0 >= GPP_C0 && LLessEqual (Arg0, CL_RST_B)) + If (Arg0 >= GPP_C0 && Arg0 <= CL_RST_B) { Store (PID_GPIOCOM4, Local0) Local1 = Arg0 - GPP_C0 diff --git a/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl b/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl index 495069dd72..4e707e3729 100644 --- a/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl +++ b/src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl @@ -67,25 +67,25 @@ Device (GPIO) Method (GADD, 1, NotSerialized) { /* GPIO Community 0 */ - If (Arg0 >= GPP_A0 && LLessEqual (Arg0, GSPI1_CLK_LOOPBK)) + If (Arg0 >= GPP_A0 && Arg0 <= GSPI1_CLK_LOOPBK) { Store (PID_GPIOCOM0, Local0) Local1 = Arg0 - GPP_A0 } /* GPIO Community 1 */ - If (Arg0 >= GPP_C0 && LLessEqual (Arg0, vSSP2_RXD)) + If (Arg0 >= GPP_C0 && Arg0 <= vSSP2_RXD) { Store (PID_GPIOCOM1, Local0) Local1 = Arg0 - GPP_C0 } /* GPIO Community 3*/ - If (Arg0 >= GPP_K0 && LLessEqual (Arg0, SPI0_CLK_LOOPBK)) + If (Arg0 >= GPP_K0 && Arg0 <= SPI0_CLK_LOOPBK) { Store (PID_GPIOCOM3, Local0) Local1 = Arg0 - GPP_K0 } /* GPIO Community 4*/ - If (Arg0 >= HDACPU_SDI && LLessEqual (Arg0, GPP_J11)) + If (Arg0 >= HDACPU_SDI && Arg0 <= GPP_J11) { Store (PID_GPIOCOM4, Local0) Local1 = Arg0 - GPP_I0 |