
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@freescale.com Signed-off-by: Robin Gong b38343@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)