aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2019-02-14 11:14:39 +0100
committerYann Gautier <yann.gautier@st.com>2019-02-14 11:20:23 +0100
commitdfdb057a179556a48e313d2c884af3f877530b7e (patch)
treee86b0d39662a9fef379a56fe6c1bfa1996d85e9f /include
parent6f4572bd7857122e65bd6d9bce9e39fc572d7c56 (diff)
downloadtrusted-firmware-a-dfdb057a179556a48e313d2c884af3f877530b7e.tar.gz
stm32mp1: use new functions to manage timeouts
Remove the previously use function: get_timer, and use new functions timeout_init_us and timeout_elapsed. Change-Id: I4e95b123648bff7ca91e40462a2a3ae24cfe1697 Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Nicolas LE BAYON <nicolas.le.bayon@st.com>
Diffstat (limited to 'include')
-rw-r--r--include/drivers/st/stm32mp1_clk.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/drivers/st/stm32mp1_clk.h b/include/drivers/st/stm32mp1_clk.h
index 11ff7bf247..3ba8909425 100644
--- a/include/drivers/st/stm32mp1_clk.h
+++ b/include/drivers/st/stm32mp1_clk.h
@@ -13,13 +13,4 @@ int stm32mp1_clk_probe(void);
int stm32mp1_clk_init(void);
void stm32mp1_stgen_increment(unsigned long long offset_in_ms);
-static inline uint32_t get_timer(uint32_t base)
-{
- if (base == 0U) {
- return (uint32_t)(~read_cntpct_el0());
- }
-
- return base - (uint32_t)(~read_cntpct_el0());
-}
-
#endif /* STM32MP1_CLK_H */