From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] MXC: iomux-v3: correct NO_PAD_CTRL definition
Date: Mon, 27 Jun 2011 11:52:29 +0200 [thread overview]
Message-ID: <20110627095229.GB6069@pengutronix.de> (raw)
In-Reply-To: <1308937976-18638-1-git-send-email-troy.kisky@boundarydevices.com>
Lothar,
Since you had comments to an earlier version, can I have your Acked-by
for this?
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@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 |
next parent reply other threads:[~2011-06-27 9:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1308937976-18638-1-git-send-email-troy.kisky@boundarydevices.com>
2011-06-27 9:52 ` Sascha Hauer [this message]
2011-06-27 11:12 ` [PATCH 1/1] MXC: iomux-v3: correct NO_PAD_CTRL definition Lothar Waßmann
2011-06-28 7:24 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110627095229.GB6069@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).