From: jamie@jamieiles.com (Jamie Iles)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 6/7] arm/imx6q: add device tree machine support
Date: Fri, 30 Sep 2011 10:01:56 +0100 [thread overview]
Message-ID: <20110930090156.GS17204@pulham.picochip.com> (raw)
In-Reply-To: <1317200808-6275-7-git-send-email-shawn.guo@linaro.org>
Hi Shawn,
On Wed, Sep 28, 2011 at 05:06:47PM +0800, Shawn Guo wrote:
> It adds generic device tree based machine support for imx6q.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
[...]
> diff --git a/arch/arm/mach-imx/mach-imx6q.c
> b/arch/arm/mach-imx/mach-imx6q.c
> new file mode 100644
> index 0000000..8bf5fa3
> --- /dev/null
> +++ b/arch/arm/mach-imx/mach-imx6q.c
[...]
> +static void __init imx6q_gpio_add_irq_domain(struct device_node *np,
> + struct device_node *interrupt_parent)
> +{
> + static int gpio_irq_base = MXC_GPIO_IRQ_START + ARCH_NR_GPIOS -
> + 32 * 7; /* imx6q gets 7 gpio ports */
> +
> + irq_domain_add_simple(np, gpio_irq_base);
> + gpio_irq_base += 32;
Doesn't this rely on imx6q_gpio_add_irq_domain() being called for each
gpio bank in the order that they appear in the device tree (and that the
dt is correctly ordered)?
> +}
> +
> +static const struct of_device_id imx6q_irq_match[] __initconst = {
> + { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, },
> + { .compatible = "fsl,imx6q-gpio", .data = imx6q_gpio_add_irq_domain, },
> + { /* sentinel */ }
> +};
> +
> +static void __init imx6q_init_irq(void)
> +{
> + l2x0_of_init(0, ~0UL);
> + imx_src_init();
> + imx_gpc_init();
> + of_irq_init(imx6q_irq_match);
> +}
Jamie
next prev parent reply other threads:[~2011-09-30 9:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-28 9:06 [PATCH v4 0/7] add initial imx6q support Shawn Guo
2011-09-28 9:06 ` [PATCH v4 1/7] arm/imx6q: add device tree source Shawn Guo
2011-09-28 9:06 ` [PATCH v4 2/7] arm/imx6q: add core definitions and low-level debug uart Shawn Guo
2011-09-29 9:32 ` Russell King - ARM Linux
2011-09-29 14:10 ` Shawn Guo
2011-09-28 9:06 ` [PATCH v4 3/7] arm/imx: add gic_handle_irq function Shawn Guo
2011-09-29 9:34 ` Russell King - ARM Linux
2011-09-29 14:08 ` Shawn Guo
2011-10-01 15:13 ` Russell King - ARM Linux
2011-09-29 14:27 ` Shawn Guo
2011-10-01 13:30 ` Shawn Guo
2011-09-28 9:06 ` [PATCH v4 4/7] arm/imx6q: add core drivers clock, gpc, mmdc and src Shawn Guo
2011-09-28 9:06 ` [PATCH v4 5/7] arm/imx6q: add smp and cpu hotplug support Shawn Guo
2011-09-28 9:06 ` [PATCH v4 6/7] arm/imx6q: add device tree machine support Shawn Guo
2011-09-30 9:01 ` Jamie Iles [this message]
2011-09-30 14:32 ` Shawn Guo
2011-09-28 9:06 ` [PATCH v4 7/7] arm/imx6q: add suspend/resume support Shawn Guo
2011-09-30 21:04 ` [PATCH v4 0/7] add initial imx6q support Arnd Bergmann
2011-10-03 2:40 ` Shawn Guo
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=20110930090156.GS17204@pulham.picochip.com \
--to=jamie@jamieiles.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.