diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-06-26 13:22:05 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-07-23 01:18:25 -0400 |
commit | 82ed5f73eddf72af797bfc2736f9ef4b64316ed4 (patch) | |
tree | ba12befd256c68bff65632c3664f276eabc6e530 /arch/blackfin/mach-common/ints-priority.c | |
parent | b69c920cb11dde488239e6a4ea7f668983d628ac (diff) |
Blackfin: bf54x: switch to common pint MMR struct
We have a struct in the headers describing the register layout, so
drop the local duplicate one.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-common/ints-priority.c')
-rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index 132e701cfd5f..72ca67e48d81 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c | |||
@@ -647,24 +647,11 @@ void bfin_demux_gpio_irq(unsigned int inta_irq, | |||
647 | static unsigned char irq2pint_lut[NR_PINTS]; | 647 | static unsigned char irq2pint_lut[NR_PINTS]; |
648 | static unsigned char pint2irq_lut[NR_PINT_SYS_IRQS * NR_PINT_BITS]; | 648 | static unsigned char pint2irq_lut[NR_PINT_SYS_IRQS * NR_PINT_BITS]; |
649 | 649 | ||
650 | struct pin_int_t { | 650 | static struct bfin_pint_regs * const pint[NR_PINT_SYS_IRQS] = { |
651 | unsigned int mask_set; | 651 | (struct bfin_pint_regs *)PINT0_MASK_SET, |
652 | unsigned int mask_clear; | 652 | (struct bfin_pint_regs *)PINT1_MASK_SET, |
653 | unsigned int request; | 653 | (struct bfin_pint_regs *)PINT2_MASK_SET, |
654 | unsigned int assign; | 654 | (struct bfin_pint_regs *)PINT3_MASK_SET, |
655 | unsigned int edge_set; | ||
656 | unsigned int edge_clear; | ||
657 | unsigned int invert_set; | ||
658 | unsigned int invert_clear; | ||
659 | unsigned int pinstate; | ||
660 | unsigned int latch; | ||
661 | }; | ||
662 | |||
663 | static struct pin_int_t * const pint[NR_PINT_SYS_IRQS] = { | ||
664 | (struct pin_int_t *)PINT0_MASK_SET, | ||
665 | (struct pin_int_t *)PINT1_MASK_SET, | ||
666 | (struct pin_int_t *)PINT2_MASK_SET, | ||
667 | (struct pin_int_t *)PINT3_MASK_SET, | ||
668 | }; | 655 | }; |
669 | 656 | ||
670 | inline unsigned int get_irq_base(u32 bank, u8 bmap) | 657 | inline unsigned int get_irq_base(u32 bank, u8 bmap) |