RTC test that can be found in linux/Documentation/rtc.txt generally hangs for malta boards. Actually it waits for alarm interrupt that doesn't occure. Cause of this - Date alarm setting is not supported in rtc.c driver API. Some chips (e.g. Intel82371 Southbridge RTC) supports this feature and uses control register D for setting day of month. Just write "don't care" (==0) value to this register. Signed-off-by: Pavel Kiryukhin <vksavl@xxxxxxxxx> --- diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c index f02ce63..1c8043a 100644 --- a/arch/mips/mips-boards/generic/time.c +++ b/arch/mips/mips-boards/generic/time.c @@ -170,6 +170,10 @@ void __init plat_time_init(void) /* Set Data mode - binary. */ CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); +#ifdef CONFIG_MIPS_MALTA + /*we don't support Date Alarm*/ + CMOS_WRITE(0, RTC_REG_D); +#endif est_freq = estimate_cpu_frequency(); printk("CPU frequency %d.%02d MHz\n", est_freq/1000000,