aboutsummaryrefslogtreecommitdiff
path: root/include/drivers
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2019-10-08 11:13:06 +0200
committerYann Gautier <yann.gautier@st.com>2019-10-08 11:13:06 +0200
commit9d811b856ec1d10a1285aa2c43c3e1f3a411d54b (patch)
treeb82d07e8b695ee709ca3030847409d4c25e1677f /include/drivers
parent80003d86a60272ef82b8bca3c71ee358222b825b (diff)
downloadtrusted-firmware-a-9d811b856ec1d10a1285aa2c43c3e1f3a411d54b.tar.gz
delay: correct timeout_init_us()
The function has to use read_cntpct_el0() to update the counter, and not read_cntfrq_el0(). Change-Id: I9c676466e784c3122e9ffc2d87e66708797086e7 Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'include/drivers')
-rw-r--r--include/drivers/delay_timer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drivers/delay_timer.h b/include/drivers/delay_timer.h
index e5044cc6e1..20a5543570 100644
--- a/include/drivers/delay_timer.h
+++ b/include/drivers/delay_timer.h
@@ -36,7 +36,7 @@ static inline uint64_t timeout_init_us(uint32_t us)
{
uint64_t cnt = timeout_cnt_us2cnt(us);
- cnt += read_cntfrq_el0();
+ cnt += read_cntpct_el0();
return cnt;
}