diff options
author | T Michael Turney <mturney@codeaurora.org> | 2018-04-24 10:21:45 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2018-05-01 23:33:45 +0000 |
commit | 7978b8b725c421679d0f87128f1e6277c4edda4b (patch) | |
tree | 515378066ccb6032782d378d944ff2e2038a7c37 /src/soc/qualcomm/sdm845/timer.c | |
parent | d9105846bc550b5240ad5bcc56f12202412d6cfe (diff) |
sdm845: Add Timer support
Frequency set to 19.2 MHz
TEST=build
Change-Id: I56e57156df8a74cf629f7ada86cf5a5fcd5ad3c4
Signed-off-by: T Michael Turney <mturney@codeaurora.org>
Reviewed-on: https://review.coreboot.org/25202
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/soc/qualcomm/sdm845/timer.c')
-rw-r--r-- | src/soc/qualcomm/sdm845/timer.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/soc/qualcomm/sdm845/timer.c b/src/soc/qualcomm/sdm845/timer.c index 8fb84c855f..5df24301c1 100644 --- a/src/soc/qualcomm/sdm845/timer.c +++ b/src/soc/qualcomm/sdm845/timer.c @@ -13,15 +13,11 @@ * GNU General Public License for more details. */ -#include <timer.h> #include <delay.h> - -void timer_monotonic_get(struct mono_time *mt) -{ - -} +#include <arch/lib_helpers.h> +#include <commonlib/helpers.h> void init_timer(void) { - + raw_write_cntfrq_el0(19200*KHz); } |