[PATCH v2 0/2] timer: sti: mimic Linux declaration and usage

Nicolas Heemeryck nicolas.heemeryck at gmail.com
Fri Mar 13 23:42:42 CET 2020

This series update the sti-timer for cortex-a9 CPU (arm global timer) to mimic
the behavior presents in Linux.
Therefor, the same device tree node can be use for U-Boot and Linux.

Changes in v2:

Since some boards do not necessary have a clock driver, fall back on
CONFIG_SYS_HZ_CLOCK. This is similar to what we can find on timer-uclass
timer_pre_probe function.

Cc: Patrice Chotard <patrice.chotard at st.com>

Nicolas Heemeryck (2):
  timer: sti: convert to livetree
  timer: sti: use clk API to get timer clock rate

 drivers/timer/sti-timer.c | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)


More information about the U-Boot mailing list