From: 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> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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(-) -- 2.20.1