summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/mediatek/pinctrl-moore.h
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2018-09-08 13:07:20 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-09-18 23:52:42 +0200
commitfb5fa8dc151b2364c975a9070eedb28a354a995a (patch)
treee30c6247a6ca5d58f915e735ce6cb6f4100b0917 /drivers/pinctrl/mediatek/pinctrl-moore.h
parentpinctrl: mediatek: extend struct mtk_pin_field_calc to pinctrl-mtk-common-v2.c (diff)
downloadlinux-fb5fa8dc151b2364c975a9070eedb28a354a995a.tar.xz
linux-fb5fa8dc151b2364c975a9070eedb28a354a995a.zip
pinctrl: mediatek: extend struct mtk_pin_desc to pinctrl-mtk-common-v2.c
This patch introduces a data structure mtk_pin_desc, which is used to provide information per pin characteristic such as driving current, eint number and a driving index, that is used to lookup table describing the details about the groups of driving current by which the pin is able to adjust the driving strength so that the driver could get the appropriate driving group when calls .pin_config_get()/set(). Signed-off-by: Ryder.Lee <ryder.lee@mediatek.com> Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek/pinctrl-moore.h')
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-moore.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-moore.h b/drivers/pinctrl/mediatek/pinctrl-moore.h
index 1011e9056ee4..b965cc1ba9f6 100644
--- a/drivers/pinctrl/mediatek/pinctrl-moore.h
+++ b/drivers/pinctrl/mediatek/pinctrl-moore.h
@@ -27,6 +27,14 @@
#include "pinctrl-mtk-common-v2.h"
#define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), }
+
+#define MTK_PIN(_number, _name, _eint_n, _drv_n) { \
+ .number = _number, \
+ .name = _name, \
+ .eint_n = _eint_n, \
+ .drv_n = _drv_n, \
+ }
+
#define PINCTRL_PIN_GROUP(name, id) \
{ \
name, \