MIPS: JZ4740: Call jz4740_clock_init earlier
Call jz4740_clock_init before any uses of jz4740_clock_bdata occur. This is in preparation for replacing uses of that struct with calls to clk_get_rate, which will allow the clocks to be migrated towards common clock framework & devicetree. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: linux-mips@linux-mips.org Cc: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com> Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/10148/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
这个提交包含在:
@@ -20,6 +20,7 @@
|
||||
#include <linux/clockchips.h>
|
||||
#include <linux/sched_clock.h>
|
||||
|
||||
#include <asm/mach-jz4740/clock.h>
|
||||
#include <asm/mach-jz4740/irq.h>
|
||||
#include <asm/mach-jz4740/timer.h>
|
||||
#include <asm/time.h>
|
||||
@@ -115,6 +116,7 @@ void __init plat_time_init(void)
|
||||
uint32_t clk_rate;
|
||||
uint16_t ctrl;
|
||||
|
||||
jz4740_clock_init();
|
||||
jz4740_timer_init();
|
||||
|
||||
clk_rate = jz4740_clock_bdata.ext_rate >> 4;
|
||||
|
在新工单中引用
屏蔽一个用户