]> git.baikalelectronics.ru Git - kernel.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)
commit0d926bf3377c8eca645382a43df7b5c9141a36dc
treeb7f3fd0f286d8191584c8d2f0200a29121e1acf2
parentd80895e2b322e01ffca3af6bf67e8f359859d423
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