From: John Crispin <blogic@openwrt.org>
To: linux-mips@linux-mips.org,
Jeffrey Deans <Jeffrey.Deans@imgtec.com>,
Andrew Bresticker <abrestic@chromium.org>
Subject: Re: [PATCH 1/2] MIPS: ralink: add gic support
Date: Fri, 10 Oct 2014 19:36:28 +0200 [thread overview]
Message-ID: <5438191C.5030402@openwrt.org> (raw)
In-Reply-To: <CAL1qeaHPSdLwec5-V8PHLuyicgNUF74vO0gY7Y7U2k-etQ7eBw@mail.gmail.com>
On 10/10/2014 19:01, Andrew Bresticker wrote:
> Hi John,
>
> On Fri, Oct 10, 2014 at 2:34 AM, John Crispin <blogic@openwrt.org>
> wrote:
>> The mt7621 has a GIC. rather than handle both irq coree in one
>> file we add a secondary irq-gic.c.
>
> Why not use the current GIC driver that I've been fixing up? I
> believe Ralf will be applying the first set of clean-ups soon and
> I'm planning on doing additional clean-up and adding device-tree
> support. I have a work-in-progress branch here if you're
> interested: https://github.com/abrestic/linux/tree/mips-gic-dt-wip
Hi,
yep, already stumbled across those patches. i will send an updated
version start of the week. thanks for the link. I will ping you if i
have questions.
John
>
>> diff --git a/arch/mips/ralink/irq-gic.c
>> b/arch/mips/ralink/irq-gic.c new file mode 100644 index
>> 0000000..0ae7ea0 --- /dev/null +++ b/arch/mips/ralink/irq-gic.c
>
>> +static int __init +of_gic_init(struct device_node *node, +
>> struct device_node *parent)
>
>> + if (of_address_to_resource(node, 2, &gcmp)) +
>> panic("Failed to get gic memory range"); + if
>> (request_mem_region(gcmp.start, resource_size(&gcmp), +
>> gcmp.name) < 0) + panic("Failed to request gcmp
>> memory");
>
> Ah, so this SoC has a CM2 as well. Is it at the address reported
> by C0_CMGCRBase? If so, then mips_cm_probe() will be able to find
> it and set it up. Otherwise, device-tree based probing should
> probably be added to the mips-cm driver.
>
>
next prev parent reply other threads:[~2014-10-10 17:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-10 9:34 [PATCH 1/2] MIPS: ralink: add gic support John Crispin
2014-10-10 9:34 ` [PATCH 2/2] MIPS: ralink: add MT7621 support John Crispin
2014-10-10 17:29 ` Andrew Bresticker
2014-10-10 17:01 ` [PATCH 1/2] MIPS: ralink: add gic support Andrew Bresticker
2014-10-10 17:36 ` John Crispin [this message]
2014-10-16 9:06 ` John Crispin
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=5438191C.5030402@openwrt.org \
--to=blogic@openwrt.org \
--cc=Jeffrey.Deans@imgtec.com \
--cc=abrestic@chromium.org \
--cc=linux-mips@linux-mips.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.