linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arch/i386: Fix the AMD Elan SC520 PIT clock source to 1.18920MHz
@ 2022-07-07 18:27 Ognjen Jovandić
  0 siblings, 0 replies; only message in thread
From: Ognjen Jovandić @ 2022-07-07 18:27 UTC (permalink / raw)
  To: x86; +Cc: tglx, mingo, bp, dave.hansen, linux-kernel

From: Ognjen Jovandić <ognjen.jovandic.5@pionir.org>

x86/i386: Fix the AMD Elan SC520 PIT clock source to 1.18920MHz, which deviates from
standard PC/AT clones.
Signed-off-by: Ognjen Jovandić <ognjen.jovandic.5@pionir.org>
---
Changed PIT_TICK_RATE to 1189200ul which i found in Élan™SC520
Microcontroller User’s Manual Chapter 5 CLOCK GENERATION AND CONTROL.
Found problem while trying to port OpeWrt 21.04 to Soekris net4501.
--- a/arch/x86/include/asm/timex.h
+++ b/arch/x86/include/asm/timex.h
@@ -5,9 +5,19 @@
 #include <asm/processor.h>
 #include <asm/tsc.h>
 
+
+#ifdef CONFIG_MELAN
+
+#define CLOCK_TICK_RATE     1189200ul
+
+#else
+
 /* Assume we use the PIT time source for the clock tick */
 #define CLOCK_TICK_RATE		PIT_TICK_RATE
 
+#endif
+
+
 #define ARCH_HAS_READ_CURRENT_TIMER
 
 #endif /* _ASM_X86_TIMEX_H */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-07 18:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 18:27 [PATCH] arch/i386: Fix the AMD Elan SC520 PIT clock source to 1.18920MHz Ognjen Jovandić

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).