Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c

    r3c9646b r69483af  
    6060
    6161static struct beagleboard {
    62         omap_irc_regs_t *irc_addr;
     62        amdm37x_irc_regs_t *irc_addr;
    6363        omap_uart_t uart;
    6464        amdm37x_gpt_t timer;
     
    8585static void bb_timer_irq_handler(irq_t *irq)
    8686{
    87         amdm37x_gpt_irq_ack(&beagleboard.timer);
    88 
    8987        /*
    9088         * We are holding a lock which prevents preemption.
    9189         * Release the lock, call clock() and reacquire the lock again.
    9290         */
     91        amdm37x_gpt_irq_ack(&beagleboard.timer);
    9392        spinlock_unlock(&irq->lock);
    9493        clock();
     
    103102            PAGE_NOT_CACHEABLE);
    104103        ASSERT(beagleboard.irc_addr);
    105         omap_irc_init(beagleboard.irc_addr);
     104        amdm37x_irc_init(beagleboard.irc_addr);
    106105
    107106        /* Initialize timer. Use timer1, because it is in WKUP power domain
     
    123122
    124123        /* Enable timer interrupt */
    125         omap_irc_enable(beagleboard.irc_addr, AMDM37x_GPT1_IRQ);
     124        amdm37x_irc_enable(beagleboard.irc_addr, AMDM37x_GPT1_IRQ);
    126125
    127126        /* Start timer here */
     
    147146static void bbxm_irq_exception(unsigned int exc_no, istate_t *istate)
    148147{
    149         const unsigned inum = omap_irc_inum_get(beagleboard.irc_addr);
     148        const unsigned inum = amdm37x_irc_inum_get(beagleboard.irc_addr);
     149        amdm37x_irc_irq_ack(beagleboard.irc_addr);
    150150
    151151        irq_t *irq = irq_dispatch_and_lock(inum);
     
    159159                    CPU->id, inum);
    160160        }
    161         /** amdm37x manual ch. 12.5.2 (p. 2428) places irc ack at the end
    162          * of ISR. DO this to avoid strange behavior. */
    163         omap_irc_irq_ack(beagleboard.irc_addr);
    164161}
    165162
     
    188185                indev_t *srln = srln_wire(srln_instance, sink);
    189186                omap_uart_input_wire(&beagleboard.uart, srln);
    190                 omap_irc_enable(beagleboard.irc_addr, AMDM37x_UART3_IRQ);
     187                amdm37x_irc_enable(beagleboard.irc_addr, AMDM37x_UART3_IRQ);
    191188        }
    192189#endif
Note: See TracChangeset for help on using the changeset viewer.