]> git.karo-electronics.de Git - linux-beck.git/commit
pinctrl: tegra: add support for rcv-sel and drive type
authorPritesh Raithatha <praithatha@nvidia.com>
Tue, 8 Jan 2013 07:32:36 +0000 (13:02 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 18 Jan 2013 15:13:52 +0000 (16:13 +0100)
commit348d1bf75c09f854630e9bd161dc2a88aebe2149
treeb7f3fd0f286d8191584c8d2f0200a29121e1acf2
parentb2083062a3b4035e85349120b426ecef2b6d155f
pinctrl: tegra: add support for rcv-sel and drive type

NVIDIA's Tegra114 added two more configuration parameter in pinmux i.e.
rcv-sel and drive type.

rcv-sel: Select between High and Normal VIL/VIH receivers.
RCVR_SEL=1: High VIL/VIH
RCVR_SEL=0: Normal VIL/VIH

drv_type: Ouptput drive type:
33-50 ohm driver: 0x1
66-100ohm driver: 0x0

Add support of these parameters to be configure from DTS file.

Tegra20 and Tegra30 does not support this configuration and hence initialize their
pinmux structure with reg = -1.

Originally written by Pritesh Raithatha.
Changes by ldewangan:
- remove drvtype_width as it is always 2.
- Better describe the change.

Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-tegra.c
drivers/pinctrl/pinctrl-tegra.h
drivers/pinctrl/pinctrl-tegra20.c
drivers/pinctrl/pinctrl-tegra30.c