]> git.karo-electronics.de Git - linux-beck.git/commit
pinctrl: tegra: clear park bit for all pins
authorRhyland Klein <rklein@nvidia.com>
Thu, 7 Apr 2016 21:37:08 +0000 (17:37 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2016 12:01:25 +0000 (14:01 +0200)
commit26e6aaafc8a1e862437003d6e06ba748e7177ea8
tree04ff0595a8c41c7a2dfa54a5bd59212cc0a9b4e6
parent6ba20a00a36bb47c64581bfa08f1606d4bf0589f
pinctrl: tegra: clear park bit for all pins

Parking bits might not be cleared by the bootloader properly (if for
instance it doesn't use the device configured by that pin). Clear
the park bits for all the pins during pinctrl probe.

This is present on T210 platforms but not earlier ones, so for earlier
generations, set parked_reg = -1 to disable.

The park bit is used to prevent glitching when reprogramming pinctrl
registers.

Based on work by:
Shravani Dingari <shravanid@nvidia.com>

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/tegra/pinctrl-tegra.c
drivers/pinctrl/tegra/pinctrl-tegra.h
drivers/pinctrl/tegra/pinctrl-tegra114.c
drivers/pinctrl/tegra/pinctrl-tegra124.c
drivers/pinctrl/tegra/pinctrl-tegra20.c
drivers/pinctrl/tegra/pinctrl-tegra210.c
drivers/pinctrl/tegra/pinctrl-tegra30.c