summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/am33xx
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2013-12-10 15:02:17 +0530
committerTom Rini <trini@ti.com>2013-12-18 21:14:01 -0500
commit0d54cb924e0b6d3832fb1daa7d465e4648c57b7b (patch)
tree8ab728748c97d96844e5f752289e3eb204491705 /arch/arm/cpu/armv7/am33xx
parentf4af163e6c8efbc768c2c0962c7823d6363e30fe (diff)
downloadblackbird-obmc-uboot-0d54cb924e0b6d3832fb1daa7d465e4648c57b7b.tar.gz
blackbird-obmc-uboot-0d54cb924e0b6d3832fb1daa7d465e4648c57b7b.zip
ARM: AM43xx: Select clk source for Timer2
Selecting the Master osc clk as Timer2 clock source. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx')
-rw-r--r--arch/arm/cpu/armv7/am33xx/clock_am43xx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/clock_am43xx.c b/arch/arm/cpu/armv7/am33xx/clock_am43xx.c
index c4890f2b43..22963b7f85 100644
--- a/arch/arm/cpu/armv7/am33xx/clock_am43xx.c
+++ b/arch/arm/cpu/armv7/am33xx/clock_am43xx.c
@@ -18,6 +18,7 @@
struct cm_perpll *const cmper = (struct cm_perpll *)CM_PER;
struct cm_wkuppll *const cmwkup = (struct cm_wkuppll *)CM_WKUP;
+struct cm_dpll *const cmdpll = (struct cm_dpll *)CM_DPLL;
const struct dpll_regs dpll_mpu_regs = {
.cm_clkmode_dpll = CM_WKUP + 0x560,
@@ -107,4 +108,7 @@ void enable_basic_clocks(void)
};
do_enable_clocks(clk_domains, clk_modules_explicit_en, 1);
+
+ /* Select the Master osc clk as Timer2 clock source */
+ writel(0x1, &cmdpll->clktimer2clk);
}
OpenPOWER on IntegriCloud