]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mvebu: armada-38x: add support for missing clocks
authorRichard Genoud <richard.genoud@gmail.com>
Tue, 13 Mar 2018 15:27:02 +0000 (16:27 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 19 Mar 2018 20:53:57 +0000 (13:53 -0700)
commitca08f60ac0ba74ab9c751503d3ab704b5a164383
treeca9a2e06a4aba6f0020135295ae83f6436bf5644
parent33561cbfdaa858848df17771b4e3446ab71147c9
clk: mvebu: armada-38x: add support for missing clocks

Clearfog boards can come with a CPU clocked at 1600MHz (commercial)
or 1333MHz (industrial).

They have also some dip-switches to select a different clock (666, 800,
1066, 1200).

The funny thing is that the recovery button is on the MPP34 fq selector.
So, when booting an industrial board with this button down, the frequency
666MHz is selected (and the kernel didn't boot).

This patch add all the missing clocks.

The only mode I didn't test is 2GHz (uboot found 4294MHz instead :/ ).

Fixes: 5075a820b460 ("clk: mvebu: add clock support for Armada 380/385")
Cc: <stable@vger.kernel.org> # 3.16.x: 893f2cbc5a19: clk: mvebu: armada-38x: add support for 1866MHz variants
Cc: <stable@vger.kernel.org> # 3.16.x
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/armada-38x.c