coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
timer.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <bl_uapp/bl_syscall_public.h>
4
#include <
stdint.h
>
5
#include <timer.h>
6
7
void
timer_monotonic_get
(
struct
mono_time
*mt)
8
{
9
/* Chrono timer is based on a 25MHz clock */
10
uint64_t
clk;
11
12
svc_read_timer_val
(PSP_TIMER_TYPE_CHRONO, &clk);
13
14
mt->
microseconds
= clk / 25;
15
}
svc_read_timer_val
uint32_t svc_read_timer_val(enum psp_timer_type type, uint64_t *counter_value)
Definition:
svc.c:100
timer_monotonic_get
void timer_monotonic_get(struct mono_time *mt)
Definition:
timer.c:7
stdint.h
uint64_t
unsigned long long uint64_t
Definition:
stdint.h:17
mono_time
Definition:
timer.h:19
mono_time::microseconds
long microseconds
Definition:
timer.h:20
src
soc
amd
common
psp_verstage
timer.c
Generated by
1.9.1