|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv6 37/37] plat/common: Get arch_timer clock frequency from DT for Arm
Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> On 14.09.2018 09:57, Wei Chen wrote: On a few platforms the frequency is not configured correctly by the firmware. A property in the DT (clock-frequency) has been introduced to workaround those firmware. So, we will try to get clock-frequency from DT first, if failed we will read the register directly. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> --- plat/common/arm/time.c | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/plat/common/arm/time.c b/plat/common/arm/time.c index 8457511..c309b03 100644 --- a/plat/common/arm/time.c +++ b/plat/common/arm/time.c @@ -32,6 +32,7 @@ * THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY. */ #include <stdlib.h> +#include <libfdt.h> #include <uk/assert.h> #include <uk/plat/time.h> #include <uk/plat/irq.h> @@ -40,6 +41,7 @@static uint64_t boot_ticks;static uint32_t counter_freq; +extern void *_libkvmplat_dtb;/* _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |