linux_dsm_epyc7002/arch/mips/include/asm/mach-generic
Paul Burton ae7ce6b1e0 MIPS: generic: Set RTC_ALWAYS_BCD to 0
Drivers for the mc146818 RTC generally check control registers to
determine whether a value is encoded as binary or as a binary coded
decimal. Setting RTC_ALWAYS_BCD to 1 effectively bypasses these checks
and causes drivers to always expect binary coded decimal values,
regardless of control register values.

This does not seem like a sane default - defaulting to 0 allows the
drivers to check control registers to determine encoding type & allows
the driver to work generically with both binary & BCD encodings. Set
this in mach-generic/mc146818rtc.h such that the generic kernel, or
platforms which don't provide a custom mc146818rtc.h, can have an RTC
driver which works with both encodings.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16185/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-06-28 12:22:41 +02:00
..
cpu-feature-overrides.h MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
dma-coherence.h MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
floppy.h MIPS: Squash lines for simple wrapper functions 2016-10-04 16:13:57 +02:00
ide.h mips/ide: flush dcache also if icache does not snoop dcache 2014-01-24 22:39:56 +01:00
ioremap.h MIPS: Replace use of phys_t with phys_addr_t. 2014-11-24 22:47:31 +01:00
irq.h MIPS/IRQCHIP: Move irq_chip from arch/mips to drivers/irqchip. 2015-06-21 21:52:50 +02:00
kernel-entry-init.h MIPS: Fix misspellings in comments. 2016-04-03 12:32:09 +02:00
kmalloc.h dma-mapping: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN 2010-08-11 08:59:21 -07:00
mangle-port.h
mc146818rtc.h MIPS: generic: Set RTC_ALWAYS_BCD to 0 2017-06-28 12:22:41 +02:00
spaces.h MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0 2016-10-06 18:02:35 +02:00
topology.h
war.h MIPS: Create a common <asm/mach-generic/war.h> 2015-03-31 11:59:40 +02:00