linux_dsm_epyc7002/drivers/pinctrl/uniphier
Mika Westerberg 58957d2edf pinctrl: Widen the generic pinconf argument from 16 to 24 bits
The current pinconf packed format allows only 16-bit argument limiting
the maximum value 65535. For most types this is enough. However,
debounce time can be in range of hundreths of milliseconds in case of
mechanical switches so we cannot represent the worst case using the
current format.

In order to support larger values change the packed format so that the
lower 8 bits are used as type which leaves 24 bits for the argument.
This allows representing values up to 16777215 and debounce times up to
16 seconds.

We also convert the existing users to use 32-bit integer when extracting
argument from the packed configuration value.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-01-26 15:22:32 +01:00
..
Kconfig pinctrl: uniphier: add UniPhier PH1-LD20 pinctrl driver 2016-05-31 12:57:45 +02:00
Makefile pinctrl: uniphier: add UniPhier PH1-LD20 pinctrl driver 2016-05-31 12:57:45 +02:00
pinctrl-uniphier-core.c pinctrl: Widen the generic pinconf argument from 16 to 24 bits 2017-01-26 15:22:32 +01:00
pinctrl-uniphier-ld4.c pinctrl: uniphier: add Ethernet pin-mux settings 2016-07-11 09:53:25 +02:00
pinctrl-uniphier-ld6b.c pinctrl: uniphier: add Ethernet pin-mux settings 2016-07-11 09:53:25 +02:00
pinctrl-uniphier-ld11.c pinctrl: uniphier: add Ethernet pin-mux settings 2016-07-11 09:53:25 +02:00
pinctrl-uniphier-ld20.c pinctrl: uniphier: add Ethernet pin-mux settings 2016-07-11 09:53:25 +02:00
pinctrl-uniphier-pro4.c pinctrl: uniphier: add Ethernet pin-mux settings 2016-07-11 09:53:25 +02:00
pinctrl-uniphier-pro5.c pinctrl: uniphier: allow to have pinctrl node under syscon node 2016-05-31 12:54:14 +02:00
pinctrl-uniphier-pxs2.c pinctrl: uniphier: add Ethernet pin-mux settings 2016-07-11 09:53:25 +02:00
pinctrl-uniphier-sld8.c pinctrl: uniphier: add Ethernet pin-mux settings 2016-07-11 09:53:25 +02:00
pinctrl-uniphier.h pinctrl: uniphier: support pin configuration for dedicated pins 2016-05-31 12:50:47 +02:00