| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] disable date alarm for malta rtc. |
| From: | "Pavel Kiryukhin" <vksavl@gmail.com> |
| Date: | Wed, 28 Nov 2007 18:17:03 +0300 |
| Cc: | vksavl@gmail.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=LI9boRHSkwvsjEuyhEMmC6SDbF5MmAMnUhFcWoeo3ik=; b=er5F0X+4NN1bsCQcjVpI7NDcwTgdLbzWEdwCHijjA0oS5uERH+1Z56B9+cARpNelwHtE7VUoHd4ER+xEAd3vYEVpd/T7ySnC1wWOGI82S5XEZi9/W6VU7LArnfkCY1u38LzPA7BQBhy8yHbiEp48d5zJQUIrvAxnnE9TFiTdwvQ= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=JBKeviMqF3+Min/I55pFFDv1ovxTJR0S6I4clL7QI1F7HWQXQHbW8n8U6u0Owll+SjmzrbqX3M93i8Uk84MdknGfSwONDeLrJGkbkBMAWdHBM7IH8+5KANPvlwbohC0+9tu1xryH6tkWZYa0pEDYvYfWuN+iIfZ12OLnDZ9oBw0= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
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@gmail.com>
---
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,
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] IP28: added cache barrier to assembly routines, Ralf Baechle |
|---|---|
| Next by Date: | git problem, Thomas Koeller |
| Previous by Thread: | [UPDATED PATCH] SGIWD93: use cached memory access to make driver work on IP28, Thomas Bogendoerfer |
| Next by Thread: | git problem, Thomas Koeller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |