#include <linux/bits.h>
#include <linux/gpio/driver.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/pinctrl/pinmux.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include "../pinctrl-utils.h"
#include "pinctrl-bcm63xx.h"
#define BCM6318_NUM_GPIOS …
#define BCM6318_NUM_MUX …
#define BCM6318_MODE_REG …
#define BCM6318_MUX_REG …
#define BCM6328_MUX_MASK …
#define BCM6318_PAD_REG …
#define BCM6328_PAD_MASK …
struct bcm6318_function { … };
static const struct pinctrl_pin_desc bcm6318_pins[] = …;
static unsigned gpio0_pins[] = …;
static unsigned gpio1_pins[] = …;
static unsigned gpio2_pins[] = …;
static unsigned gpio3_pins[] = …;
static unsigned gpio4_pins[] = …;
static unsigned gpio5_pins[] = …;
static unsigned gpio6_pins[] = …;
static unsigned gpio7_pins[] = …;
static unsigned gpio8_pins[] = …;
static unsigned gpio9_pins[] = …;
static unsigned gpio10_pins[] = …;
static unsigned gpio11_pins[] = …;
static unsigned gpio12_pins[] = …;
static unsigned gpio13_pins[] = …;
static unsigned gpio14_pins[] = …;
static unsigned gpio15_pins[] = …;
static unsigned gpio16_pins[] = …;
static unsigned gpio17_pins[] = …;
static unsigned gpio18_pins[] = …;
static unsigned gpio19_pins[] = …;
static unsigned gpio20_pins[] = …;
static unsigned gpio21_pins[] = …;
static unsigned gpio22_pins[] = …;
static unsigned gpio23_pins[] = …;
static unsigned gpio24_pins[] = …;
static unsigned gpio25_pins[] = …;
static unsigned gpio26_pins[] = …;
static unsigned gpio27_pins[] = …;
static unsigned gpio28_pins[] = …;
static unsigned gpio29_pins[] = …;
static unsigned gpio30_pins[] = …;
static unsigned gpio31_pins[] = …;
static unsigned gpio32_pins[] = …;
static unsigned gpio33_pins[] = …;
static unsigned gpio34_pins[] = …;
static unsigned gpio35_pins[] = …;
static unsigned gpio36_pins[] = …;
static unsigned gpio37_pins[] = …;
static unsigned gpio38_pins[] = …;
static unsigned gpio39_pins[] = …;
static unsigned gpio40_pins[] = …;
static unsigned gpio41_pins[] = …;
static unsigned gpio42_pins[] = …;
static unsigned gpio43_pins[] = …;
static unsigned gpio44_pins[] = …;
static unsigned gpio45_pins[] = …;
static unsigned gpio46_pins[] = …;
static unsigned gpio47_pins[] = …;
static unsigned gpio48_pins[] = …;
static unsigned gpio49_pins[] = …;
static struct pingroup bcm6318_groups[] = …;
static const char * const led_groups[] = …;
static const char * const ephy0_spd_led_groups[] = …;
static const char * const ephy1_spd_led_groups[] = …;
static const char * const ephy2_spd_led_groups[] = …;
static const char * const ephy3_spd_led_groups[] = …;
static const char * const ephy0_act_led_groups[] = …;
static const char * const ephy1_act_led_groups[] = …;
static const char * const ephy2_act_led_groups[] = …;
static const char * const ephy3_act_led_groups[] = …;
static const char * const serial_led_data_groups[] = …;
static const char * const serial_led_clk_groups[] = …;
static const char * const inet_act_led_groups[] = …;
static const char * const inet_fail_led_groups[] = …;
static const char * const dsl_led_groups[] = …;
static const char * const post_fail_led_groups[] = …;
static const char * const wlan_wps_led_groups[] = …;
static const char * const usb_pwron_groups[] = …;
static const char * const usb_device_led_groups[] = …;
static const char * const usb_active_groups[] = …;
#define BCM6318_MODE_FUN(n) …
#define BCM6318_MUX_FUN(n, mux) …
static const struct bcm6318_function bcm6318_funcs[] = …;
static inline unsigned int bcm6318_mux_off(unsigned int pin)
{ … }
static inline unsigned int bcm6318_pad_off(unsigned int pin)
{ … }
static int bcm6318_pinctrl_get_group_count(struct pinctrl_dev *pctldev)
{ … }
static const char *bcm6318_pinctrl_get_group_name(struct pinctrl_dev *pctldev,
unsigned group)
{ … }
static int bcm6318_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
unsigned group, const unsigned **pins,
unsigned *npins)
{ … }
static int bcm6318_pinctrl_get_func_count(struct pinctrl_dev *pctldev)
{ … }
static const char *bcm6318_pinctrl_get_func_name(struct pinctrl_dev *pctldev,
unsigned selector)
{ … }
static int bcm6318_pinctrl_get_groups(struct pinctrl_dev *pctldev,
unsigned selector,
const char * const **groups,
unsigned * const num_groups)
{ … }
static inline void bcm6318_rmw_mux(struct bcm63xx_pinctrl *pc, unsigned pin,
unsigned int mode, unsigned int mux)
{ … }
static inline void bcm6318_set_pad(struct bcm63xx_pinctrl *pc, unsigned pin,
uint8_t val)
{ … }
static int bcm6318_pinctrl_set_mux(struct pinctrl_dev *pctldev,
unsigned selector, unsigned group)
{ … }
static int bcm6318_gpio_request_enable(struct pinctrl_dev *pctldev,
struct pinctrl_gpio_range *range,
unsigned offset)
{ … }
static const struct pinctrl_ops bcm6318_pctl_ops = …;
static const struct pinmux_ops bcm6318_pmx_ops = …;
static const struct bcm63xx_pinctrl_soc bcm6318_soc = …;
static int bcm6318_pinctrl_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id bcm6318_pinctrl_match[] = …;
static struct platform_driver bcm6318_pinctrl_driver = …;
builtin_platform_driver(…) …;