From eb90ab9437ebb2dea77ebdf6c96488841ddbdd85 Mon Sep 17 00:00:00 2001 From: Paul Burton Date: Thu, 8 Sep 2016 15:51:52 +0100 Subject: hw/mips_gictimer: provide API for retrieving frequency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide a new function mips_gictimer_get_freq() which returns the frequency at which a GIC timer will count. This will be useful for boards which perform setup based upon this frequency. Signed-off-by: Paul Burton Reviewed-by: Leon Alrae Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yongbok Kim --- include/hw/timer/mips_gictimer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/timer/mips_gictimer.h') diff --git a/include/hw/timer/mips_gictimer.h b/include/hw/timer/mips_gictimer.h index c8bc5d2541..c7ca6c821d 100644 --- a/include/hw/timer/mips_gictimer.h +++ b/include/hw/timer/mips_gictimer.h @@ -31,6 +31,7 @@ struct MIPSGICTimerState { MIPSGICTimerCB *cb; }; +uint32_t mips_gictimer_get_freq(MIPSGICTimerState *gic); uint32_t mips_gictimer_get_sh_count(MIPSGICTimerState *gic); void mips_gictimer_store_sh_count(MIPSGICTimerState *gic, uint64_t count); uint32_t mips_gictimer_get_vp_compare(MIPSGICTimerState *gictimer, -- cgit 1.4.1