All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v5 0/2] timer: Add High Precision Event Timers (HPET) support
@ 2018-04-06 19:17 Ivan Gorinov
  2018-04-06 19:17 ` [U-Boot] [PATCH v5 1/2] x86: Add 64-bit memory-mapped I/O functions Ivan Gorinov
  2018-04-06 19:18 ` [U-Boot] [PATCH v5 2/2] timer: Add High Precision Event Timers (HPET) support Ivan Gorinov
  0 siblings, 2 replies; 10+ messages in thread
From: Ivan Gorinov @ 2018-04-06 19:17 UTC (permalink / raw)
  To: u-boot


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.

v5:
  Using new readq() and writeq() definitions.

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 (2):
  x86: Add 64-bit memory-mapped I/O functions
  timer: Add High Precision Event Timers (HPET) support

 arch/Kconfig               |   2 +-
 arch/x86/Kconfig           |  21 ++++++
 arch/x86/dts/hpet.dtsi     |   7 ++
 arch/x86/include/asm/io.h  |  16 ++--
 drivers/timer/Kconfig      |   9 +++
 drivers/timer/Makefile     |   1 +
 drivers/timer/hpet_timer.c | 179 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/timer/tsc_timer.c  |   8 ++
 8 files changed, 236 insertions(+), 7 deletions(-)
 create mode 100644 arch/x86/dts/hpet.dtsi
 create mode 100644 drivers/timer/hpet_timer.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-04-18 13:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 19:17 [U-Boot] [PATCH v5 0/2] timer: Add High Precision Event Timers (HPET) support Ivan Gorinov
2018-04-06 19:17 ` [U-Boot] [PATCH v5 1/2] x86: Add 64-bit memory-mapped I/O functions Ivan Gorinov
2018-04-06 19:40   ` Andy Shevchenko
2018-04-06 19:18 ` [U-Boot] [PATCH v5 2/2] timer: Add High Precision Event Timers (HPET) support Ivan Gorinov
2018-04-06 19:39   ` Andy Shevchenko
2018-04-09  1:22   ` Bin Meng
2018-04-12 16:42     ` Simon Glass
2018-04-16  5:06       ` Bin Meng
2018-04-17 15:10         ` Simon Glass
2018-04-18 13:34           ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.