[U-Boot] [PATCH 0/9] ARM: tegra: pinmux: Tegra210 support

Simon Glass
2015-02-24T23:44:28Z

Hi Stephen,

On 24 February 2015 at 14:08, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> This series performs a few small cleanups to or parameterizations of the
> existing Tegra pinmux driver, and adds Tegra210 support. The Tegra210
> code isn't actually used yet, since the balance of the Tegra210 support
> is not yet present. However, it should start appearing soon.
>
> I've at least compile-tested this by over-writing the Tegra124 pinmux
> driver and Jetson TK1 board pinmux data tables with the Tegra210 versions.
>
> TomW, note I made a couple minor tweaks since the latest version I sent
> internally; let's apply this version upstream.
>
> Stephen Warren (9):
> ARM: tegra: pinmux: add note re: drive group field defines
> ARM: tegra: pinmux: simplify some defines
> ARM: tegra: pinmux: handle feature removal on newer SoCs
> ARM: tegra: pinmux: move some type definitions
> ARM: tegra: pinmux: partially handle varying register layouts
> ARM: tegra: pinmux: support hsm/schmitt on pins
> ARM: tegra: pinmux: account for different drivegroup base registers
> ARM: tegra: pinmux: support Tegra210's e_io_hv pin option
> ARM: tegra: pinmux: add Tegra210 support

Does the Linux side look similar to this? The use of #defines seem
like a potential temporary solution but I hope it doesn't stay that
way.

It feels like maybe we need to define an API that would suit all Tegra chips?

>
> arch/arm/cpu/tegra-common/pinmux-common.c | 211 ++++++++++++--
> arch/arm/cpu/tegra210-common/pinmux.c | 195 +++++++++++++
> arch/arm/include/asm/arch-tegra/pinmux.h | 107 ++++---
> arch/arm/include/asm/arch-tegra114/pinmux.h | 14 +-
> arch/arm/include/asm/arch-tegra124/pinmux.h | 14 +-
> arch/arm/include/asm/arch-tegra20/pinmux.h | 1 +
> arch/arm/include/asm/arch-tegra210/pinmux.h | 416 ++++++++++++++++++++++++++++
> arch/arm/include/asm/arch-tegra30/pinmux.h | 11 +-
> 8 files changed, 906 insertions(+), 63 deletions(-)
> create mode 100644 arch/arm/cpu/tegra210-common/pinmux.c
> create mode 100644 arch/arm/include/asm/arch-tegra210/pinmux.h
>
> --
> 1.9.1
>

Regards,
Simon