mbox series

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

Message ID 20200313224244.4502-1-nicolas.heemeryck@gmail.com
Headers show
Series timer: sti: mimic Linux declaration and usage | expand

Message

Nicolas Heemeryck March 13, 2020, 10:42 p.m. UTC
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(-)