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

login
register
mail settings
Submitter Philip Paeps
Date April 17, 2013, 2:39 p.m.
Message ID <1366209567-31335-1-git-send-email-philip@paeps.cx>
Download mbox | patch
Permalink /patch/237247/
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Comments

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(-)
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

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,