summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-03-23 00:53:44 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 15:58:21 +0800
commitaa5bd360e07822127e45f141201d1316a809862d (patch)
treed6689dde6cb2821d7b4c02d7fbdec07772a5b017 /arch/arm/include
parent2ddde71de5f59c689ddd951e2aba0aaf5b515a34 (diff)
MLK-12495 mx6: Add LDO bypass support to i.MX6 SOC
Port LDO bypass SOC codes from v2017 to support the features: 1. Add check for 1.2GHz core speed. If Speed grading fuse is for 1.2GHz, enable LDO bypass and setup PMIC voltages. LDO bypass is dependent on the flatten device tree file. 2. We set WDOG_B in set_anatop_bypass() before, because it is the only case, but now on i.mx6sabreauto board, we didn't use ldo-bypass mode, but have to use WDOG_B to reboot whole board, so split these code to independent function so that board file can call it freely. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 6bceaf009718cec856e11106d26e13601631fa4f) (cherry picked from commit 0e2de4c2d5d2c79e485d164394f03065743ba2c4) (cherry picked from commit 4160d7362893873d04b8a2d618ad6ff84c411da4) (cherry picked from commit 95081f7d5cfeebea682c83d6ebc9ae4eefee2a0f) (cherry picked from commit f541aa3920e76c543003607a2bec45cc84f8d39b)
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/arch-mx6/sys_proto.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h
index c49759af92d..f49d8b4f622 100644
--- a/arch/arm/include/asm/arch-mx6/sys_proto.h
+++ b/arch/arm/include/asm/arch-mx6/sys_proto.h
@@ -39,4 +39,15 @@ static inline void iomuxc_set_rgmii_io_voltage(int io_vol)
__raw_writel(io_vol, IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII);
}
+void set_wdog_reset(struct wdog_regs *wdog);
+
+#ifdef CONFIG_LDO_BYPASS_CHECK
+int check_ldo_bypass(void);
+int check_1_2G(void);
+int set_anatop_bypass(int wdog_reset_pin);
+void ldo_mode_set(int ldo_bypass);
+void prep_anatop_bypass(void);
+void finish_anatop_bypass(void);
+#endif
+
#endif /* __SYS_PROTO_IMX6_ */