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>
This commit is contained in:
parent
d9105846bc
commit
7978b8b725
|
@ -10,6 +10,7 @@ config SOC_QUALCOMM_SDM845
|
|||
select GENERIC_GPIO_LIB
|
||||
select GENERIC_UDELAY
|
||||
select HAVE_MONOTONIC_TIMER
|
||||
select ARM64_USE_ARCH_TIMER
|
||||
|
||||
if SOC_QUALCOMM_SDM845
|
||||
|
||||
|
|
|
@ -3,24 +3,24 @@ ifeq ($(CONFIG_SOC_QUALCOMM_SDM845),y)
|
|||
|
||||
################################################################################
|
||||
bootblock-y += bootblock.c
|
||||
bootblock-y += timer.c
|
||||
bootblock-y += spi.c
|
||||
bootblock-y += mmu.c
|
||||
bootblock-y += timer.c
|
||||
|
||||
################################################################################
|
||||
verstage-y += timer.c
|
||||
verstage-y += spi.c
|
||||
verstage-y += timer.c
|
||||
|
||||
################################################################################
|
||||
romstage-y += timer.c
|
||||
romstage-y += spi.c
|
||||
romstage-y += cbmem.c
|
||||
romstage-y += timer.c
|
||||
|
||||
################################################################################
|
||||
ramstage-y += soc.c
|
||||
ramstage-y += timer.c
|
||||
ramstage-y += spi.c
|
||||
ramstage-y += cbmem.c
|
||||
ramstage-y += 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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue