Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279848
b: refs/heads/master
c: c05012c
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Iles authored and Marc Zyngier committed Nov 15, 2011
1 parent fffe6b3 commit 8dd75d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb3a4ebe63194a41b7d4420cbc26732e15aa8242
refs/heads/master: c05012ce9a70100dd547042865df751498244ec3
1 change: 1 addition & 0 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ config ARCH_PICOXCELL
select GENERIC_GPIO
select HAVE_SCHED_CLOCK
select HAVE_TCM
select MULTI_IRQ_HANDLER
select NO_IOPORT
select USE_OF
help
Expand Down
9 changes: 4 additions & 5 deletions trunk/arch/arm/mach-picoxcell/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/irqdomain.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>

#include <asm/mach/arch.h>
Expand All @@ -33,22 +34,20 @@ static const char *picoxcell_dt_match[] = {
};

static const struct of_device_id vic_of_match[] __initconst = {
{ .compatible = "arm,pl192-vic" },
{ .compatible = "arm,pl192-vic", .data = vic_of_init, },
{ /* Sentinel */ }
};

static void __init picoxcell_init_irq(void)
{
vic_init(IO_ADDRESS(PICOXCELL_VIC0_BASE), 0, ~0, 0);
vic_init(IO_ADDRESS(PICOXCELL_VIC1_BASE), 32, ~0, 0);
irq_domain_generate_simple(vic_of_match, PICOXCELL_VIC0_BASE, 0);
irq_domain_generate_simple(vic_of_match, PICOXCELL_VIC1_BASE, 32);
of_irq_init(vic_of_match);
}

DT_MACHINE_START(PICOXCELL, "Picochip picoXcell")
.map_io = picoxcell_map_io,
.nr_irqs = ARCH_NR_IRQS,
.init_irq = picoxcell_init_irq,
.handle_irq = vic_handle_irq,
.timer = &picoxcell_timer,
.init_machine = picoxcell_init_machine,
.dt_compat = picoxcell_dt_match,
Expand Down
11 changes: 4 additions & 7 deletions trunk/arch/arm/mach-picoxcell/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/map.h>
.macro disable_fiq
.endm

#define VA_VIC0 IO_ADDRESS(PICOXCELL_VIC0_BASE)
#define VA_VIC1 IO_ADDRESS(PICOXCELL_VIC1_BASE)

#include <asm/entry-macro-vic2.S>
.macro arch_ret_to_user, tmp1, tmp2
.endm

0 comments on commit 8dd75d4

Please sign in to comment.