u-boot-brain/arch
Stephen Warren e296995767 ARM: tegra: pinctrl: remove duplication
Much of arch/arm/cpu/tegra*-common/pinmux.c is identical. Remove the
duplication by creating pinmux-common.c for all the identical code.

This leaves:
* arch/arm/include/asm/arch-tegra*/pinmux.h defining only the names of
  the various pins/pin groups, drive groups, and mux functions.
* arch/arm/cpu/tegra*-common/pinmux.c containing only the lookup table
  stating which pin groups support which mux functions.

The code in pinmux-common.c is semantically identical to that in the
various original pinmux.c, but had some consistency and cleanup fixes
applied during migration.

I removed the definition of struct pmux_tri_ctlr, since this is different
between SoCs (especially Tegra20 vs all others), and it's much simpler to
deal with this via the new REG/MUX_REG/... defines. spl.c, warmboot.c,
and warmboot_avp.c needed updates due to this, since they previously
hijacked this struct to encode the location of some non-pinmux registers.
Now, that code simply calculates these register addresses directly using
simple and obvious math. I like this method better irrespective of the
pinmux code cleanup anyway.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
2014-04-17 08:41:05 -07:00
..
arc kbuild: delete redundant LDSCRIPT definition 2014-03-12 17:04:46 -04:00
arm ARM: tegra: pinctrl: remove duplication 2014-04-17 08:41:05 -07:00
avr32 kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
blackfin kbuild: improve Kbuild speed 2014-03-07 10:59:06 -05:00
m68k kbuild: rename OBJTREE to objtree 2014-03-12 17:04:58 -04:00
microblaze kbuild: delete redundant LDSCRIPT definition 2014-03-12 17:04:46 -04:00
mips usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
nds32 kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/lib 2014-03-28 15:06:29 -04:00
nios2 kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
openrisc kbuild: delete redundant LDSCRIPT definition 2014-03-12 17:04:46 -04:00
powerpc mmc:eSDHC: Workaround for data timeout issue on Txxx SoC 2014-04-02 13:25:01 +03:00
sandbox sandbox: Add options to clean up temporary files 2014-03-17 20:05:49 -06:00
sh sh: fix PFC registers definition for SH772{2, 3, 4} 2014-03-14 14:49:54 +09:00
sparc usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
x86 kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/lib 2014-03-28 15:06:29 -04:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00