linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: eric.y.miao@gmail.com (Eric Miao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/6] arm/imx6q: add core definitions and low-level debug uart
Date: Mon, 19 Sep 2011 17:45:59 +0800	[thread overview]
Message-ID: <CAMPhdO-MWPo8xAF12O2cehfT8a4zmpY0zCVZBQGUsS42-LzQrw@mail.gmail.com> (raw)
In-Reply-To: <20110919093516.GK31404@pengutronix.de>

On Mon, Sep 19, 2011 at 5:35 PM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> On Thu, Sep 15, 2011 at 10:45:22PM +0800, Shawn Guo wrote:
>> It adds the core definitions and low-level debug uart support
>> for imx6q.
>>
>>
>> ?#define UART_VADDR ? IMX_IO_ADDRESS(UART_PADDR)
>> diff --git a/arch/arm/plat-mxc/include/mach/entry-macro.S b/arch/arm/plat-mxc/include/mach/entry-macro.S
>> index 066d464..341f800 100644
>> --- a/arch/arm/plat-mxc/include/mach/entry-macro.S
>> +++ b/arch/arm/plat-mxc/include/mach/entry-macro.S
>> @@ -1,6 +1,6 @@
>> ?/*
>> ? * ?Copyright (C) 2007 Lennert Buytenhek <buytenh@wantstofly.org>
>> - * ?Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved.
>> + * ?Copyright 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved.
>> ? */
>>
>> ?/*
>> @@ -11,6 +11,17 @@
>>
>> ?#include <mach/hardware.h>
>>
>> +#ifdef CONFIG_ARM_GIC
>> +#include <asm/hardware/entry-macro-gic.S>
>> +
>> + ? ? .macro ?disable_fiq
>> + ? ? .endm
>> +
>> + ? ? .macro ?arch_ret_to_user, tmp1, tmp2
>> + ? ? .endm
>> +
>> +#else
>
> That's the third interrupt entry code handled here with ifdefs. I
> remember there was some infrastructure to have multiple irq
> controllers. I can't find any pointers, but I think Eric (added him
> to Cc) told me about it.
> As this is also the last roadblock to compile i.MX3 and i.MX5 into a
> single kernel this might be the right moment to work on this.

It's CONFIG_MULTIPLE_IRQ_HANDLER. And check arch/arm/mach-pxa/irq.c
for example. Basically to use a C function to handle the interrupts, and
have each machine to specify the correct handler.

E.g. in pxa - there are pxa25x_handle_irq, pxa3xx_handle_irq ...

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

  reply	other threads:[~2011-09-19  9:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15 14:45 [PATCH v2 0/6] add initial imx6q support Shawn Guo
2011-09-15 14:45 ` [PATCH v2 1/6] arm/imx6q: add device tree source Shawn Guo
2011-09-15 14:45 ` [PATCH v2 2/6] arm/imx6q: add core definitions and low-level debug uart Shawn Guo
2011-09-19  9:35   ` Sascha Hauer
2011-09-19  9:45     ` Eric Miao [this message]
2011-09-19  9:55       ` Sascha Hauer
2011-09-19  9:58         ` Eric Miao
2011-09-19 14:21         ` Shawn Guo
2011-09-15 14:45 ` [PATCH v2 3/6] arm/imx6q: add core drivers clock, gpc, mmdc and src Shawn Guo
2011-09-15 14:45 ` [PATCH v2 4/6] arm/imx6q: add smp and cpu hotplug support Shawn Guo
2011-09-15 14:45 ` [PATCH v2 5/6] arm/imx6q: add device tree machine support Shawn Guo
2011-09-15 14:45 ` [PATCH v2 6/6] arm/imx6q: add suspend/resume support Shawn Guo
2011-09-15 16:28   ` Lorenzo Pieralisi
2011-09-16  6:09     ` Shawn Guo
2011-09-16 14:45       ` Lorenzo Pieralisi
2011-09-17  8:30         ` Shawn Guo
2011-09-17 12:32           ` Shawn Guo
2011-09-20 15:35           ` Lorenzo Pieralisi

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=CAMPhdO-MWPo8xAF12O2cehfT8a4zmpY0zCVZBQGUsS42-LzQrw@mail.gmail.com \
    --to=eric.y.miao@gmail.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 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).