Skip to content

Consolidate ARM timer code

Rob Herring u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ARM: add common timer functionsarch/arm/lib/Makefile arch/arm/lib/time.c+60 -10 replies
2/9examples: enable gc-sections optionexamples/api/Makefile+1 -10 replies
3/9time: create default __udelaylib/time.c+21 -00 replies
4/9ARM: highbank: convert to common timer codearch/arm/cpu/armv7/highbank/timer.c include/configs/highbank.h+4 -830 replies
5/9ARM: mx25: convert to common timer codearch/arm/cpu/arm926ejs/mx25/timer.c include/configs/mx25pdk.h include/configs/tx25.h +1 more+8 -1171 reply
5/9ARM: mx25: convert to common timer code+0 -01 reply
5/9ARM: mx25: convert to common timer code+0 -00 replies
6/9ARM: mx27: convert to common timer codearch/arm/cpu/arm926ejs/mx27/timer.c include/configs/imx27lite-common.h+3 -1100 replies
7/9ARM: vexpress: convert to common timer codeboard/armltd/vexpress/vexpress_common.c include/configs/vexpress_common.h+4 -710 replies
8/9ARM: socfpga: convert to common timer codearch/arm/cpu/armv7/socfpga/timer.c include/configs/socfpga_cyclone5.h+2 -730 replies
9/9ARM: tegra: convert to common timer codearch/arm/cpu/tegra-common/Makefile arch/arm/cpu/tegra-common/timer.c include/configs/tegra-common.h+4 -960 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/9] Consolidate ARM timer code

From: Rob Herring <[email protected]>

Much of the ARM timer code is re-implemented for each platform yet it is all pretty much the same code.

This series introduces a common implementation of timer functions and simplifies the platform code down to 2 or 3 config defines. It is intended for platforms with 32-bit freerunning timers. I've converted a couple of platforms as an example, but there are many more still that can be converted. This probably could be extended to work with 16-bit timers as well.

I've compiled all ARM boards, but only tested on highbank.

Rob

Rob Herring (9):
ARM: add common timer functions
examples: enable gc-sections option
time: create default __udelay
ARM: highbank: convert to common timer code
ARM: mx25: convert to common timer code
ARM: mx27: convert to common timer code
ARM: vexpress: convert to common timer code
ARM: socfpga: convert to common timer code
ARM: tegra: convert to common timer code

 arch/arm/cpu/arm926ejs/mx25/timer.c     | 117 --------------------------------
 arch/arm/cpu/arm926ejs/mx27/timer.c     | 110 ------------------------------
 arch/arm/cpu/armv7/highbank/timer.c     |  83 ----------------------
 arch/arm/cpu/armv7/socfpga/timer.c      |  72 --------------------
 arch/arm/cpu/tegra-common/Makefile      |   2 +-
 arch/arm/cpu/tegra-common/timer.c       |  95 --------------------------
 arch/arm/lib/Makefile                   |   2 +-
 arch/arm/lib/time.c                     |  59 ++++++++++++++++
 board/armltd/vexpress/vexpress_common.c |  71 -------------------
 examples/api/Makefile                   |   2 +-
 include/configs/highbank.h              |   4 ++
 include/configs/imx27lite-common.h      |   3 +
 include/configs/mx25pdk.h               |   3 +
 include/configs/socfpga_cyclone5.h      |   3 +-
 include/configs/tegra-common.h          |   3 +
 include/configs/tx25.h                  |   2 +
 include/configs/vexpress_common.h       |   4 ++
 include/configs/zmx25.h                 |   3 +
 lib/time.c                              |  21 ++++++
 19 files changed, 107 insertions(+), 552 deletions(-)
 delete mode 100644 arch/arm/cpu/tegra-common/timer.c
 create mode 100644 arch/arm/lib/time.c
Signature · 1 line
1.8.1.2