summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/pinmux-common.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-02-18 13:27:03 -0700
committerTom Warren <twarren@nvidia.com>2015-03-04 10:08:57 -0700
commitf799b03f37743a36d53d751b3b2327c226c9e978 (patch)
treefaf2ee314c27724cc1f4e2111d406e90c073ff28 /arch/arm/mach-tegra/pinmux-common.c
parent73c38934daa10b518b20f2d21298fc8a8226843b (diff)
downloadu-boot-imx-f799b03f37743a36d53d751b3b2327c226c9e978.zip
u-boot-imx-f799b03f37743a36d53d751b3b2327c226c9e978.tar.gz
u-boot-imx-f799b03f37743a36d53d751b3b2327c226c9e978.tar.bz2
ARM: tegra: add function to clear pinmux CLAMPING bit
This is needed to correctly apply the new Jetson TK1 pinmux config. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pinmux-common.c')
-rw-r--r--arch/arm/mach-tegra/pinmux-common.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/pinmux-common.c b/arch/arm/mach-tegra/pinmux-common.c
index 6e3ab0c..64baed4 100644
--- a/arch/arm/mach-tegra/pinmux-common.c
+++ b/arch/arm/mach-tegra/pinmux-common.c
@@ -94,11 +94,15 @@
void pinmux_set_tristate_input_clamping(void)
{
u32 *reg = _R(APB_MISC_PP_PINMUX_GLOBAL_0);
- u32 val;
- val = readl(reg);
- val |= CLAMP_INPUTS_WHEN_TRISTATED;
- writel(val, reg);
+ setbits_le32(reg, CLAMP_INPUTS_WHEN_TRISTATED);
+}
+
+void pinmux_clear_tristate_input_clamping(void)
+{
+ u32 *reg = _R(APB_MISC_PP_PINMUX_GLOBAL_0);
+
+ clrbits_le32(reg, CLAMP_INPUTS_WHEN_TRISTATED);
}
#endif