arm-trusted-firmware/plat/imx/imx8m
Leonard Crestez 72196cbb66 plat: imx8mq: Implement IMX_SIP_GET_SOC_INFO
The manual documents that 0x3036006c should contains the soc revision
for imx8mq but this always reports A0. Work around this by parsing the
ROM header and checking if OCOTP register 0x40 is stuck at 0xff0055aa.

Determining this inside TF-A makes life easier for OS, see for example
this linux discussion: https://lkml.org/lkml/2019/5/3/465

The soc revision can also be useful inside TF-A itself, for example for
the non-upstream DDR DVFS "busfreq" feature is affected by 8mq erratas.

The clock for OCOTP block can be disabled by OS so only initialize soc
revision once at boot time.

Change-Id: I9ca3f27840229ce8a28b53870e44da29f63c73aa
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
2019-05-20 11:24:54 +03:00
..
imx8mm plat: imx8m: Implement IMX_SIP_BUILDINFO 2019-05-09 17:20:43 +03:00
imx8mq plat: imx8mq: Implement IMX_SIP_GET_SOC_INFO 2019-05-20 11:24:54 +03:00
include plat: imx8m: Add the basic support for imx8mm 2019-03-13 10:14:59 +08:00
gpc_common.c plat: imx8m: refactor the code to make it reusable 2019-03-12 21:21:03 +08:00
imx8m_psci_common.c plat: imx8m: refactor the code to make it reusable 2019-03-12 21:21:03 +08:00