diff options
author | Lucas Stach <dev@lynxeye.de> | 2013-05-10 20:28:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-12 09:59:41 +0200 |
commit | 373909ce87ca74f51b1ee6bc163a754eaf92c957 (patch) | |
tree | e1f695df78cc33632db1410bf13e86e4a92cc51b /arch | |
parent | baf0d5d9c4f8e129e2cb66a20557547c055172e8 (diff) | |
download | barebox-373909ce87ca74f51b1ee6bc163a754eaf92c957.tar.gz barebox-373909ce87ca74f51b1ee6bc163a754eaf92c957.tar.xz |
tegra20: add pinctrl driver
This adds a pinctrl driver for the Tegra 20 line of SoCs. It only
supports the three basic pinconfiguration settings function mux,
tristate control and pullup/down control.
The driver understands the same devicetree bindings as the Linux one,
unimplemented pinconfiguration options will be ignored.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/dts/tegra20.dtsi | 8 | ||||
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi index b7d1e27de2..f63ead89db 100644 --- a/arch/arm/dts/tegra20.dtsi +++ b/arch/arm/dts/tegra20.dtsi @@ -34,6 +34,14 @@ interrupt-controller; }; + pinmux: pinmux { + compatible = "nvidia,tegra20-pinmux"; + reg = <0x70000014 0x10 /* Tri-state registers */ + 0x70000080 0x20 /* Mux registers */ + 0x700000a0 0x14 /* Pull-up/down registers */ + 0x70000868 0xa8>; /* Pad control registers */ + }; + pmc { compatible = "nvidia,tegra20-pmc"; reg = <0x7000e400 0x400>; diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 965e7ab6ba..53ae070e40 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -5,6 +5,7 @@ choice config ARCH_TEGRA_2x_SOC bool "Tegra 20" + select PINCTRL_TEGRA20 endchoice |