|
@@ -15,6 +15,7 @@
|
|
* GNU General Public License for more details.
|
|
* GNU General Public License for more details.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#include <linux/clk-provider.h>
|
|
#include <linux/clk/renesas.h>
|
|
#include <linux/clk/renesas.h>
|
|
#include <linux/clocksource.h>
|
|
#include <linux/clocksource.h>
|
|
#include <linux/device.h>
|
|
#include <linux/device.h>
|
|
@@ -130,7 +131,15 @@ void __init rcar_gen2_timer_init(void)
|
|
iounmap(base);
|
|
iounmap(base);
|
|
#endif /* CONFIG_ARM_ARCH_TIMER */
|
|
#endif /* CONFIG_ARM_ARCH_TIMER */
|
|
|
|
|
|
- rcar_gen2_clocks_init(mode);
|
|
|
|
|
|
+ if (IS_ENABLED(CONFIG_ARCH_R8A7790) ||
|
|
|
|
+ IS_ENABLED(CONFIG_ARCH_R8A7791) ||
|
|
|
|
+ IS_ENABLED(CONFIG_ARCH_R8A7792) ||
|
|
|
|
+ IS_ENABLED(CONFIG_ARCH_R8A7793) ||
|
|
|
|
+ IS_ENABLED(CONFIG_ARCH_R8A7794))
|
|
|
|
+ rcar_gen2_clocks_init(mode);
|
|
|
|
+ else
|
|
|
|
+ of_clk_init(NULL);
|
|
|
|
+
|
|
clocksource_probe();
|
|
clocksource_probe();
|
|
}
|
|
}
|
|
|
|
|