clk: mmp2: Fix the order of timer mux parents
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 18 Dec 2019 19:04:54 +0000 (20:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 13:05:49 +0000 (13:05 +0000)
commit79a735dc82ccba1063fbbc280ae06e35e32598b2
treecacdce01273d2733f35ab96ed38d788c8d9e75b1
parent9f498e5022055d851f9ac919fb49d620f2fbeeb4
clk: mmp2: Fix the order of timer mux parents

[ Upstream commit 8bea5ac0fbc5b2103f8779ddff216122e3c2e1ad ]

Determined empirically, no documentation is available.

The OLPC XO-1.75 laptop used parent 1, that one being VCTCXO/4 (65MHz), but
thought it's a VCTCXO/2 (130MHz). The mmp2 timer driver, not knowing
what is going on, ended up just dividing the rate as of
commit f36797ee4380 ("ARM: mmp/mmp2: dt: enable the clock")'

Link: https://lore.kernel.org/r/20191218190454.420358-3-lkundrak@v3.sk
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/mmp/clk-of-mmp2.c