Commit | Line | Data |
---|---|---|
c942fddf | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
4c66c920 MK |
2 | /* |
3 | * mxl111sf-gpio.h - driver for the MaxLinear MXL111SF | |
4 | * | |
08e10972 | 5 | * Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org> |
4c66c920 MK |
6 | */ |
7 | ||
8 | #ifndef _DVB_USB_MXL111SF_GPIO_H_ | |
9 | #define _DVB_USB_MXL111SF_GPIO_H_ | |
10 | ||
11 | #include "mxl111sf.h" | |
12 | ||
13 | int mxl111sf_set_gpio(struct mxl111sf_state *state, int gpio, int val); | |
14 | int mxl111sf_init_port_expander(struct mxl111sf_state *state); | |
15 | ||
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); | |
20 | ||
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, | |
32 | }; | |
33 | ||
34 | int mxl111sf_config_pin_mux_modes(struct mxl111sf_state *state, | |
35 | enum mxl111sf_mux_config pin_mux_config); | |
36 | ||
37 | #endif /* _DVB_USB_MXL111SF_GPIO_H_ */ |