board: beacon: imx8mp: Fix GIC clock for Overdrive mode
authorAdam Ford <aford173@gmail.com>
Mon, 24 Mar 2025 23:27:25 +0000 (18:27 -0500)
committerFabio Estevam <festevam@gmail.com>
Tue, 25 Mar 2025 11:29:50 +0000 (08:29 -0300)
commit99843fe42d6746a23e6b24447675c06c1a0c83e4
tree247dde7ebe1c066ddd1d49457dc7c3a1ebd6b9ec
parent31896508d8df4a87ecc09af6c6c61d8b1b5046af
board: beacon: imx8mp: Fix GIC clock for Overdrive mode

There is a config option to run the PMIC at nominal voltages
which is not enabled on the i.MX8MP Beacon kit, so it the PMIC
runs at overdrive voltages.   Unfortuately, the check for this
condition to set the GIC clock parent and rate is backwards from
what it should be, and accidentally sets the GIC clock to nominal
if the PMIC is in overdrive, and sets the GIC clock to overdrive
if the PMIC is in nominal.  Fix this by inverting the logic on the
check.

Fixes: ab53bd43dbde ("arm64: imx: Add support for imx8mp-beacon-kit")
Signed-off-by: Adam Ford <aford173@gmail.com>
board/beacon/imx8mp/spl.c