clk-814x.c 940 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * This program is free software; you can redistribute it and/or
  3. * modify it under the terms of the GNU General Public License as
  4. * published by the Free Software Foundation version 2.
  5. */
  6. #include <linux/kernel.h>
  7. #include <linux/clk-provider.h>
  8. #include <linux/clk/ti.h>
  9. #include "clock.h"
  10. static struct ti_dt_clk dm814_clks[] = {
  11. DT_CLK(NULL, "devosc_ck", "devosc_ck"),
  12. DT_CLK(NULL, "mpu_ck", "mpu_ck"),
  13. DT_CLK(NULL, "sysclk4_ck", "sysclk4_ck"),
  14. DT_CLK(NULL, "sysclk6_ck", "sysclk6_ck"),
  15. DT_CLK(NULL, "sysclk10_ck", "sysclk10_ck"),
  16. DT_CLK(NULL, "sysclk18_ck", "sysclk18_ck"),
  17. DT_CLK(NULL, "timer_sys_ck", "devosc_ck"),
  18. DT_CLK(NULL, "cpsw_125mhz_gclk", "cpsw_125mhz_gclk"),
  19. DT_CLK(NULL, "cpsw_cpts_rft_clk", "cpsw_cpts_rft_clk"),
  20. { .node_name = NULL },
  21. };
  22. int __init dm814x_dt_clk_init(void)
  23. {
  24. ti_dt_clocks_register(dm814_clks);
  25. omap2_clk_disable_autoidle_all();
  26. omap2_clk_enable_init_clocks(NULL, 0);
  27. return 0;
  28. }