soc/intel/apollolake/acpi: Replace LAnd() with ASL 2.0 syntax

Replace `LAnd (a, b)` with `a && b`.

Change-Id: I4bbbc4888fc134b3862bb956b2ee17a72f282584
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60466
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer 2021-12-29 15:50:41 +01:00
parent 2318677866
commit 5e0fc511fd
3 changed files with 5 additions and 7 deletions

View File

@ -39,9 +39,7 @@ Device (HDAS)
* NHLT Query only supported for revision 1 and
* if NHLT address and length are set in NVS.
*/
If (LAnd (LEqual (Arg1, One),
LAnd (LNotEqual (NHLA, Zero),
LNotEqual (NHLL, Zero)))) {
If (LEqual (Arg1, One) && LNotEqual (NHLA, Zero) && LNotEqual (NHLL, Zero)) {
Return (Buffer (One) { 0x03 })
}
Else {

View File

@ -49,7 +49,7 @@ PowerResource (PXP, 0, 0)
Method (_ON, 0, Serialized)
{
If (LAnd (LEqual (PDST, 1), LNotEqual (\PRT0, 0))) {
If (LEqual (PDST, 1) && LNotEqual (\PRT0, 0)) {
/* Enter this condition if device
* is connected
*/
@ -83,7 +83,7 @@ PowerResource (PXP, 0, 0)
Method (_OFF, 0, Serialized)
{
/* Set L23_Rdy Entry Request (L23ER) */
If (LAnd (LEqual (PDST, 1), LNotEqual (\PRT0, 0))) {
If (LEqual (PDST, 1) && LNotEqual (\PRT0, 0)) {
/* enter this condition if device
* is connected
*/

View File

@ -118,7 +118,7 @@ Scope (\_SB.PCI0) {
Method (_INI, 0)
{
/* Check SDCard CD port is valid */
If (LAnd (LNotEqual (\SCDP, 0), LNotEqual (\SCDO, 0) ))
If (LNotEqual (\SCDP, 0) && LNotEqual (\SCDO, 0))
{
/* Store DW0 address of SD_CD */
Store (GDW0 (\SCDP, \SCDO), SCD0)
@ -133,7 +133,7 @@ Scope (\_SB.PCI0) {
Method (_PS0, 0, NotSerialized)
{
/* Check SDCard CD port is valid */
If (LAnd (LNotEqual (\SCDP, 0), LNotEqual (\SCDO, 0) ))
If (LNotEqual (\SCDP, 0) && LNotEqual (\SCDO, 0))
{
/* Store DW0 into local0 to get rxstate of GPIO */
Store (\_SB.GPC0 (SCD0), Local0)