Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / media / usb / dvb-usb-v2 / mxl111sf-gpio.h
blob31a233a202ed3d5d7a29de63395fa525c8df5fbb
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * mxl111sf-gpio.h - driver for the MaxLinear MXL111SF
5 * Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org>
6 */
8 #ifndef _DVB_USB_MXL111SF_GPIO_H_
9 #define _DVB_USB_MXL111SF_GPIO_H_
11 #include "mxl111sf.h"
13 int mxl111sf_set_gpio(struct mxl111sf_state *state, int gpio, int val);
14 int mxl111sf_init_port_expander(struct mxl111sf_state *state);
16 #define MXL111SF_GPIO_MOD_DVBT 0
17 #define MXL111SF_GPIO_MOD_MH 1
18 #define MXL111SF_GPIO_MOD_ATSC 2
19 int mxl111sf_gpio_mode_switch(struct mxl111sf_state *state, unsigned int mode);
21 enum mxl111sf_mux_config {
22 PIN_MUX_DEFAULT = 0,
23 PIN_MUX_TS_OUT_PARALLEL,
24 PIN_MUX_TS_OUT_SERIAL,
25 PIN_MUX_GPIO_MODE,
26 PIN_MUX_TS_SERIAL_IN_MODE_0,
27 PIN_MUX_TS_SERIAL_IN_MODE_1,
28 PIN_MUX_TS_SPI_IN_MODE_0,
29 PIN_MUX_TS_SPI_IN_MODE_1,
30 PIN_MUX_TS_PARALLEL_IN,
31 PIN_MUX_BT656_I2S_MODE,
34 int mxl111sf_config_pin_mux_modes(struct mxl111sf_state *state,
35 enum mxl111sf_mux_config pin_mux_config);
37 #endif /* _DVB_USB_MXL111SF_GPIO_H_ */