From: Jamie Iles <jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org> To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> Subject: [PATCH 3/3] versatile: convert to common VIC DT probing Date: Mon, 25 Jul 2011 17:10:00 +0100 [thread overview] Message-ID: <1311610200-12408-4-git-send-email-jamie@jamieiles.com> (raw) In-Reply-To: <1311610200-12408-1-git-send-email-jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org> Use the common VIC probing code in the VIC driver to instantiate the VIC from the DT. Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> Signed-off-by: Jamie Iles <jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org> --- arch/arm/mach-versatile/core.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 15c0091..3f29c01 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c @@ -85,12 +85,6 @@ static struct fpga_irq_data sic_irq = { #define PIC_MASK 0 #endif -/* Lookup table for finding a DT node that represents the vic instance */ -static const struct of_device_id vic_of_match[] __initconst = { - { .compatible = "arm,vic", }, - {} -}; - static const struct of_device_id sic_of_match[] __initconst = { { .compatible = "arm,sic", }, {} @@ -98,8 +92,7 @@ static const struct of_device_id sic_of_match[] __initconst = { void __init versatile_init_irq(void) { - vic_init(VA_VIC_BASE, IRQ_VIC_START, ~0, 0); - irq_domain_generate_simple(vic_of_match, VERSATILE_VIC_BASE, IRQ_VIC_START); + vic_of_init(); writel(~0, VA_SIC_BASE + SIC_IRQ_ENABLE_CLEAR); -- 1.7.4.1
WARNING: multiple messages have this Message-ID (diff)
From: jamie@jamieiles.com (Jamie Iles) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] versatile: convert to common VIC DT probing Date: Mon, 25 Jul 2011 17:10:00 +0100 [thread overview] Message-ID: <1311610200-12408-4-git-send-email-jamie@jamieiles.com> (raw) In-Reply-To: <1311610200-12408-1-git-send-email-jamie@jamieiles.com> Use the common VIC probing code in the VIC driver to instantiate the VIC from the DT. Cc: devicetree-discuss at lists.ozlabs.org Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Jamie Iles <jamie@jamieiles.com> --- arch/arm/mach-versatile/core.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 15c0091..3f29c01 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c @@ -85,12 +85,6 @@ static struct fpga_irq_data sic_irq = { #define PIC_MASK 0 #endif -/* Lookup table for finding a DT node that represents the vic instance */ -static const struct of_device_id vic_of_match[] __initconst = { - { .compatible = "arm,vic", }, - {} -}; - static const struct of_device_id sic_of_match[] __initconst = { { .compatible = "arm,sic", }, {} @@ -98,8 +92,7 @@ static const struct of_device_id sic_of_match[] __initconst = { void __init versatile_init_irq(void) { - vic_init(VA_VIC_BASE, IRQ_VIC_START, ~0, 0); - irq_domain_generate_simple(vic_of_match, VERSATILE_VIC_BASE, IRQ_VIC_START); + vic_of_init(); writel(~0, VA_SIC_BASE + SIC_IRQ_ENABLE_CLEAR); -- 1.7.4.1
next prev parent reply other threads:[~2011-07-25 16:10 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-07-25 16:09 [PATCH 0/3] Add device tree based initialisation for VIC Jamie Iles 2011-07-25 16:09 ` Jamie Iles [not found] ` <1311610200-12408-1-git-send-email-jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org> 2011-07-25 16:09 ` [PATCH 1/3] vic: add device tree bindings Jamie Iles 2011-07-25 16:09 ` Jamie Iles [not found] ` <1311610200-12408-2-git-send-email-jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org> 2011-07-25 20:04 ` Grant Likely 2011-07-25 20:04 ` Grant Likely [not found] ` <20110725200434.GB26735-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org> 2011-07-25 22:31 ` Jamie Iles 2011-07-25 22:31 ` Jamie Iles 2011-07-31 4:11 ` Grant Likely 2011-07-31 4:11 ` Grant Likely [not found] ` <20110731041107.GN24334-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org> 2011-07-31 15:27 ` Jamie Iles 2011-07-31 15:27 ` Jamie Iles 2011-07-25 16:09 ` [PATCH 2/3] versatile dt: set the irq-start property for the vic Jamie Iles 2011-07-25 16:09 ` Jamie Iles 2011-07-25 16:10 ` Jamie Iles [this message] 2011-07-25 16:10 ` [PATCH 3/3] versatile: convert to common VIC DT probing Jamie Iles 2011-07-25 19:54 ` [PATCH 0/3] Add device tree based initialisation for VIC Grant Likely 2011-07-25 19:54 ` Grant Likely 2011-07-25 22:20 ` Jamie Iles 2011-07-25 22:20 ` Jamie Iles
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=1311610200-12408-4-git-send-email-jamie@jamieiles.com \ --to=jamie-wmlquqddiekakbo8gow8eq@public.gmane.org \ --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.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: linkBe 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.