| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH V2 04/16] MIPS: Loongson: Make Loongson-3 to use BCD format for RTC. |
| From: | Huacai Chen <chenhuacai@gmail.com> |
| Date: | Tue, 19 Jun 2012 14:50:12 +0800 |
| Cc: | linux-mips@linux-mips.org, Fuxin Zhang <zhangfx@lemote.com>, Zhangjin Wu <wuzhangjin@gmail.com>, Huacai Chen <chenhc@lemote.com>, Hongliang Tao <taohl@lemote.com>, Hua Yan <yanh@lemote.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=gq/HNgkjD5zgiDgKl7jxsfw2+xEw/5VYH6PnxXrZ72c=; b=to6XccPjrNxP+LF5SZlhPPfAY2TtWHEgiEI0rRHVxHbv/FkNd/Wajo4qiLimphyeLy v/rV9m4t+do2HaoG+k0Ygd1bMDB/6RYQvYssPsNStCQD6u11L9WwgSOuViSjWF0i5QCc HWUqc758y8Z+Eqn08DWjm3hDuuRSM+aWHQlvlxmdL2wtANbSiYACyKMerLHcn5ia1TfP XuhHm6dtJkR99w3/NyQAVjiKtvGjd5h4J6MLKSNWWjuyV804H0SFu2JJ3u5T2NQPf3Qq ++/hVOPZ1px1MuxxLCr5edfarZAXE38bo3XOeovosdlz0kJOZ1Fj5dyrR7SunmdevdD7 wN3g== |
| In-reply-to: | <1340088624-25550-1-git-send-email-chenhc@lemote.com> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1340088624-25550-1-git-send-email-chenhc@lemote.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Hongliang Tao <taohl@lemote.com>
Signed-off-by: Hua Yan <yanh@lemote.com>
---
arch/mips/include/asm/mach-loongson/mc146818rtc.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include/asm/mach-loongson/mc146818rtc.h
b/arch/mips/include/asm/mach-loongson/mc146818rtc.h
index ed7fe97..6b10159 100644
--- a/arch/mips/include/asm/mach-loongson/mc146818rtc.h
+++ b/arch/mips/include/asm/mach-loongson/mc146818rtc.h
@@ -27,7 +27,11 @@ static inline void CMOS_WRITE(unsigned char data, unsigned
long addr)
outb_p(data, RTC_PORT(1));
}
+#ifdef CONFIG_CPU_LOONGSON3
+#define RTC_ALWAYS_BCD 1
+#else
#define RTC_ALWAYS_BCD 0
+#endif
#ifndef mc146818_decode_year
#define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) +
1970)
--
1.7.7.3
|
| Previous by Date: | [PATCH V2 03/16] MIPS: Loongson 3: Add Lemote-3A machtypes definition., Huacai Chen |
|---|---|
| Next by Date: | [PATCH V2 05/16] MIPS: Loongson: Add UEFI-like firmware interface support., Huacai Chen |
| Previous by Thread: | Re: [PATCH V2 03/16] MIPS: Loongson 3: Add Lemote-3A machtypes definition., Huacai Chen |
| Next by Thread: | [PATCH V2 05/16] MIPS: Loongson: Add UEFI-like firmware interface support., Huacai Chen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |