arm-trusted-firmware/plat/imx/common
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
..
aarch32 Console: remove deprecated finish_console_register 2019-04-03 14:55:18 +01:00
include plat: imx8mq: Implement IMX_SIP_GET_SOC_INFO 2019-05-20 11:24:54 +03:00
sci imx: power optimization for i.mx8qm 2019-01-29 09:26:41 +08:00
imx7_clock.c imx7: imx7_clock: usb: Initialize the USB core clocks 2018-09-04 13:36:23 +01:00
imx8_helpers.S Add plat_crash_console_flush to platforms without it 2018-10-25 09:56:09 +01:00
imx8_psci.c imx: power optimization for i.mx8qm 2019-01-29 09:26:41 +08:00
imx8_topology.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
imx_aips.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
imx_caam.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
imx_clock.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
imx_csu.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
imx_io_mux.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
imx_sip_handler.c plat: imx8m: Implement IMX_SIP_BUILDINFO 2019-05-09 17:20:43 +03:00
imx_sip_svc.c plat: imx8mq: Implement IMX_SIP_GET_SOC_INFO 2019-05-20 11:24:54 +03:00
imx_snvs.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
imx_uart_console.S Console: remove deprecated finish_console_register 2019-04-03 14:55:18 +01:00
imx_wdog.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
lpuart_console.S Console: remove deprecated finish_console_register 2019-04-03 14:55:18 +01:00
plat_imx8_gic.c imx: make sure GIC redistributor is awake before initialization 2019-03-01 14:22:23 +08:00