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>
This commit is contained in:
parent
73c38934da
commit
f799b03f37
@ -81,8 +81,9 @@ struct pmux_pingrp_config {
|
||||
};
|
||||
|
||||
#if !defined(CONFIG_TEGRA20) && !defined(CONFIG_TEGRA30)
|
||||
/* Set the pinmux CLAMP_INPUTS_WHEN_TRISTATED bit */
|
||||
/* Set/clear the pinmux CLAMP_INPUTS_WHEN_TRISTATED bit */
|
||||
void pinmux_set_tristate_input_clamping(void);
|
||||
void pinmux_clear_tristate_input_clamping(void);
|
||||
#endif
|
||||
|
||||
/* Set the mux function for a pin group */
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user