]> git.karo-electronics.de Git - linux-beck.git/commit
rtc: rtc-sh: Support 4-digit year on SH7705/SH7710/SH7712.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 3 Aug 2007 05:19:58 +0000 (14:19 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 21 Sep 2007 02:57:47 +0000 (11:57 +0900)
commitad89f87a84040a57c4a78ca2759b364f72f423ab
treea34207175da4338cc8e4e7b7ea323193e199eb3c
parent7da3b8ef662af6252aa17c55cc0aa6d74cbf02e4
rtc: rtc-sh: Support 4-digit year on SH7705/SH7710/SH7712.

All SH-4 parts have a 4-digit year, while the SH-3 parts typically
only use a 2-digit one. The SH7705, SH7710, and SH7712 SH-3 parts
however opted to extend it to 4-digit and still look and act like
an SH-3 RTC in all other ways.

This adds a capability flag (RTC_CAP_4_DIGIT_YEAR) that these
corner-case CPU subtypes can set in their platform data and cleans
up some of the ifdef mess in the driver as a result.

Reported-by: Markus Brunner <super.firetwister@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh3/setup-sh7705.c
arch/sh/kernel/cpu/sh3/setup-sh7710.c
drivers/rtc/rtc-sh.c
include/asm-sh/rtc.h