Lines Matching +full:gx6605s +full:- +full:timer
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
8 #include "timer-of.h"
33 ce->event_handler(ce); in gx6605s_timer_interrupt()
57 /* use reset to pause timer */ in gx6605s_timer_set_next_event()
61 writel_relaxed(ULONG_MAX - delta, base + TIMER_INI); in gx6605s_timer_set_next_event()
125 return clocksource_mmio_init(base + TIMER_VALUE, "gx6605s", in gx6605s_clksrc_init()
134 * The timer driver is for nationalchip gx6605s SOC and there are two in gx6605s_timer_init()
135 * same timer in gx6605s. We use one for clkevt and another for clksrc. in gx6605s_timer_init()
137 * The timer is mmio map to access, so we need give mmio address in dts. in gx6605s_timer_init()
139 * It provides a 32bit countup timer and interrupt will be caused by in gx6605s_timer_init()
140 * count-overflow. in gx6605s_timer_init()
141 * So we need set-next-event by ULONG_MAX - delta in TIMER_INI reg. in gx6605s_timer_init()
155 TIMER_OF_DECLARE(csky_gx6605s_timer, "csky,gx6605s-timer", gx6605s_timer_init);