pinctrl: sunxi: Allow to disable pinctrl drivers
authorMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 19 Mar 2019 14:42:03 +0000 (15:42 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Apr 2019 03:55:54 +0000 (10:55 +0700)
commitc69a26b57bd8680aa947a443cbf37635f089bf50
treef17a9efdf57c77867546e13338067e4666ff3678
parent04ed8c0c5b82c284f40449bed3458a822ad70cdb
pinctrl: sunxi: Allow to disable pinctrl drivers

Our pinctrl drivers are consisting of some common code, and big pin tables
that are SoC-specific. This is fine in most cases, but when you want to
reduce the size of the particular kernel image, those big tables are, well,
quite big.

We haven't had the option to disable them in the past since they were
hidden Kconfig options based on the SoC support. However, that granularity
isn't great since we don't have one Kconfig option per-SoC, but rather one
by family.

Make those options selectable by the user so that they can disable it if
needed, while keeping the current default to not change the standard case.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/Kconfig