[PATCH 1/1] MXC: iomux-v3: correct NO_PAD_CTRL definition

Sascha Hauer s.hauer at pengutronix.de
Tue Jun 28 03:24:17 EDT 2011


On Mon, Jun 27, 2011 at 01:12:14PM +0200, Lothar Waßmann wrote:
> Hi Sascha,
> 
> > Since you had comments to an earlier version, can I have your Acked-by
> > for this?
> > 
> Sure:
> Acked-by: Lothar Waßmann <LW at KARO-electronics.de>
> Tested-by: Lothar Waßmann <LW at KARO-electronics.de>

Thanks.

Applied for next.

Sascha

> 
> > On Fri, Jun 24, 2011 at 10:52:56AM -0700, Troy Kisky wrote:
> > > iomux-v3.c uses NO_PAD_CTRL as a 32 bit value
> > > so it should not be shifted left by MUX_PAD_CTRL_SHIFT(41)
> > > 
> > > Previously, anything requesting NO_PAD_CTRL would get
> > > their pad control register set to 0.
> > > 
> > > Since it is a pad control mask, place it with the other mask values.
> > > 
> > > Signed-off-by: Troy Kisky <troy.kisky at boundarydevices.com>
> > > ---
> > >  arch/arm/plat-mxc/include/mach/iomux-v3.h |    2 +-
> > >  1 files changed, 1 insertions(+), 1 deletions(-)
> > > 
> > > diff --git a/arch/arm/plat-mxc/include/mach/iomux-v3.h b/arch/arm/plat-mxc/include/mach/iomux-v3.h
> > > index 82620af..ebbce33 100644
> > > --- a/arch/arm/plat-mxc/include/mach/iomux-v3.h
> > > +++ b/arch/arm/plat-mxc/include/mach/iomux-v3.h
> > > @@ -66,7 +66,6 @@ typedef u64 iomux_v3_cfg_t;
> > >  #define MUX_MODE_MASK		((iomux_v3_cfg_t)0x1f << MUX_MODE_SHIFT)
> > >  #define MUX_PAD_CTRL_SHIFT	41
> > >  #define MUX_PAD_CTRL_MASK	((iomux_v3_cfg_t)0x1ffff << MUX_PAD_CTRL_SHIFT)
> > > -#define NO_PAD_CTRL		((iomux_v3_cfg_t)1 << (MUX_PAD_CTRL_SHIFT + 16))
> > >  #define MUX_SEL_INPUT_SHIFT	58
> > >  #define MUX_SEL_INPUT_MASK	((iomux_v3_cfg_t)0xf << MUX_SEL_INPUT_SHIFT)
> > >  
> > > @@ -85,6 +84,7 @@ typedef u64 iomux_v3_cfg_t;
> > >   * Use to set PAD control
> > >   */
> > >  
> > > +#define NO_PAD_CTRL			(1 << 16)
> > >  #define PAD_CTL_DVS			(1 << 13)
> > >  #define PAD_CTL_HYS			(1 << 8)
> > >  
> > > -- 
> > > 1.7.0.4
> > > 
> > > 
> > 
> > -- 
> > Pengutronix e.K.                           |                             |
> > Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> Lothar Waßmann
> -- 
> ___________________________________________________________
> 
> Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
> Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
> Geschäftsführer: Matthias Kaussen
> Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
> 
> www.karo-electronics.de | info at karo-electronics.de
> ___________________________________________________________
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list