public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ivan Gorinov <ivan.gorinov@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 0/2] timer: Add High Precision Event Timers (HPET) support
Date: Thu, 12 Apr 2018 15:11:58 -0700	[thread overview]
Message-ID: <cover.1523570597.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.

v6:
    Added TSC-specific timer functions to use instead of early timer
    in the code that specifically needs TSC.

v5:
    Using readq() and writeq() for main counter access.

v3:
    Added early timer choice in x86 Kconfig.

Ivan Gorinov (2):
  x86: Add TSC-specific timer functions
  timer: Add High Precision Event Timers (HPET) support

 arch/Kconfig                      |   1 +
 arch/x86/Kconfig                  |  21 ++++
 arch/x86/cpu/coreboot/timestamp.c |   2 +-
 arch/x86/cpu/quark/mrc_util.c     |  13 ++-
 arch/x86/dts/hpet.dtsi            |   7 ++
 arch/x86/include/asm/u-boot-x86.h |   2 +-
 common/Kconfig                    |   1 +
 drivers/timer/Kconfig             |   9 ++
 drivers/timer/Makefile            |   1 +
 drivers/timer/hpet_timer.c        | 209 ++++++++++++++++++++++++++++++++++++++
 drivers/timer/tsc_timer.c         |  39 +++++--
 11 files changed, 288 insertions(+), 17 deletions(-)
 create mode 100644 arch/x86/dts/hpet.dtsi
 create mode 100644 drivers/timer/hpet_timer.c

-- 
2.7.4

             reply	other threads:[~2018-04-12 22:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-12 22:11 Ivan Gorinov [this message]
2018-04-12 22:12 ` [U-Boot] [PATCH v6 1/2] x86: Add TSC-specific timer functions Ivan Gorinov
2018-04-20 12:25   ` Andy Shevchenko
2018-04-20 18:00     ` Ivan Gorinov
2018-04-23  8:22       ` Andy Shevchenko
2018-04-23  7:38   ` Bin Meng
2018-04-23  7:53     ` Bin Meng
2018-04-23 23:56     ` Ivan Gorinov
2018-04-24  8:41       ` Bin Meng
2018-04-26  3:42         ` Bin Meng
2018-04-30 23:13           ` Simon Glass
2018-04-12 22:12 ` [U-Boot] [PATCH v6 2/2] timer: Add High Precision Event Timers (HPET) support Ivan Gorinov

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.1523570597.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