How to use Glamo interrupts

Andreas Pokorny andreas.pokorny at gmail.com
Mon Jun 15 11:36:23 CEST 2009


Hi there,

just for the record I found the problem. I did not access the irq
registers in my code, because the register constants where defined for
a different offset, and the base pointer i used pointed onto the first
cmdq. The correct sequence seems to be

OnInit:
    Configure CMDQ CTL register to enable irq (or do that later...)

After updateing the Write Pointer:
    enable cmdq interrupt in GLAMO_REG_IRQ_ENABLE if you wish to
receive the IRQ.

Inside the IRQ handler:
    disable cmdq interrupt in GLAMO_REG_IRQ_ENABLE

kind regards
Andreas Pokorny



More information about the openmoko-kernel mailing list