]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: pic32mzda: fix getting timer clock rate.
authorPurna Chandra Mandal <purna.mandal@microchip.com>
Tue, 17 May 2016 05:05:52 +0000 (10:35 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 17 May 2016 09:22:51 +0000 (11:22 +0200)
commitaa5455d9cf2c209e04626afe9dbf5b5e3885a2f6
tree534e6d4b5d3a5689d7320742ae1e3036f10d07e7
parentf56a39eec0dc7aca4a6561552941cb8a920d0ede
MIPS: pic32mzda: fix getting timer clock rate.

PIC32 clock driver is now implemented as platform driver instead of
as part of of_clk_init(). It meants all the clock modules are available
quite late in the boot sequence. So request for CPU clock by clk_get_sys()
and clk_get_rate() to find c0_timer rate fails.

To fix this use PIC32 specific early clock functions implemented for early
console support.

Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Joshua Henderson <digitalpeer@digitalpeer.com>
Patchwork: https://patchwork.linux-mips.org/patch/13262/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pic32/pic32mzda/time.c