[U-Boot] [PATCH 46/60] ARM: tegra: add pinmux APIs to replace funcmux
Simon Glass
sjg at chromium.org
Sun May 8 00:32:04 CEST 2016
Hi Stephen.
On 19 April 2016 at 14:59, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> The existing funcmux APIs have the disadvantage that clients call a single
> monolithic/IOCTL-style function which performs different operations based
> on its parameter. All branches of that function are always compiled into
> the binary even when they're not used.
>
> Another disadvantage is that funcmux is pinmux functionality, but
> implemented outside the Tegra pinmux driver.
>
> This patch creates a separate function per operation, and implements them
> as part of the pinmux driver. Later patches will convert callers to these
> functions and eventually remove the funcmux files.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> arch/arm/mach-tegra/tegra114/include/mach/pinmux.h | 2 +
> arch/arm/mach-tegra/tegra114/pinmux.c | 18 ++
> arch/arm/mach-tegra/tegra124/include/mach/pinmux.h | 3 +
> arch/arm/mach-tegra/tegra124/pinmux.c | 30 +++
> arch/arm/mach-tegra/tegra20/include/mach/pinmux.h | 22 +++
> arch/arm/mach-tegra/tegra20/pinmux.c | 208 +++++++++++++++++++++
> arch/arm/mach-tegra/tegra30/include/mach/pinmux.h | 2 +
> arch/arm/mach-tegra/tegra30/pinmux.c | 12 ++
> 8 files changed, 297 insertions(+)
This should go in a pinctrl driver for each SoC.
Regards,
Simon
More information about the U-Boot
mailing list