From patchwork Fri Mar 13 22:42:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Heemeryck X-Patchwork-Id: 243688 List-Id: U-Boot discussion From: nicolas.heemeryck at gmail.com (Nicolas Heemeryck) Date: Fri, 13 Mar 2020 23:42:42 +0100 Subject: [PATCH v2 0/2] timer: sti: mimic Linux declaration and usage In-Reply-To: <6f1bcf09-4a30-99a5-bade-400d222502fd@st.com> References: <6f1bcf09-4a30-99a5-bade-400d222502fd@st.com> Message-ID: <20200313224244.4502-1-nicolas.heemeryck@gmail.com> 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 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(-)