mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
9e7b83c221
commit
aa5de826af
|
@ -108,9 +108,20 @@ static const struct clk_name clk_names[] __initconst = {
|
|||
{ "lvds1", "lvds.1", "rcar-du-r8a7790" },
|
||||
};
|
||||
|
||||
/*
|
||||
* This is a really crude hack to work around core platform clock issues
|
||||
*/
|
||||
static const struct clk_name clk_enables[] __initconst = {
|
||||
{ "ether", NULL, "ee700000.ethernet" },
|
||||
{ "msiof1", NULL, "e6e10000.spi" },
|
||||
{ "qspi_mod", NULL, "e6b10000.spi" },
|
||||
{ "thermal", NULL, "e61f0000.thermal" },
|
||||
};
|
||||
|
||||
static void __init lager_add_standard_devices(void)
|
||||
{
|
||||
shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), false);
|
||||
shmobile_clk_workaround(clk_enables, ARRAY_SIZE(clk_enables), true);
|
||||
r8a7790_add_dt_devices();
|
||||
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue