Skip to content

dm: timer: x86: 64-bit counter support and tsc timer dm conversion

Thomas Chou u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 of 11 patches 0 repliesNew

3 of 11 patches are in this archive. The cover letter announces 11.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
5/11dm: timer: Support 64-bit counter+0 -03 replies
5/11dm: timer: Support 64-bit counter+0 -02 replies
5/11dm: timer: Support 64-bit counter+0 -03 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThomas ChouSimon Glass
SeriesA-b
5/11A-b
5/11A-b
5/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 00/11] dm: timer: x86: 64-bit counter support and tsc timer dm conversion

Hi Bin,

Quoted 81 lines · Bin Meng

This series enhances timer uclass driver to support 64-bit counter value, and convert tsc timer to driver model to be used by all x86 boards.

As a result of dm conversion, the TSC_CALIBRATION_BYPASS Kconfig option is no longer needed, and the TSC frequency can be specified in the board device tree.

This v2 is rebased on top of u-boot-dm/master, to resolve conflicts with Altera timer updates and the new Sandbox timer driver.

Changes in v3:
- Update commit message to reflect the v2 changes (ie: there is no "counter-64bit" property)
- Really remove "counter-64bit" property from tsc_timer.dtsi

Changes in v2:
- Rebase on u-boot-dm/master
- Change 'Timer' to 'timer' in the sandbox timer Kconfig
- New patch to use device tree to pass the clock frequency
- Do not use "counter-64bit" property, instead create an inline function for 32-bit timer driver to construct a 64-bit timer value.
- Remove "counter-64bit" property

Bin Meng (11):
dm: timer: Fix several nits
dm: timer: Implement pre_probe()
timer: altera: Remove the codes to get clock frequency
timer: sandbox: Use device tree to pass the clock frequency
dm: timer: Support 64-bit counter
x86: Reomve MIN_PORT80_KCLOCKS_DELAY
x86: tsc: Use notrace from <linux/compiler.h>
x86: tsc: Add driver model timer support
x86: Convert to use driver model timer
x86: tsc: Remove legacy timer codes
x86: tsc: Move tsc_timer.c to drivers/timer

  arch/sandbox/dts/sandbox.dts                |   1 +
  arch/x86/Kconfig                            |  20 ------
  arch/x86/cpu/baytrail/valleyview.c          |   3 -
  arch/x86/cpu/coreboot/timestamp.c           |  22 ------
  arch/x86/cpu/cpu.c                          |  18 -----
  arch/x86/cpu/efi/efi.c                      |   4 --
  arch/x86/cpu/ivybridge/cpu.c                |   1 -
  arch/x86/cpu/qemu/Kconfig                   |   1 -
  arch/x86/cpu/qemu/qemu.c                    |   3 -
  arch/x86/cpu/quark/Kconfig                  |   5 --
  arch/x86/cpu/quark/quark.c                  |   3 -
  arch/x86/cpu/queensbay/tnc.c                |   3 -
  arch/x86/dts/bayleybay.dts                  |   1 +
  arch/x86/dts/broadwell_som-6896.dts         |   1 +
  arch/x86/dts/chromebook_link.dts            |   1 +
  arch/x86/dts/chromebox_panther.dts          |   1 +
  arch/x86/dts/crownbay.dts                   |   1 +
  arch/x86/dts/efi.dts                        |   5 ++
  arch/x86/dts/galileo.dts                    |   5 ++
  arch/x86/dts/minnowmax.dts                  |   1 +
  arch/x86/dts/qemu-x86_i440fx.dts            |   5 ++
  arch/x86/dts/qemu-x86_q35.dts               |   5 ++
  arch/x86/dts/tsc_timer.dtsi                 |   6 ++
  arch/x86/include/asm/global_data.h          |   3 -
  arch/x86/lib/Makefile                       |   1 -
  configs/bayleybay_defconfig                 |   1 +
  configs/chromebook_link_defconfig           |   2 +-
  configs/chromebox_panther_defconfig         |   2 +-
  configs/coreboot-x86_defconfig              |   3 +-
  configs/crownbay_defconfig                  |   1 +
  configs/efi-x86_defconfig                   |   2 +-
  configs/galileo_defconfig                   |   1 +
  configs/minnowmax_defconfig                 |   1 +
  configs/qemu-x86_defconfig                  |   1 +
  drivers/timer/Kconfig                       |  19 +++--
  drivers/timer/Makefile                      |   1 +
  drivers/timer/altera_timer.c                |  10 +--
  drivers/timer/sandbox_timer.c               |   6 +-
  drivers/timer/timer-uclass.c                |  19 +++--
  {arch/x86/lib => drivers/timer}/tsc_timer.c | 104 ++++++++++++++++------------
  include/configs/x86-common.h                |   2 -
  include/timer.h                             |  34 ++++++---
  lib/time.c                                  |   9 ++-
  43 files changed, 164 insertions(+), 174 deletions(-)
Quoted 3 lines

create mode 100644 arch/x86/dts/tsc_timer.dtsi rename {arch/x86/lib => drivers/timer}/tsc_timer.c (87%)

Thanks a lot. For the series,

Best regards,
Thomas