linux/drivers/pinctrl/bcm/pinctrl-bcm6328.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Driver for BCM6328 GPIO unit (pinctrl + GPIO)
 *
 * Copyright (C) 2021 Álvaro Fernández Rojas <[email protected]>
 * Copyright (C) 2016 Jonas Gorski <[email protected]>
 */

#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 BCM6328_NUM_GPIOS

#define BCM6328_MODE_REG
#define BCM6328_MUX_HI_REG
#define BCM6328_MUX_LO_REG
#define BCM6328_MUX_OTHER_REG
#define BCM6328_MUX_MASK

struct bcm6328_function {};

static const unsigned int bcm6328_mux[] =;

static const struct pinctrl_pin_desc bcm6328_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 hsspi_cs1_pins[] =;
static unsigned usb_port1_pins[] =;

static struct pingroup bcm6328_groups[] =;

/* GPIO_MODE */
static const char * const led_groups[] =;

/* PINMUX_SEL */
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 pcie_clkreq_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 hsspi_cs1_groups[] =;

static const char * const usb_host_port_groups[] =;

static const char * const usb_device_port_groups[] =;

#define BCM6328_MODE_FUN(n)

#define BCM6328_MUX_FUN(n, mux)

static const struct bcm6328_function bcm6328_funcs[] =;

static inline unsigned int bcm6328_mux_off(unsigned int pin)
{}

static int bcm6328_pinctrl_get_group_count(struct pinctrl_dev *pctldev)
{}

static const char *bcm6328_pinctrl_get_group_name(struct pinctrl_dev *pctldev,
						  unsigned group)
{}

static int bcm6328_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
					  unsigned group, const unsigned **pins,
					  unsigned *npins)
{}

static int bcm6328_pinctrl_get_func_count(struct pinctrl_dev *pctldev)
{}

static const char *bcm6328_pinctrl_get_func_name(struct pinctrl_dev *pctldev,
						 unsigned selector)
{}

static int bcm6328_pinctrl_get_groups(struct pinctrl_dev *pctldev,
				      unsigned selector,
				      const char * const **groups,
				      unsigned * const num_groups)
{}

static void bcm6328_rmw_mux(struct bcm63xx_pinctrl *pc, unsigned pin,
			    unsigned int mode, unsigned int mux)
{}

static int bcm6328_pinctrl_set_mux(struct pinctrl_dev *pctldev,
				   unsigned selector, unsigned group)
{}

static int bcm6328_gpio_request_enable(struct pinctrl_dev *pctldev,
				       struct pinctrl_gpio_range *range,
				       unsigned offset)
{}

static const struct pinctrl_ops bcm6328_pctl_ops =;

static const struct pinmux_ops bcm6328_pmx_ops =;

static const struct bcm63xx_pinctrl_soc bcm6328_soc =;

static int bcm6328_pinctrl_probe(struct platform_device *pdev)
{}

static const struct of_device_id bcm6328_pinctrl_match[] =;

static struct platform_driver bcm6328_pinctrl_driver =;

builtin_platform_driver();