linux/drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  mxl111sf-gpio.c - driver for the MaxLinear MXL111SF
 *
 *  Copyright (C) 2010-2014 Michael Krufky <[email protected]>
 */

#include "mxl111sf-gpio.h"
#include "mxl111sf-i2c.h"
#include "mxl111sf.h"

/* ------------------------------------------------------------------------- */

#define MXL_GPIO_MUX_REG_0
#define MXL_GPIO_MUX_REG_1
#define MXL_GPIO_MUX_REG_2

#define MXL_GPIO_DIR_INPUT
#define MXL_GPIO_DIR_OUTPUT


static int mxl111sf_set_gpo_state(struct mxl111sf_state *state, u8 pin, u8 val)
{}

static int mxl111sf_get_gpi_state(struct mxl111sf_state *state, u8 pin, u8 *val)
{}

struct mxl_gpio_cfg {};

static int mxl111sf_config_gpio_pins(struct mxl111sf_state *state,
				     struct mxl_gpio_cfg *gpio_cfg)
{}

static int mxl111sf_hw_do_set_gpio(struct mxl111sf_state *state,
				   int gpio, int direction, int val)
{}

/* ------------------------------------------------------------------------- */

#define PIN_MUX_MPEG_MODE_MASK
#define PIN_MUX_MPEG_PAR_EN_MASK
#define PIN_MUX_MPEG_SER_EN_MASK
#define PIN_MUX_MPG_IN_MUX_MASK
#define PIN_MUX_BT656_ENABLE_MASK
#define PIN_MUX_I2S_ENABLE_MASK
#define PIN_MUX_SPI_MODE_MASK
#define PIN_MUX_MCLK_EN_CTRL_MASK
#define PIN_MUX_MPSYN_EN_CTRL_MASK
#define PIN_MUX_MDVAL_EN_CTRL_MASK
#define PIN_MUX_MPERR_EN_CTRL_MASK
#define PIN_MUX_MDAT_EN_0_MASK
#define PIN_MUX_MDAT_EN_1_MASK
#define PIN_MUX_MDAT_EN_2_MASK
#define PIN_MUX_MDAT_EN_3_MASK
#define PIN_MUX_MDAT_EN_4_MASK
#define PIN_MUX_MDAT_EN_5_MASK
#define PIN_MUX_MDAT_EN_6_MASK
#define PIN_MUX_MDAT_EN_7_MASK

int mxl111sf_config_pin_mux_modes(struct mxl111sf_state *state,
				  enum mxl111sf_mux_config pin_mux_config)
{}

/* ------------------------------------------------------------------------- */

static int mxl111sf_hw_set_gpio(struct mxl111sf_state *state, int gpio, int val)
{}

static int mxl111sf_hw_gpio_initialize(struct mxl111sf_state *state)
{}

#define PCA9534_I2C_ADDR
static int pca9534_set_gpio(struct mxl111sf_state *state, int gpio, int val)
{}

static int pca9534_init_port_expander(struct mxl111sf_state *state)
{}

int mxl111sf_set_gpio(struct mxl111sf_state *state, int gpio, int val)
{}

static int mxl111sf_probe_port_expander(struct mxl111sf_state *state)
{}

int mxl111sf_init_port_expander(struct mxl111sf_state *state)
{}

/* ------------------------------------------------------------------------ */

int mxl111sf_gpio_mode_switch(struct mxl111sf_state *state, unsigned int mode)
{}