[U-Boot] [PATCH 56/60] ARM: tegra: remove funcmux API

Simon Glass
2016-05-07T22:32:32Z

Hi Stephen,

On 19 April 2016 at 14:59, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> Replace all usage of funcmux APIs with the pinmux functions previously
> added to replace then. Delete the funcmux implementation since it's no
> longer used. This merges all pinmux-related logic into the pinmux code
> and avoids use of the funcmux "IOCTL" functions, which compile in
> support for all possible pinmux options even when they won't ever be
> used by a particular build.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
> arch/arm/include/asm/arch-tegra/funcmux.h | 29 ---
> arch/arm/include/asm/arch-tegra114/funcmux.h | 21 --
> arch/arm/include/asm/arch-tegra124/funcmux.h | 23 ---
> arch/arm/include/asm/arch-tegra20/funcmux.h | 52 -----
> arch/arm/include/asm/arch-tegra210/funcmux.h | 23 ---
> arch/arm/include/asm/arch-tegra30/funcmux.h | 21 --
> arch/arm/mach-tegra/board.c | 1 -
> arch/arm/mach-tegra/board2.c | 1 -
> arch/arm/mach-tegra/tegra114/Makefile | 2 +-
> arch/arm/mach-tegra/tegra114/funcmux.c | 57 -----
> arch/arm/mach-tegra/tegra124/Makefile | 1 -
> arch/arm/mach-tegra/tegra124/funcmux.c | 71 -------
> arch/arm/mach-tegra/tegra20/Makefile | 2 +-
> arch/arm/mach-tegra/tegra20/funcmux.c | 299 ---------------------------
> arch/arm/mach-tegra/tegra210/Makefile | 1 -
> arch/arm/mach-tegra/tegra210/funcmux.c | 39 ----
> arch/arm/mach-tegra/tegra30/Makefile | 2 +-
> arch/arm/mach-tegra/tegra30/funcmux.c | 51 -----
> board/avionic-design/common/tamonten.c | 11 +-
> board/compal/paz00/paz00.c | 4 +-
> board/compulab/trimslice/trimslice.c | 5 +-
> board/nvidia/harmony/harmony.c | 11 +-
> board/nvidia/seaboard/seaboard.c | 17 +-
> board/nvidia/whistler/whistler.c | 7 +-
> board/toradex/colibri_t20/colibri_t20.c | 14 +-
> drivers/mtd/nand/tegra_nand.c | 3 +-
> 26 files changed, 34 insertions(+), 734 deletions(-)
> delete mode 100644 arch/arm/include/asm/arch-tegra/funcmux.h
> delete mode 100644 arch/arm/include/asm/arch-tegra114/funcmux.h
> delete mode 100644 arch/arm/include/asm/arch-tegra124/funcmux.h
> delete mode 100644 arch/arm/include/asm/arch-tegra20/funcmux.h
> delete mode 100644 arch/arm/include/asm/arch-tegra210/funcmux.h
> delete mode 100644 arch/arm/include/asm/arch-tegra30/funcmux.h
> delete mode 100644 arch/arm/mach-tegra/tegra114/funcmux.c
> delete mode 100644 arch/arm/mach-tegra/tegra124/funcmux.c
> delete mode 100644 arch/arm/mach-tegra/tegra20/funcmux.c
> delete mode 100644 arch/arm/mach-tegra/tegra210/funcmux.c
> delete mode 100644 arch/arm/mach-tegra/tegra30/funcmux.c

The concept is fine, but this should use a pinctrl drive.r

- Simon