ARM: shmobile: lager-reference: Work around core clock issues
authorSimon Horman <horms+renesas@verge.net.au>
Mon, 17 Mar 2014 02:18:56 +0000 (11:18 +0900)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:14:56 +0000 (11:14 +0100)
commit8983c190d925cbc6f8bc3fc81e650cb3724a2bae
tree73fa9d3850e0c2c87df97a3fd3784ce531dadfb2
parent12e66b9e61c28d2b54eef08d35ca1159e6ec133d
ARM: shmobile: lager-reference: Work around core clock issues

Due to issues with runtime PM clock management, clocks not explicitly
managed by their drivers may not be enabled at all, or be inadvertently
disabled by the clk_disable_unused() late initcall.

Until this is fixed, add a temporary workaround, calling
shmobile_clk_workaround() with enable == true.

For now this enables the clocks for: ether, msiof1, qspi_mod, and
thermal. More clocks can be added if needed.

Based on work for the koelsch board by Geert Uytterhoeven.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
(cherry picked from commit aa5de826afe747c353162bbc116c63ab5335f91c)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager-reference.c