From: "Pavel Kiryukhin" <vksavl@gmail.com>
To: linux-mips@linux-mips.org
Cc: vksavl@gmail.com
Subject: [PATCH] disable date alarm for malta rtc.
Date: Wed, 28 Nov 2007 18:17:03 +0300 [thread overview]
Message-ID: <73cd086a0711280717q6468b635wa75f3228350338f1@mail.gmail.com> (raw)
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,
reply other threads:[~2007-11-28 15:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=73cd086a0711280717q6468b635wa75f3228350338f1@mail.gmail.com \
--to=vksavl@gmail.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox