soc: imx8mq: Read SOC revision from TF-A
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 29 Oct 2019 23:17:39 +0000 (01:17 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 4 Nov 2019 03:32:12 +0000 (11:32 +0800)
commit768e1a8e093677f5e0e7d0a447c1a856c16cbb66
tree467379ad963d6fa9b97813c1f418daae20931f84
parent7ae399b7d009c7348b9451ac41cd49671b31cf3a
soc: imx8mq: Read SOC revision from TF-A

SOC revision on older imx8mq is not available in fuses so on anything
other than B1 current code just reports "unknown".

TF-A already handles this by parsing the ROM and exposes the value
through a SMC call. Call this instead of reimplementing the workaround
in the kernel itself.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/soc-imx8.c