Lines Matching +full:interrupt +full:- +full:clk
1 // SPDX-License-Identifier: GPL-2.0+
10 * "AS-IS" and at no charge.
21 #include <linux/clk.h>
40 #define REG_OWER 0x0018 /* OS timer Watch-dog Enable Reg. */
41 #define REG_OIER 0x001C /* OS timer Interrupt Enable Reg. */
50 #define OIER_E3 (1 << 3) /* Interrupt enable channel 3 */
51 #define OIER_E2 (1 << 2) /* Interrupt enable channel 2 */
52 #define OIER_E1 (1 << 1) /* Interrupt enable channel 1 */
53 #define OIER_E0 (1 << 0) /* Interrupt enable channel 0 */
77 return -EBUSY; in sa1100dog_open()
90 * Previous comments suggested that turning off the interrupt by
96 pr_crit("Device closed - timer will not stop\n"); in sa1100dog_release()
120 int ret = -ENOTTY; in sa1100dog_ioctl()
128 sizeof(ident)) ? -EFAULT : 0; in sa1100dog_ioctl()
150 ret = -EINVAL; in sa1100dog_ioctl()
182 static struct clk *clk; variable
192 return -ENXIO; in sa1100dog_probe()
193 reg_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in sa1100dog_probe()
198 clk = clk_get(NULL, "OSTIMER0"); in sa1100dog_probe()
199 if (IS_ERR(clk)) { in sa1100dog_probe()
201 (int) PTR_ERR(clk)); in sa1100dog_probe()
202 return PTR_ERR(clk); in sa1100dog_probe()
205 ret = clk_prepare_enable(clk); in sa1100dog_probe()
212 oscr_freq = clk_get_rate(clk); in sa1100dog_probe()
214 platform_data = pdev->dev.platform_data; in sa1100dog_probe()
226 clk_disable_unprepare(clk); in sa1100dog_probe()
228 clk_put(clk); in sa1100dog_probe()
235 clk_disable_unprepare(clk); in sa1100dog_remove()
236 clk_put(clk); in sa1100dog_remove()