Changeset d46a0055 in rtems for c/src/lib/libcpu/arm


Ignore:
Timestamp:
Aug 22, 2009, 1:59:56 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
b8dfc88
Parents:
1179b5f3
Message:

2009-08-22 Xi Yang <hiyangxi@…>

  • pxa255/include/pxa255.h: Add constants for LCD, Network, and Timer.
  • pxa255/irq/bsp_irq_init.c, pxa255/irq/irq.c, pxa255/irq/irq.h: Change to dummy_handler().
Location:
c/src/lib/libcpu/arm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/ChangeLog

    r1179b5f3 rd46a0055  
     12009-08-22      Xi Yang <hiyangxi@gmail.com>
     2
     3        * pxa255/include/pxa255.h: Add constants for LCD, Network, and Timer.
     4        * pxa255/irq/bsp_irq_init.c, pxa255/irq/irq.c,
     5        pxa255/irq/irq.h: Change to dummy_handler().
     6
    172009-08-18      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libcpu/arm/pxa255/include/pxa255.h

    r1179b5f3 rd46a0055  
    2828#define XSCALE_IRQ_PMU          12
    2929#define XSCALE_IRQ_STUART       20
     30#define XSCALE_IRQ_NETWORK      16
    3031
    3132#define PMU_IRQ             12
     
    107108#define PMC_PMNC_PCD (0x01 << 4)
    108109
     110/*LCD*/
     111#define LCCR0  (*(volatile word_t *)(0x44000000))
     112#define LCCR1  (*(volatile word_t *)(0x44000004))
     113#define LCCR2  (*(volatile word_t *)(0x44000008))
     114#define LCCR3  (*(volatile word_t *)(0x4400000C))
     115
     116#define FDADR0  (*(volatile word_t *)(0x44000200))
     117#define FSADR0  (*(volatile word_t *)(0x44000204))
     118#define FIDR0   (*(volatile word_t *)(0x44000208))
     119#define LDCMD0  (*(volatile word_t *)(0x4400020C))
     120
     121#define FDADR1  (*(volatile word_t *)(0x44000210))
     122#define FSADR1  (*(volatile word_t *)(0x44000214))
     123#define FIDR1   (*(volatile word_t *)(0x44000218))
     124#define LDCMD1  (*(volatile word_t *)(0x4400021C))
     125
     126#define LCCR0_ENB       0x00000001
     127#define LCCR1_PPL       0x000003FF
     128#define LCCR2_LPP       0x000003FF
     129#define LCCR3_BPP       0x07000000
    109130#endif
  • c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c

    r1179b5f3 rd46a0055  
    1414#include <pxa255.h>
    1515
    16 extern void default_int_handler(void);
     16void dummy_handler(uint32_t vector)
     17{
     18  printk("I am dummy handler\n");
     19}
    1720
    1821void (*IRQ_table[PRIMARY_IRQS])(uint32_t vector);
     
    2831  /* Initialize the vector table contents with default handler */
    2932  for (i=0; i<PRIMARY_IRQS; i++) {
    30     IRQ_table[i] = default_int_handler;
     33    IRQ_table[i] = dummy_handler;
    3134  }
    3235
  • c/src/lib/libcpu/arm/pxa255/irq/irq.c

    r1179b5f3 rd46a0055  
    4444     * convert it to a long word offset to get source's vector register
    4545     */
    46         if (IRQ_table[irq->name]!= default_int_handler) {
     46        if (IRQ_table[irq->name] != dummy_handler) {
    4747        return 0;
    4848        }
     
    8888     * Check if the handler is actually connected. If not, issue an error.
    8989     */
    90     if (IRQ_table[irq->name]!= irq->hdl) {
     90    if (IRQ_table[irq->name] != irq->hdl) {
    9191      return 0;
    9292    }
     
    108108     * restore the default irq value
    109109     */
    110     IRQ_table[irq->name] = default_int_handler;
     110    IRQ_table[irq->name] = dummy_handler;
    111111   
    112112    _CPU_ISR_Enable(level);
  • c/src/lib/libcpu/arm/pxa255/irq/irq.h

    r1179b5f3 rd46a0055  
    2828extern void default_int_handler();
    2929extern void (*IRQ_table[PRIMARY_IRQS])(uint32_t vector);
     30extern void dummy_handler(uint32_t vector);
    3031
    3132
Note: See TracChangeset for help on using the changeset viewer.