• Stephen Warren's avatar
    pinctrl: tegra: dynamically calculate function list of groups · ce436254
    Stephen Warren authored
    The per-SoC data structures for Tegra pinctrl stored some information
    in a redundant way. Specifically, the list of groups that each function
    could be muxed onto was stored once explicitly, and also as part of the
    definition of each group. Eliminate this redundancy, and calculate each
    function's list of valid groups at pinctrl probe time. This removes
    thousands of lines of code from the pinctrl driver and ~16K from the
    vmlinux binary size, and adds only about 500uS to the boot process (on
    Tegra30; newer SoCs will likely be faster still).
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    ce436254
pinctrl-tegra.c 17.4 KB