mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 14:55:16 +00:00
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: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Nadav Haklai <nadavh@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
This commit is contained in:
parent
4acd900df6
commit
349df242ed
1 changed files with 0 additions and 8 deletions
|
@ -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)
|
||||||
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 |
|
||||||
|
|
Loading…
Add table
Reference in a new issue