linux/drivers/pinctrl/mediatek
Sean Wang b906faf7b6 pinctrl: mediatek: extend struct mtk_pin_field_calc to pinctrl-mtk-common-v2.c
This patch adds members sz_reg fixed in struct mtk_pin_field_calc

- The 'fixed' is used to represent the consecutive pins share the same
bits within the same register with the 1st pin so that it can largely
reduce the entry size a bit.

- The 'sz_reg' is used to indicate the range of bits we use in a register
  that may vary by SoC

The above changes make the code more generic and this is useful as there
might be other existing or future chips all use the same logic to access
their register set and then being a little more abstract could help in the
long run.

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>
2018-09-18 14:52:40 -07:00
..
Kconfig pinctrl: mediatek: add pinctrl-moore that implements the generic pinctrl dt-bindings 2018-09-18 14:52:37 -07:00
Makefile pinctrl: mediatek: add pinctrl-moore that implements the generic pinctrl dt-bindings 2018-09-18 14:52:37 -07:00
mtk-eint.c pinctrl: mediatek: include chained_irq.h header 2018-07-29 23:15:22 +02:00
mtk-eint.h pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-moore.c pinctrl: mediatek: add pinctrl-moore that implements the generic pinctrl dt-bindings 2018-09-18 14:52:37 -07:00
pinctrl-moore.h pinctrl: mediatek: add pinctrl-moore that implements the generic pinctrl dt-bindings 2018-09-18 14:52:37 -07:00
pinctrl-mt2701.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt2712.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt6397.c pinctrl: mediatek: use builtin_platform_driver 2016-11-22 10:17:28 +01:00
pinctrl-mt7622.c pinctrl: mediatek: extend struct mtk_pin_field_calc to pinctrl-mtk-common-v2.c 2018-09-18 14:52:40 -07:00
pinctrl-mt8127.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt8135.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mt8173.c pinctrl: mediatek: remove unused fields in struct mtk_eint_hw 2018-05-24 09:40:10 +02:00
pinctrl-mtk-common-v2.c pinctrl: mediatek: extend struct mtk_pin_field_calc to pinctrl-mtk-common-v2.c 2018-09-18 14:52:40 -07:00
pinctrl-mtk-common-v2.h pinctrl: mediatek: extend struct mtk_pin_field_calc to pinctrl-mtk-common-v2.c 2018-09-18 14:52:40 -07:00
pinctrl-mtk-common.c pinctrl: mediatek: remove redundant return value check of platform_get_resource() 2018-06-18 07:55:56 +02:00
pinctrl-mtk-common.h pinctrl: mediatek: use generic EINT register maps for each SoC 2018-05-24 09:39:25 +02:00
pinctrl-mtk-mt2701.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt2712.h pinctrl: add mt2712 pinctrl driver 2018-03-26 10:53:39 +02:00
pinctrl-mtk-mt6397.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8127.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8135.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8173.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00