soc/intel/{jsl,tgl}: Fix GRXS function to get GPIO number proper
This patch ensures that GRXS perform PAD_CFG0_RX_STATE mask first and then right shift PAD_CFG0_RX_STATE_BIT to get correct GPIO number. Change-Id: I96611936f70f79e9dc5ee9414ec68cef00d0d13a Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45738 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
be58923fed
commit
1bfb74c14c
|
@ -11,7 +11,7 @@ Method (GRXS, 1, Serialized)
|
|||
{
|
||||
VAL0, 32
|
||||
}
|
||||
Local0 = PAD_CFG0_RX_STATE & (VAL0 >> PAD_CFG0_RX_STATE_BIT)
|
||||
Local0 = (PAD_CFG0_RX_STATE & VAL0) >> PAD_CFG0_RX_STATE_BIT
|
||||
|
||||
Return (Local0)
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ Method (GRXS, 1, Serialized)
|
|||
{
|
||||
VAL0, 32
|
||||
}
|
||||
Local0 = PAD_CFG0_RX_STATE & (VAL0 >> PAD_CFG0_RX_STATE_BIT)
|
||||
Local0 = (PAD_CFG0_RX_STATE & VAL0) >> PAD_CFG0_RX_STATE_BIT
|
||||
|
||||
Return (Local0)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue