Commit 1347034f authored by Hemant Pedanekar's avatar Hemant Pedanekar Committed by Kevin Hilman

DaVinci: MUX: Fix davinci_cfg_reg() to honor PINMUX0 configuration

Changed the 'if' condition for pinmux register offset to 'mask' value
to be able to set PINMUX0. This would have been skipped otherwise
since PINMUX0 is at offset '0'.
Signed-off-by: default avatarHemant Pedanekar <hemantp@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent fc87127a
......@@ -63,8 +63,8 @@ int __init_or_module davinci_cfg_reg(const unsigned long index)
return -ENODEV;
}
/* Check the mux register in question */
if (cfg->mux_reg) {
/* Update the mux register in question */
if (cfg->mask) {
unsigned tmp1, tmp2;
spin_lock_irqsave(&mux_spin_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment