OSDN Git Service

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:03:41 +0000 (13:03 +0000)
commitc69bc89b8deeadc4f9cf0c173899ab9769fb11ba
tree3c84cacccb7f981043236a7775c6668d80cf6103
parent0406d59c89c88f6e636ac2c70fc36adf893f0c18
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