mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-09 12:23:26 +08:00
imx: i.MX8MQ: clear ocotp error bit
In case ocotp error bit is set, clear it. Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
3b9ac54150
commit
702339bdf4
@ -169,6 +169,7 @@ static void imx_set_wdog_powerdown(bool enable)
|
||||
|
||||
int arch_cpu_init(void)
|
||||
{
|
||||
struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
|
||||
/*
|
||||
* Init timer at very early state, because sscg pll setting
|
||||
* will use it
|
||||
@ -180,6 +181,12 @@ int arch_cpu_init(void)
|
||||
imx_set_wdog_powerdown(false);
|
||||
}
|
||||
|
||||
if (is_imx8mq()) {
|
||||
clock_enable(CCGR_OCOTP, 1);
|
||||
if (readl(&ocotp->ctrl) & 0x200)
|
||||
writel(0x200, &ocotp->ctrl_clr);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user