[PATCH v2 1/3] soc: imx8m: Cleanup with adding imx8m_soc_[un]prepare
Marco Felsch
m.felsch at pengutronix.de
Wed Apr 23 09:29:18 PDT 2025
On 25-04-23, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> There is a common flow to i.MX8M family, map OCOTP register base and
> enable ocotp clk first before read Unique ID from OCOTP.
>
> So introduce imx8m_soc_prepare to do ioremap and enable the ocotp clk,
> and introduce imx8m_soc_unprepare to disable the clk and do iounmap.
Wouldn't have gone that far, but the changes lgtm.
> With this patch, no need to spread the ioremap and clk handling in
> each soc_revision hook.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Reviewed-by: Marco Felsch <m.felsch at pengutronix.de>
More information about the linux-arm-kernel
mailing list