s5j/timerisr: add missing initialization on RTC
authorHeesub Shin <heesub.shin@samsung.com>
Thu, 1 Jun 2017 02:18:44 +0000 (11:18 +0900)
committerShivam Garg <garg.shivam@samsung.com>
Mon, 18 Sep 2017 14:03:33 +0000 (23:03 +0900)
commitfa331559f189aaec90bd951ffcab65ccc69ad2d4
tree02fddbe8bbcf32e3927c80b0c166f7cb817a624b
parent29c8050c2cf2a5317d6588f78d544df67ceb57a0
s5j/timerisr: add missing initialization on RTC

The first stage bootloader is initializing RTCCON[7:4] to 0x4 before it
jumps to subsequent stages. This is no harm if we clear it while
initializing the RTC, but it is not cleared when CONFIG_RTC is not set
and causing OS timetick to be generated at 2048Hz. To avoid this issue,
we need to clear it always before enabling the timer isr.

Change-Id: Id27a079e35f5d0a93d6a6428117daa3d45b71a61
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/src/s5j/s5j_timerisr.c