Commit 991f8b6a authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle

[MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init()

Moved vr41xx_calculate_clock_frequency() to plat_time_init().
This function relates to the timer function.
Signed-off-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c9662341
...@@ -40,6 +40,8 @@ void __init plat_time_init(void) ...@@ -40,6 +40,8 @@ void __init plat_time_init(void)
{ {
unsigned long tclock; unsigned long tclock;
vr41xx_calculate_clock_frequency();
tclock = vr41xx_get_tclock_frequency(); tclock = vr41xx_get_tclock_frequency();
if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 || if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 ||
current_cpu_data.processor_id == PRID_VR4131_REV2_1) current_cpu_data.processor_id == PRID_VR4131_REV2_1)
...@@ -50,8 +52,6 @@ void __init plat_time_init(void) ...@@ -50,8 +52,6 @@ void __init plat_time_init(void)
void __init plat_mem_setup(void) void __init plat_mem_setup(void)
{ {
vr41xx_calculate_clock_frequency();
iomem_resource_init(); iomem_resource_init();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment