Lines Matching refs:hwclock
481 struct device_node *cpuid = NULL, *hwclock = NULL; in g5_pm72_cpufreq_init() local
501 for_each_node_by_name(hwclock, "i2c-hwclock") { in g5_pm72_cpufreq_init()
502 const char *loc = of_get_property(hwclock, in g5_pm72_cpufreq_init()
508 if (!of_get_property(hwclock, "platform-get-frequency", NULL)) in g5_pm72_cpufreq_init()
512 if (hwclock == NULL) { in g5_pm72_cpufreq_init()
518 DBG("cpufreq: i2c clock chip found: %pOF\n", hwclock); in g5_pm72_cpufreq_init()
522 pmf_find_function(hwclock, "get-frequency"); in g5_pm72_cpufreq_init()
524 pmf_find_function(hwclock, "set-frequency-high"); in g5_pm72_cpufreq_init()
526 pmf_find_function(hwclock, "set-frequency-low"); in g5_pm72_cpufreq_init()
528 pmf_find_function(hwclock, "slewing-done"); in g5_pm72_cpufreq_init()
530 pmf_find_function(hwclock, "set-voltage-high-0"); in g5_pm72_cpufreq_init()
532 pmf_find_function(hwclock, "set-voltage-low-0"); in g5_pm72_cpufreq_init()
534 pmf_find_function(hwclock, "set-voltage-high-1"); in g5_pm72_cpufreq_init()
536 pmf_find_function(hwclock, "set-voltage-low-1"); in g5_pm72_cpufreq_init()
640 of_node_put(hwclock); in g5_pm72_cpufreq_init()