hi,
I use dm3730,run dvsdk, add dsp code to c6accel, read FPGA data by GPMC, now the GPMC is work correct, i want get a gpio interrupts from FPGA , my code is:
static inline void __raw_writel(unsigned int b, int addr)
{
*(volatile unsigned int *) addr = b;
}
__raw_writel((1<<18) | (1<<24),0x480020d0); //scm Pin muxing mode 4 (gpio 65), inputenable
__raw_writel((1<<1),0x49052034); //OE
__raw_writel((1<<1),0x4905204C); //falling detect
__raw_writel((1<<1),0x4905202C); //gpio module 3 irqenable2
C64_disableIER(1<<6);
HWI_eventMap(6, 75); //gpio 65 in GPIO module 3, so event id is 75
HWI_dispatchPlug(6, (Fxn)dspTimerThread, -1, NULL);
HWI_enable();
C64_enableIER(1<<6);
the question is:my ISR function dspTimerThread is not work.
Read reg gpio3 irq status2(0x49052028), i get 2( gpio 75 is bit 2 in this reg,so this value is right).Read gpio3 data in(0x49052038),it is 0 or 2,it look at gpio single is correct, but read intx status(0x01800180) or ic event flag 3(0x01800000 +0x4 * 2), it is 0 along.
please help me, thanks.