ARM: imx: Get rid of only i.MX8M SMCCC arch call
authorMarek Vasut <marex@denx.de>
Tue, 12 Apr 2022 22:40:26 +0000 (00:40 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Apr 2022 07:35:45 +0000 (09:35 +0200)
commitcb61b2fb2b94c3ae76e5b5f2083a780c17aa3b57
treed8aff28897a118caf2dbd8e4615e5a3443c27f9f
parent2fa763baa1c594c74473063292efd37e6e541ea4
ARM: imx: Get rid of only i.MX8M SMCCC arch call

This is the only place where i.MX8M code does SMCCC call, remove it.
The output has little value as it prints some part of commit ID, and
worse, if there is no SMC handler installed, the code outright hangs
or crashes the system.

By removing this one instance of SMCCC call, U-Boot no longer depends
on SMC handlers and can boot without hanging in any case. If there is
a need to dump this commit ID, use CMD_SMC instead and do 'smc' call
from U-Boot shell or scripts instead of hard-coding SMCCC dependency
into architecture code. This particular code can be replaced by:
 => smc 0xc2000003 0 0 0 0 0 0

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/imx8m/soc.c