From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] arm/mx5: parse iomuxc pad configuratoin from device tree
Date: Tue, 26 Jul 2011 08:39:14 +0200 [thread overview]
Message-ID: <20110726063914.GB20587@pengutronix.de> (raw)
In-Reply-To: <1311606467-28985-2-git-send-email-shawn.guo@linaro.org>
On Mon, Jul 25, 2011 at 11:07:46PM +0800, Shawn Guo wrote:
> It adds function mxc_iomuxc_dt_init() to parse iomuxc pad configuration
> from device tree.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> Cc: Grant Likely <grant.likely@secretlab.ca>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> ---
> .../devicetree/bindings/arm/fsl/iomuxc.txt | 47 +++++++++++++
> arch/arm/mach-mx5/Makefile | 2 +
> arch/arm/mach-mx5/iomuxc-dt.c | 72 ++++++++++++++++++++
> arch/arm/plat-mxc/include/mach/common.h | 3 +
> 4 files changed, 124 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/arm/fsl/iomuxc.txt
> create mode 100644 arch/arm/mach-mx5/iomuxc-dt.c
>
> + */
> +
> +#include <linux/of.h>
> +#include <asm/io.h>
linux/io.h
> +
> +#define IOMUXC_CONFIG_SION (1 << 4)
> +
> +void mxc_iomuxc_dt_init(const struct of_device_id *match)
> +{
> + struct device_node *node = of_find_matching_node(NULL, match);
> + struct device_node *child;
> + void __iomem *base;
> + u32 reg[2], select_input[2];
> + u32 mux_mode, pad_ctl;
> +
> + if (!node) {
> + pr_warn("%s: no iomuxc node found\n", __func__);
> + return;
> + }
Please remove this warning. Some boards may intentionally do the iomux
setup in the bootloader and skip the iomux setup nodes in the device
tree.
Sascha
--
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 prev parent reply other threads:[~2011-07-26 6:39 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-25 15:07 [PATCH 0/2] Add device tree support for i.mx53 boards Shawn Guo
2011-07-25 15:07 ` [PATCH 1/2] arm/mx5: parse iomuxc pad configuratoin from device tree Shawn Guo
2011-07-25 20:46 ` Grant Likely
2011-07-26 2:43 ` Shawn Guo
2011-07-26 6:29 ` Sascha Hauer
2011-07-26 16:34 ` Shawn Guo
2011-07-31 4:02 ` Grant Likely
2011-07-26 11:19 ` Eric Miao
2011-08-04 23:07 ` Matt Sealey
2011-08-05 7:07 ` David Brown
2011-08-05 18:36 ` Matt Sealey
2011-08-05 20:26 ` Scott Wood
2011-08-05 20:36 ` David Brown
2011-08-05 21:29 ` Matt Sealey
2011-08-05 21:48 ` Scott Wood
2011-08-06 17:41 ` Grant Likely
2011-08-07 16:23 ` Russell King - ARM Linux
2011-08-05 22:58 ` Grant Likely
2011-08-05 23:31 ` Mitch Bradley
2011-08-06 3:47 ` Mark Brown
2011-08-07 11:15 ` Sascha Hauer
2011-07-26 6:31 ` Sascha Hauer
2011-07-26 16:39 ` Shawn Guo
2011-07-26 6:39 ` Sascha Hauer [this message]
2011-07-26 16:41 ` Shawn Guo
2011-07-25 15:07 ` [PATCH 2/2] arm/mx5: add device tree support for imx53 boards Shawn Guo
2011-07-25 20:57 ` Grant Likely
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=20110726063914.GB20587@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).