If usec >= 224000 usec, then:
usec * GPT_FREQ_KHZ = 224000 * 19200 >= 0x100590000,
which is a 33 bits value
To fix this usec is typecasted to 64 bit
(unsigned long long)usec * GPT_FREQ_KHZ
Change-Id: Ib1642d39b0581d2c04c62e415a1fd2dfed47fff1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
(cherry picked from commit 72d8ec613f)
get_ticks() will return the timer counter value.
get_tbclk() will return the timer frequency.
Change-Id: Ib698f1c1d58403ae22381b6de8c6518beb4c34cf
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
The logic used to calculate tick count in
_udelay() was always giving Zero. Updated
the logic to make it work across QCA boards.
Change-Id: Iebc5905003ad99e66b299de3beabb80ce40ce710
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
Added ipq806x timer information to common timer driver.
Updated qcom timer comon driver for ipq806x support.
Change-Id: I1a28ef362bc4161af38d1065b3c4b848ef4ad0d1
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
Fixed warnings for both ipq807x and ipq40xx
builds.
Change-Id: I69accebf525ee52f470335a14474378f5e7f65b0
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
GCNT is already enabled by SBL, hence this could be avoided
in u-boot.
Change-Id: I207f0085f015ea7c5e80d8d20c0af95e498a9565
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
changing timer load value to 64 bit data type
Change-Id: I09a35980e5ac15fdfdae3896e7f04ef87b403894
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>