On Mon, Jul 16, 2018 at 04:14:37PM +0100, Andre Przywara wrote: > The ARM arch timer features the CVAL register, which holds an absolute > value that is compared against the counter value. > But there is also the TVAL register, which is defined as (CVAL - counter), > and can be used to program or read relative timeouts. > > Add accessors for the TVAL register, to be able to read and write them > easily later. > > Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx> > --- > arm/timer.c | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>