clk: ti: omap4: add clkctrl clock data

Add data for omap4 clkctrl clocks, and register it within the clkctrl
driver.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Tero Kristo
2017-02-09 11:34:23 +02:00
parent 70ab980fb1
commit 1c881b5a4f
3 changed files with 670 additions and 0 deletions

View File

@@ -415,6 +415,11 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
addrp = of_get_address(node, 0, NULL, NULL);
addr = (u32)of_translate_address(node, addrp);
#ifdef CONFIG_ARCH_OMAP4
if (of_machine_is_compatible("ti,omap4"))
data = omap4_clkctrl_data;
#endif
while (data->addr) {
if (addr == data->addr)
break;