i.MX8MM TMU needs to load some registers from fuse, this is arch
dependent operation and may vary on different platforms. So add
a interface for arch level initialization.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
return 0;
}
+void __weak imx_tmu_arch_init(void *reg_base)
+{
+}
+
static void imx_tmu_init(struct udevice *dev)
{
struct imx_tmu_plat *pdata = dev_get_platdata(dev);
/* Set update_interval */
writel(TMTMIR_DEFAULT, &pdata->regs->regs_v1.tmtmir);
}
+
+ imx_tmu_arch_init((void *)pdata->regs);
}
static int imx_tmu_enable_msite(struct udevice *dev)