Commit 349df242 authored by Marcin Wojtas's avatar Marcin Wojtas Committed by Konstantin Porotchkin
Browse files

marvell: drivers: correct RTC init sequence



It turned out that resetting the RTC time register is not
necessary during initial configuration. Safely remove it
from the sequence.

Change-Id: Id2b9c7db44a8c8dbe88a7f8a21695b72a7fd78ee
Signed-off-by: default avatarMarcin Wojtas <mw@semihalf.com>
Reviewed-by: default avatarNadav Haklai <nadavh@marvell.com>
Reviewed-by: default avatarKostya Porotchkin <kostap@marvell.com>
parent 4acd900d
...@@ -341,10 +341,6 @@ static void cp110_rtc_init(uintptr_t base) ...@@ -341,10 +341,6 @@ static void cp110_rtc_init(uintptr_t base)
mmio_write_32(base + MVEBU_RTC_TEST_CONFIG_REG, 0); mmio_write_32(base + MVEBU_RTC_TEST_CONFIG_REG, 0);
mdelay(500); mdelay(500);
/* Reset Time register */
mmio_write_32(base + MVEBU_RTC_TIME_REG, 0);
udelay(62);
/* Reset Status register */ /* Reset Status register */
mmio_write_32(base + MVEBU_RTC_STATUS_REG, mmio_write_32(base + MVEBU_RTC_STATUS_REG,
(MVEBU_RTC_STATUS_ALARM1_MASK | (MVEBU_RTC_STATUS_ALARM1_MASK |
...@@ -361,10 +357,6 @@ static void cp110_rtc_init(uintptr_t base) ...@@ -361,10 +357,6 @@ static void cp110_rtc_init(uintptr_t base)
mmio_write_32(base + MVEBU_RTC_CCR_REG, mmio_write_32(base + MVEBU_RTC_CCR_REG,
MVEBU_RTC_NOMINAL_TIMING); MVEBU_RTC_NOMINAL_TIMING);
/* Reset Time register */
mmio_write_32(base + MVEBU_RTC_TIME_REG, 0);
udelay(10);
/* Reset Status register */ /* Reset Status register */
mmio_write_32(base + MVEBU_RTC_STATUS_REG, mmio_write_32(base + MVEBU_RTC_STATUS_REG,
(MVEBU_RTC_STATUS_ALARM1_MASK | (MVEBU_RTC_STATUS_ALARM1_MASK |
......
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