#include <dt-bindings/pinctrl/mt65xx.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pinctrl/pinctrl.h>
#include <linux/regmap.h>
#include "pinctrl-mtk-common.h"
#include "pinctrl-mtk-mt2701.h"
struct mtk_spec_pinmux_set { … };
#define MTK_PINMUX_SPEC(_pin, _offset, _bit) …
static const struct mtk_drv_group_desc mt2701_drv_grp[] = …;
static const struct mtk_pin_drv_grp mt2701_pin_drv[] = …;
static const struct mtk_pin_spec_pupd_set_samereg mt2701_spec_pupd[] = …;
static const struct mtk_pin_ies_smt_set mt2701_ies_set[] = …;
static const struct mtk_pin_ies_smt_set mt2701_smt_set[] = …;
static const struct mtk_spec_pinmux_set mt2701_spec_pinmux[] = …;
static void mt2701_spec_pinmux_set(struct regmap *reg, unsigned int pin,
unsigned int mode)
{ … }
static void mt2701_spec_dir_set(unsigned int *reg_addr, unsigned int pin)
{ … }
static const struct mtk_pinctrl_devdata mt2701_pinctrl_data = …;
static const struct of_device_id mt2701_pctrl_match[] = …;
MODULE_DEVICE_TABLE(of, mt2701_pctrl_match);
static struct platform_driver mtk_pinctrl_driver = …;
static int __init mtk_pinctrl_init(void)
{ … }
arch_initcall(mtk_pinctrl_init);