Commit a15de032 authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP2+: Init both prm and prcm nodes early for clocks

We need to probe both prm and prcm nodes early for clocks
as they are needed by system timers.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5f7259a5
...@@ -569,10 +569,29 @@ static void pdata_quirks_check(struct pdata_init *quirks) ...@@ -569,10 +569,29 @@ static void pdata_quirks_check(struct pdata_init *quirks)
} }
} }
void __init pdata_quirks_init(const struct of_device_id *omap_dt_match_table) static const char * const pdata_quirks_init_nodes[] = {
"prcm",
"prm",
};
void __init
pdata_quirks_init_clocks(const struct of_device_id *omap_dt_match_table)
{ {
struct device_node *np; struct device_node *np;
int i;
for (i = 0; i < ARRAY_SIZE(pdata_quirks_init_nodes); i++) {
np = of_find_node_by_name(NULL, pdata_quirks_init_nodes[i]);
if (!np)
continue;
of_platform_populate(np, omap_dt_match_table,
omap_auxdata_lookup, NULL);
}
}
void __init pdata_quirks_init(const struct of_device_id *omap_dt_match_table)
{
/* /*
* We still need this for omap2420 and omap3 PM to work, others are * We still need this for omap2420 and omap3 PM to work, others are
* using drivers/misc/sram.c already. * using drivers/misc/sram.c already.
...@@ -585,13 +604,7 @@ void __init pdata_quirks_init(const struct of_device_id *omap_dt_match_table) ...@@ -585,13 +604,7 @@ void __init pdata_quirks_init(const struct of_device_id *omap_dt_match_table)
omap3_mcbsp_init(); omap3_mcbsp_init();
pdata_quirks_check(auxdata_quirks); pdata_quirks_check(auxdata_quirks);
/* Populate always-on PRCM in l4_wkup to probe l4_wkup */ pdata_quirks_init_clocks(omap_dt_match_table);
np = of_find_node_by_name(NULL, "prcm");
if (!np)
np = of_find_node_by_name(NULL, "prm");
if (np)
of_platform_populate(np, omap_dt_match_table,
omap_auxdata_lookup, NULL);
of_platform_populate(NULL, omap_dt_match_table, of_platform_populate(NULL, omap_dt_match_table,
omap_auxdata_lookup, NULL); omap_auxdata_lookup, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment