1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2017-2018 MediaTek Inc.
5 * Author: Sean Wang <sean.wang@mediatek.com>
8 #ifndef __PINCTRL_MOORE_H
9 #define __PINCTRL_MOORE_H
12 #include <linux/init.h>
14 #include <linux/of_platform.h>
15 #include <linux/platform_device.h>
16 #include <linux/pinctrl/pinctrl.h>
17 #include <linux/pinctrl/pinmux.h>
18 #include <linux/pinctrl/pinconf.h>
19 #include <linux/pinctrl/pinconf-generic.h>
22 #include "../pinconf.h"
23 #include "../pinmux.h"
25 #include "pinctrl-mtk-common-v2.h"
27 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), }
29 #define MTK_PIN(_number, _name, _eint_m, _eint_n, _drv_n) { \
40 #define PINCTRL_PIN_GROUP(name, id) \
44 ARRAY_SIZE(id##_pins), \
48 int mtk_moore_pinctrl_probe(struct platform_device
*pdev
,
49 const struct mtk_pin_soc
*soc
);
51 #endif /* __PINCTRL_MOORE_H */