ARM: tegra: cardhu: open drain pin need not to set tristate
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 24 Apr 2012 11:23:38 +0000 (16:23 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 25 Apr 2012 12:44:23 +0000 (17:44 +0530)
commit2b6cdaa66446309bcd587c32de4ab2d93484b1b6
tree16b60484ccaf932410ef6651dbaa3c6751e459b0
parenteb8000a843d560fba68af45c39d6342f924990c8
ARM: tegra: cardhu: open drain pin need not to set tristate

When open drian pin is set as gpio-input, the pin is set as
tristate and hence need not to set this again tristate from
pinmux controller.
Setting the pin in normal in pinmux controller and then
- setting HIGH by gpio-input and pull-up so that pin is
  tristated through gpio controller.
- Setting LOW by gpio-output and drive to LOW. As pin is in
  normal state in the pinmux, the output will be set to LOW.

bug 973591
bug 969182

Change-Id: Ia9518f79987c9562bb57f95a468bdc5b5e143b87
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/98434
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
arch/arm/mach-tegra/board-cardhu-pinmux.c