MLK-23967 imx8: scu_api: Sync sc_rm_is_pad_owned API change
authorYe Li <ye.li@nxp.com>
Mon, 11 May 2020 03:35:56 +0000 (20:35 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 10:26:02 +0000 (03:26 -0700)
commitac5836e3adee8d1b0046b6f48e47e690adcd0968
tree871a0ad286febf26b1dabd4b1cfba2b074cda756
parentca501ccb95281760a18eff79b23a9670d89ec652
MLK-23967 imx8: scu_api: Sync sc_rm_is_pad_owned API change

SCFW has fixed a overflow issue in sc_rm_is_pad_owned API. This
requires u-boot to update API implementation, since it will cause
compatible issue. Otherwise all pad checking will have problem and
cause pad setting not continue.

Due to the compatible issue, the new u-boot only works with new
SCFW (API version: 1.21).

old scfw + old u-boot: API overflow issue
old scfw + new u-boot, or new scfw + old u-boot: API compatible issue
new scfw + new u-boot: Working

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by : Jason Liu <Jason.hui.liu@nxp.com>

(cherry picked from commit e84fb02056fe50146856320b96de909dad4c0058)
(cherry picked from commit 63c9e1b0b2a7f45b76d95624503bed377a3dd226)
arch/arm/include/asm/arch-imx8/sci/rpc.h
drivers/misc/imx8/scu_api.c