]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Malta: initialise the RTC at boot
authorPaul Burton <paul.burton@imgtec.com>
Mon, 2 Dec 2013 16:48:36 +0000 (16:48 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Jan 2014 12:02:35 +0000 (13:02 +0100)
commitd39d05e07d044b4d31d5e2a01f4a54121de9454f
treee894227ceae0a499542b8a7ca2b2b5b6f02267f7
parenta611016ce989f97148b24bbcd2f66921c5a0490a
MIPS: Malta: initialise the RTC at boot

The RTC is used on Malta to estimate the clock frequency of the CPU &
optionally the GIC. However the kernel previously did not initialise the
RTC, instead relying upon the bootloader having done so. In order to
minimise dependencies which the kernel has upon the bootloader this
patch causes the kernel to initialise the RTC itself prior to making use
of it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6184/
arch/mips/mti-malta/malta-time.c