Lines Matching +full:sysc +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0-only
3 * timer-ti-32k.c - OMAP2 32k Timer Support
15 * OMAP Dual-mode timer framework support by Timo Teras
19 * Copyright (C) 2004-2009 Texas Instruments, Inc.
22 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
24 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com
38 * higher resolution in free-running counter modes (e.g. 12 MHz xtal),
62 return (u64)readl_relaxed(ti->counter); in ti_32k_read_cycles()
70 .mask = CLOCKSOURCE_MASK(32),
86 clock = of_clk_get_by_name(np->parent, name); in ti_32k_timer_enable_clock()
89 if (PTR_ERR(clock) == -EINVAL && !strncmp("ick", name, 3)) in ti_32k_timer_enable_clock()
108 void __iomem *sysc = base + 4; in ti_32k_timer_module_init() local
110 if (!of_device_is_compatible(np->parent, "ti,sysc")) in ti_32k_timer_module_init()
118 * No need to tag the module disabled for ti-sysc probe. in ti_32k_timer_module_init()
120 writel_relaxed(0, sysc); in ti_32k_timer_module_init()
130 return -ENXIO; in ti_32k_timer_init()
143 * The 'SCHEME' bits(30-31) of the revision register is used to identify in ti_32k_timer_init()
164 TIMER_OF_DECLARE(ti_32k_timer, "ti,omap-counter32k",