soc/intel/apollolake/acpi: Replace Multiply(a,b) with ASL 2.0 syntax
Replace `Multiply (a, b)` with `a * b`. Change-Id: I42076d361045c224b99e111e34de7539420b8a52 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60566 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
3d3d498e8f
commit
3dc8f56a18
|
@ -60,8 +60,7 @@ Scope (\_SB)
|
|||
Store (0, Local1)
|
||||
Or( Or (ShiftLeft (Arg0, 16), CONFIG_PCR_BASE_ADDRESS),
|
||||
Local1, Local1)
|
||||
Or(PAD_CFG_BASE + Multiply (Arg1, Multiply (
|
||||
GPIO_NUM_PAD_CFG_REGS, 4)), Local1, Local1)
|
||||
Or(PAD_CFG_BASE + Arg1 * GPIO_NUM_PAD_CFG_REGS * 4, Local1, Local1)
|
||||
Return (Local1)
|
||||
}
|
||||
|
||||
|
@ -69,7 +68,7 @@ Scope (\_SB)
|
|||
Method (CHSA, 0x1, Serialized)
|
||||
{
|
||||
/* Arg0 - GPIO pad offset relative to the community */
|
||||
Local1 = HOSTSW_OWN_REG_0 + Multiply (Divide (Arg0, 32), 4)
|
||||
Local1 = HOSTSW_OWN_REG_0 + Divide (Arg0, 32) * 4
|
||||
Return (Local1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue