]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.9/arm-dts-am43x-epos-fix-clk-parent-for-synctimer.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.9 / arm-dts-am43x-epos-fix-clk-parent-for-synctimer.patch
1 From cfe1580a6415bc37fd62d79eb8102a618f7650b2 Mon Sep 17 00:00:00 2001
2 From: Lokesh Vutla <lokeshvutla@ti.com>
3 Date: Tue, 8 Mar 2016 12:24:35 +0530
4 Subject: ARM: dts: AM43x-epos: Fix clk parent for synctimer
5
6 From: Lokesh Vutla <lokeshvutla@ti.com>
7
8 commit cfe1580a6415bc37fd62d79eb8102a618f7650b2 upstream.
9
10 commit 55ee7017ee31 ("arm: omap2: board-generic: use omap4_local_timer_init
11 for AM437x") makes synctimer32k as the clocksource on AM43xx. By default
12 the synctimer32k is clocked by 32K RTC OSC on AM43xx. But this 32K RTC OSC
13 is not available on epos boards which makes it fail to boot.
14
15 Synctimer32k can also be clocked by a peripheral PLL, so making this as
16 clock parent for synctimer3k on epos boards.
17
18 Fixes: 55ee7017ee31 ("arm: omap2: board-generic: use omap4_local_timer_init for AM437x")
19 Reported-by: Nishanth Menon <nm@ti.com>
20 Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 Signed-off-by: Tony Lindgren <tony@atomide.com>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24 ---
25 arch/arm/boot/dts/am43x-epos-evm.dts | 5 +++++
26 1 file changed, 5 insertions(+)
27
28 --- a/arch/arm/boot/dts/am43x-epos-evm.dts
29 +++ b/arch/arm/boot/dts/am43x-epos-evm.dts
30 @@ -792,3 +792,8 @@
31 tx-num-evt = <32>;
32 rx-num-evt = <32>;
33 };
34 +
35 +&synctimer_32kclk {
36 + assigned-clocks = <&mux_synctimer32k_ck>;
37 + assigned-clock-parents = <&clkdiv32k_ick>;
38 +};