|
@@ -18,6 +18,7 @@
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
*/
|
|
|
|
|
|
+#include <linux/clk-provider.h>
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/of_platform.h>
|
|
|
#include <mach/common.h>
|
|
@@ -27,7 +28,11 @@
|
|
|
|
|
|
static void __init genmai_add_standard_devices(void)
|
|
|
{
|
|
|
+#ifdef CONFIG_COMMON_CLK
|
|
|
+ of_clk_init(NULL);
|
|
|
+#else
|
|
|
r7s72100_clock_init();
|
|
|
+#endif
|
|
|
r7s72100_add_dt_devices();
|
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
|
|
}
|