From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Fri, 9 Jan 2015 16:59:47 +0800 Subject: [U-Boot] [PATCH 12/12] ARM:imx call ldo_mode_set in arch_preboot_os In-Reply-To: <1420793987-7621-1-git-send-email-Peng.Fan@freescale.com> References: <1420793987-7621-1-git-send-email-Peng.Fan@freescale.com> Message-ID: <1420793987-7621-13-git-send-email-Peng.Fan@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Signed-off-by: Robin Gong --- 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