WSL2-Linux-Kernel/drivers/soc/imx
Nathan Rossi 2a47ee15a6 soc: imx8m: Enable OCOTP clock for imx8mm before reading registers
[ Upstream commit 9d1e8275a2 ]

Commit 836fb30949 ("soc: imx8m: Enable OCOTP clock before reading the
register") added configuration to enable the OCOTP clock before
attempting to read from the associated registers.

This same kexec issue is present with the imx8m SoCs that use the
imx8mm_soc_uid function (e.g. imx8mp). This requires the imx8mm_soc_uid
function to configure the OCOTP clock before accessing the associated
registers. This change implements the same clock enable functionality
that is present in the imx8mq_soc_revision function for the
imx8mm_soc_uid function.

Signed-off-by: Nathan Rossi <nathan.rossi@digi.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Fixes: 836fb30949 ("soc: imx8m: Enable OCOTP clock before reading the register")
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-06 13:18:14 +02:00
..
Kconfig ARM: imx: fix imx8m dependencies 2021-01-11 09:36:11 +08:00
Makefile firmware: imx: Move i.MX SCU soc driver into imx firmware folder 2020-07-13 10:02:00 +08:00
gpc.c soc: imx: gpc: fix power up sequencing 2020-03-16 11:39:02 +08:00
gpcv2.c soc: imx: gpcv2: Assert reset before ungating clock 2022-09-15 11:30:03 +02:00
soc-imx.c soc: imx: Register SoC device only on i.MX boards 2021-12-22 09:32:39 +01:00
soc-imx8m.c soc: imx8m: Enable OCOTP clock for imx8mm before reading registers 2023-10-06 13:18:14 +02:00