diff options
author | Nitheesh Sekar <nsekar@codeaurora.org> | 2018-09-14 19:14:40 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-03-18 18:18:28 +0000 |
commit | 4da8d8d7fe9474c4f3e86bfa7aad44432b7690e8 (patch) | |
tree | 00b091380a8b375f428a56f666e3dc3227b4d31e | |
parent | 6bee0cee20fad2a3c68a9c54694807d9f2f48b0c (diff) | |
download | coreboot-4da8d8d7fe9474c4f3e86bfa7aad44432b7690e8.tar.xz |
qcs405: Add Timer support
Init frequency to 19.2 MHz
TEST=build
Change-Id: I566c7ff2b7085c9dd89ea74a08f3ba862feab2ab
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Nitheesh Sekar <nsekar@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/29952
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r-- | src/soc/qualcomm/qcs405/Kconfig | 1 | ||||
-rw-r--r-- | src/soc/qualcomm/qcs405/timer.c | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/soc/qualcomm/qcs405/Kconfig b/src/soc/qualcomm/qcs405/Kconfig index bcf8d62321..3e8c1ba5be 100644 --- a/src/soc/qualcomm/qcs405/Kconfig +++ b/src/soc/qualcomm/qcs405/Kconfig @@ -10,6 +10,7 @@ config SOC_QUALCOMM_QCS405 select GENERIC_GPIO_LIB select GENERIC_UDELAY select HAVE_MONOTONIC_TIMER + select ARM64_USE_ARCH_TIMER if SOC_QUALCOMM_QCS405 diff --git a/src/soc/qualcomm/qcs405/timer.c b/src/soc/qualcomm/qcs405/timer.c index 8fb84c855f..5df24301c1 100644 --- a/src/soc/qualcomm/qcs405/timer.c +++ b/src/soc/qualcomm/qcs405/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); } |