linux/arch/mips/mti-malta
Maciej W. Rozycki 636221b86c MIPS: Malta: Remove RTC Data Mode bootstrap breakage
YAMON requires and enforces the RTC Data Mode (Register B, DM bit) to
binary, that is the bit is set every time the board goes through the
firmware bootstrap sequence.  Likewise its calendar manipulation commands
interpret or set the RTC registers unconditionally as binary, never
actually checking what the value of the DM bit is, under the (correct)
assumption that it has been previously set, to indicate the binary mode.

 A change to Linux a while ago however introduced a platform-specific
tweak that clears that bit and therefore forces the data mode to BCD.
This causes clock corruption and misinterpretation that has to be fixed up
by user-mode tools in system startup scripts as the initial clock is often
incorrect according to the BCD interpretation forced.

 This change removes the hack; a comment included refers to alarm code,
but even if it was broken at one point by requiring the BCD mode, it
should have been trivially corrected and even if not, given how rarely the
alarm feature is used, that was not really a reasonable justification to
break the system clock that is indeed used by virtually everything.  And
either way the alarm code has been since fixed anyway.

Signed-off-by: Maciej W. Rozycki <macro@codesourcery.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4336/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2012-09-14 17:54:33 +02:00
..
Makefile MIPS: Malta: Migrate to new platform makefile style. 2010-08-05 13:25:50 +01:00
malta-amon.c MIPS: CMP: Fix memory barriers for correct operation of amon_cpu_start 2009-11-02 12:00:05 +01:00
malta-cmdline.c
malta-console.c
malta-display.c
malta-init.c Disintegrate asm/system.h for MIPS 2012-03-28 18:30:02 +01:00
malta-int.c Disintegrate asm/system.h for MIPS 2012-03-28 18:30:02 +01:00
malta-memory.c tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
malta-pci.c MIPS: PCI: Move fixups from __init to __devinit. 2012-07-19 11:27:23 +02:00
malta-platform.c MIPS: Malta: Remove RTC Data Mode bootstrap breakage 2012-09-14 17:54:33 +02:00
malta-reset.c MIPS: Malta: Convert reset initialization to initcall. 2009-09-17 20:07:43 +02:00
malta-setup.c mips: mark const init data with __initconst instead of __initdata 2012-07-19 11:23:43 +02:00
malta-smtc.c MIPS: Malta SMTC: Fix build. 2011-07-20 23:12:10 +01:00
malta-time.c Disintegrate asm/system.h for MIPS 2012-03-28 18:30:02 +01:00
Platform MIPS: Malta: Migrate to new platform makefile style. 2010-08-05 13:25:50 +01:00