mxl111sf-gpio.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * mxl111sf-gpio.h - driver for the MaxLinear MXL111SF
  4. *
  5. * Copyright (C) 2010-2014 Michael Krufky <[email protected]>
  6. */
  7. #ifndef _DVB_USB_MXL111SF_GPIO_H_
  8. #define _DVB_USB_MXL111SF_GPIO_H_
  9. #include "mxl111sf.h"
  10. int mxl111sf_set_gpio(struct mxl111sf_state *state, int gpio, int val);
  11. int mxl111sf_init_port_expander(struct mxl111sf_state *state);
  12. #define MXL111SF_GPIO_MOD_DVBT 0
  13. #define MXL111SF_GPIO_MOD_MH 1
  14. #define MXL111SF_GPIO_MOD_ATSC 2
  15. int mxl111sf_gpio_mode_switch(struct mxl111sf_state *state, unsigned int mode);
  16. enum mxl111sf_mux_config {
  17. PIN_MUX_DEFAULT = 0,
  18. PIN_MUX_TS_OUT_PARALLEL,
  19. PIN_MUX_TS_OUT_SERIAL,
  20. PIN_MUX_GPIO_MODE,
  21. PIN_MUX_TS_SERIAL_IN_MODE_0,
  22. PIN_MUX_TS_SERIAL_IN_MODE_1,
  23. PIN_MUX_TS_SPI_IN_MODE_0,
  24. PIN_MUX_TS_SPI_IN_MODE_1,
  25. PIN_MUX_TS_PARALLEL_IN,
  26. PIN_MUX_BT656_I2S_MODE,
  27. };
  28. int mxl111sf_config_pin_mux_modes(struct mxl111sf_state *state,
  29. enum mxl111sf_mux_config pin_mux_config);
  30. #endif /* _DVB_USB_MXL111SF_GPIO_H_ */