1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #include <linux/init.h>
- #include <linux/time.h>
- #include <linux/err.h>
- #include <linux/clk.h>
- #include <asm/time.h>
- #include <asm/mach-ar7/ar7.h>
- void __init plat_time_init(void)
- {
- struct clk *cpu_clk;
-
- ar7_init_clocks();
- cpu_clk = clk_get(NULL, "cpu");
- if (IS_ERR(cpu_clk)) {
- printk(KERN_ERR "unable to get cpu clock\n");
- return;
- }
- mips_hpt_frequency = clk_get_rate(cpu_clk) / 2;
- }
|