diff options
author | Tom Rini <trini@konsulko.com> | 2015-06-08 08:37:02 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-08 08:37:02 -0400 |
commit | 4d80051b63ff54f6b6f90fceb92cf87ab3401ecb (patch) | |
tree | aea5bee67c756558fc8c820b4ee04adb75c85146 /arch/arm/cpu | |
parent | 5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (diff) | |
parent | 943a3f2ccb71bcb4a6041bc2946129c4d4bb197e (diff) | |
download | u-boot-imx-4d80051b63ff54f6b6f90fceb92cf87ab3401ecb.zip u-boot-imx-4d80051b63ff54f6b6f90fceb92cf87ab3401ecb.tar.gz u-boot-imx-4d80051b63ff54f6b6f90fceb92cf87ab3401ecb.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 10 | ||||
-rw-r--r-- | arch/arm/cpu/armv7/vf610/generic.c | 7 |
2 files changed, 12 insertions, 5 deletions
diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c index c342217..42f3df2 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c @@ -332,6 +332,11 @@ static void mxs_enable_4p2_dcdc_input(int xfer) debug("SPL: %s 4P2 DC-DC Input\n", xfer ? "Enabling" : "Disabling"); + if (xfer && (readl(&power_regs->hw_power_5vctrl) & + POWER_5VCTRL_ENABLE_DCDC)) { + return; + } + prev_5v_brnout = readl(&power_regs->hw_power_5vctrl) & POWER_5VCTRL_PWDN_5VBRNOUT; prev_5v_droop = readl(&power_regs->hw_power_ctrl) & @@ -343,11 +348,6 @@ static void mxs_enable_4p2_dcdc_input(int xfer) clrbits_le32(&power_regs->hw_power_ctrl, POWER_CTRL_ENIRQ_VDD5V_DROOP); - if (xfer && (readl(&power_regs->hw_power_5vctrl) & - POWER_5VCTRL_ENABLE_DCDC)) { - return; - } - /* * Recording orignal values that will be modified temporarlily * to handle a chip bug. See chip errata for CQ ENGR00115837 diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c index 1bb9b8e..05c401d 100644 --- a/arch/arm/cpu/armv7/vf610/generic.c +++ b/arch/arm/cpu/armv7/vf610/generic.c @@ -198,6 +198,11 @@ static u32 get_i2c_clk(void) return get_ipg_clk(); } +static u32 get_dspi_clk(void) +{ + return get_ipg_clk(); +} + unsigned int mxc_get_clock(enum mxc_clock clk) { switch (clk) { @@ -215,6 +220,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk) return get_fec_clk(); case MXC_I2C_CLK: return get_i2c_clk(); + case MXC_DSPI_CLK: + return get_dspi_clk(); default: break; } |