/* SPDX-License-Identifier: GPL-2.0 */1/*2* goldfish-timer clocksource3* Registers definition for the goldfish-timer device4*/56#ifndef _CLOCKSOURCE_TIMER_GOLDFISH_H7#define _CLOCKSOURCE_TIMER_GOLDFISH_H89/*10* TIMER_TIME_LOW get low bits of current time and update TIMER_TIME_HIGH11* TIMER_TIME_HIGH get high bits of time at last TIMER_TIME_LOW read12* TIMER_ALARM_LOW set low bits of alarm and activate it13* TIMER_ALARM_HIGH set high bits of next alarm14* TIMER_IRQ_ENABLED enable alarm interrupt15* TIMER_CLEAR_ALARM disarm an existing alarm16* TIMER_ALARM_STATUS alarm status (running or not)17* TIMER_CLEAR_INTERRUPT clear interrupt18*/19#define TIMER_TIME_LOW 0x0020#define TIMER_TIME_HIGH 0x0421#define TIMER_ALARM_LOW 0x0822#define TIMER_ALARM_HIGH 0x0c23#define TIMER_IRQ_ENABLED 0x1024#define TIMER_CLEAR_ALARM 0x1425#define TIMER_ALARM_STATUS 0x1826#define TIMER_CLEAR_INTERRUPT 0x1c2728extern int goldfish_timer_init(int irq, void __iomem *base);2930#endif /* _CLOCKSOURCE_TIMER_GOLDFISH_H */313233