From: "Ognjen Jovandić" <ognjen.jovandic.5@pionir.org>
To: x86@kernel.org
Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
dave.hansen@linux.intel.com, linux-kernel@vger.kernel.org
Subject: [PATCH] arch/i386: Fix the AMD Elan SC520 PIT clock source to 1.18920MHz
Date: Thu, 7 Jul 2022 20:27:12 +0200 [thread overview]
Message-ID: <fc2a1d53-afe6-d496-ddcd-8ee35102ccd8@pionir.org> (raw)
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 */
reply other threads:[~2022-07-07 18:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fc2a1d53-afe6-d496-ddcd-8ee35102ccd8@pionir.org \
--to=ognjen.jovandic.5@pionir.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®