[U-Boot] [PATCH 12/12] ARM:imx call ldo_mode_set in arch_preboot_os
Peng Fan
Peng.Fan at freescale.com
Fri Jan 9 09:59:47 CET 2015
Current i.MX6 U-Boot does not support device tree. We check
ldo-bypass from dtb file which is loaded when running
`run loadfdt`.
Future work is needed to integrate device tree in uboot. And move
related function invoke in power_init_board.
Signed-off-by: Peng Fan <Peng.Fan at freescale.com>
Signed-off-by: Robin Gong <b38343 at freescale.com>
---
arch/arm/imx-common/cpu.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c
index 28ccd29..1e518f2 100644
--- a/arch/arm/imx-common/cpu.c
+++ b/arch/arm/imx-common/cpu.c
@@ -204,6 +204,10 @@ u32 get_ahb_clk(void)
void arch_preboot_os(void)
{
+#if defined(CONFIG_LDO_BYPASS_CHECK)
+ ldo_mode_set(check_ldo_bypass());
+#endif
+
#if defined(CONFIG_CMD_SATA)
sata_stop();
#if defined(CONFIG_MX6)
--
1.8.4
More information about the U-Boot
mailing list