1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * mxl111sf-gpio.h - driver for the MaxLinear MXL111SF
5 * Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org>
8 #ifndef _DVB_USB_MXL111SF_GPIO_H_
9 #define _DVB_USB_MXL111SF_GPIO_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 {
23 PIN_MUX_TS_OUT_PARALLEL,
24 PIN_MUX_TS_OUT_SERIAL,
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_ */