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>
This commit is contained in:
Nitheesh Sekar
2018-09-14 19:14:40 +05:30
committed by Patrick Georgi
parent 6bee0cee20
commit 4da8d8d7fe
2 changed files with 4 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ config SOC_QUALCOMM_QCS405
select GENERIC_GPIO_LIB select GENERIC_GPIO_LIB
select GENERIC_UDELAY select GENERIC_UDELAY
select HAVE_MONOTONIC_TIMER select HAVE_MONOTONIC_TIMER
select ARM64_USE_ARCH_TIMER
if SOC_QUALCOMM_QCS405 if SOC_QUALCOMM_QCS405

View File

@@ -13,15 +13,11 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <timer.h>
#include <delay.h> #include <delay.h>
#include <arch/lib_helpers.h>
void timer_monotonic_get(struct mono_time *mt) #include <commonlib/helpers.h>
{
}
void init_timer(void) void init_timer(void)
{ {
raw_write_cntfrq_el0(19200*KHz);
} }