[U-Boot] mx35 iomux: correct input select register index

Submitted by Philip Paeps on April 17, 2013, 2:39 p.m.

Details

Message ID 1366209567-31335-1-git-send-email-philip@paeps.cx
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Philip Paeps April 17, 2013, 2:39 p.m.
Prior to this fix, calls to mxc_iomux_set_input() for registers
after MUX_IN_GPIO2_IN_19 would write to the wrong registers,
possibly resulting in unexpected behaviour.

Signed-off-by: Philip Paeps <philip@paeps.cx>
---
 arch/arm/include/asm/arch-mx35/iomux.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Stefano Babic April 25, 2013, 7:10 p.m.
On 17/04/2013 16:39, Philip Paeps wrote:
> Prior to this fix, calls to mxc_iomux_set_input() for registers
> after MUX_IN_GPIO2_IN_19 would write to the wrong registers,
> possibly resulting in unexpected behaviour.
> 
> Signed-off-by: Philip Paeps <philip@paeps.cx>
> ---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Patch hide | download patch | download mbox

diff --git a/arch/arm/include/asm/arch-mx35/iomux.h b/arch/arm/include/asm/arch-mx35/iomux.h
index 52c15bc..7f17ed6 100644
--- a/arch/arm/include/asm/arch-mx35/iomux.h
+++ b/arch/arm/include/asm/arch-mx35/iomux.h
@@ -141,6 +141,7 @@  typedef enum iomux_input_select {
 	MUX_IN_GPIO2_IN_17,
 	MUX_IN_GPIO2_IN_18,
 	MUX_IN_GPIO2_IN_19,
+	MUX_IN_GPIO2_IN_1,
 	MUX_IN_GPIO2_IN_20,
 	MUX_IN_GPIO2_IN_21,
 	MUX_IN_GPIO2_IN_22,