blob: 0fa4c7ad22866f4d9ded2e53600f3e65ad17925f [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Hans Verkuil1c1e45d2008-04-28 20:24:33 -03002/*
3 * cx18 gpio functions
4 *
5 * Derived from ivtv-gpio.h
6 *
7 * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
Andy Walls6afdeaf2010-05-23 18:53:35 -03008 * Copyright (C) 2008 Andy Walls <awalls@md.metrocast.net>
Hans Verkuil1c1e45d2008-04-28 20:24:33 -03009 */
10
11void cx18_gpio_init(struct cx18 *cx);
Andy Wallseefe1012009-02-21 18:42:49 -030012int cx18_gpio_register(struct cx18 *cx, u32 hw);
13
14enum cx18_gpio_reset_type {
15 CX18_GPIO_RESET_I2C = 0,
16 CX18_GPIO_RESET_Z8F0811 = 1,
17 CX18_GPIO_RESET_XC2028 = 2,
18};
19
Andy Walls02fa2722008-07-13 19:30:15 -030020void cx18_reset_ir_gpio(void *data);
Michael Krufkyd7cba042008-09-12 13:31:45 -030021int cx18_reset_tuner_gpio(void *dev, int component, int cmd, int value);