4.104.115
Line | |
---|
1 | /* |
---|
2 | * PXA255 interrupt controller by Yang Xi <hiyangxi@gmail.com> |
---|
3 | * Copyright (c) 2004 by Jay Monkman <jtm@lopgindog.com> |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #include <irq.h> |
---|
13 | #include <bsp.h> |
---|
14 | #include <pxa255.h> |
---|
15 | |
---|
16 | void dummy_handler(uint32_t vector) |
---|
17 | { |
---|
18 | printk("I am dummy handler\n"); |
---|
19 | } |
---|
20 | |
---|
21 | void (*IRQ_table[PRIMARY_IRQS])(uint32_t vector); |
---|
22 | |
---|
23 | /* |
---|
24 | * Interrupt system initialization. Disable interrupts, clear |
---|
25 | * any that are pending. |
---|
26 | */ |
---|
27 | void BSP_rtems_irq_mngt_init(void) |
---|
28 | { |
---|
29 | int i; |
---|
30 | |
---|
31 | /* Initialize the vector table contents with default handler */ |
---|
32 | for (i=0; i<PRIMARY_IRQS; i++) { |
---|
33 | IRQ_table[i] = dummy_handler; |
---|
34 | } |
---|
35 | |
---|
36 | /* disable all interrupts */ |
---|
37 | XSCALE_INT_ICMR = 0x0; |
---|
38 | |
---|
39 | /* Direct the interrupt to IRQ*/ |
---|
40 | XSCALE_INT_ICLR = 0x0; |
---|
41 | } |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.