From: Ivan Gorinov <ivan.gorinov@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4] timer: Add High Precision Event Timers (HPET) support
Date: Fri, 6 Apr 2018 10:37:44 -0700 [thread overview]
Message-ID: <cover.1523035915.git.ivan.gorinov@intel.com> (raw)
Add HPET driver as an alternative timer for x86 (default is TSC).
HPET counter has constant frequency and does not need calibration.
This change also makes TSC timer driver optional on x86.
New HPET driver can also be selected as the early timer on x86.
v4:
Using 64-bit pointer for main counter access.
v3:
Added early timer choice in x86-specific configuration.
v2:
Moved duplicated code to static functions.
Ivan Gorinov (1):
timer: Add High Precision Event Timers (HPET) support
arch/Kconfig | 2 +-
arch/x86/Kconfig | 21 ++++++
arch/x86/dts/hpet.dtsi | 7 ++
drivers/timer/Kconfig | 9 +++
drivers/timer/Makefile | 1 +
drivers/timer/hpet_timer.c | 181 +++++++++++++++++++++++++++++++++++++++++++++
drivers/timer/tsc_timer.c | 8 ++
7 files changed, 228 insertions(+), 1 deletion(-)
create mode 100644 arch/x86/dts/hpet.dtsi
create mode 100644 drivers/timer/hpet_timer.c
--
2.7.4
next reply other threads:[~2018-04-06 17:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 17:37 Ivan Gorinov [this message]
2018-04-06 17:38 ` [U-Boot] [PATCH v4] timer: Add High Precision Event Timers (HPET) support Ivan Gorinov
2018-04-06 17:56 ` Andy Shevchenko
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=cover.1523035915.git.ivan.gorinov@intel.com \
--to=ivan.gorinov@intel.com \
--cc=u-boot@lists.denx.de \
/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