> I've removed the ethernet phy from the RSK and soldered a wire to the ETH_IRQ signal.
On the RZ/A1 RSK board, the ET_IRQ signal goes back to P4_14/IRQ6.
You must change port 4_14 from GPIO into an interrupt pin using the r7s72100_pfc_pin_assign function
r7s72100_pfc_pin_assign(P4_14, ALT8, DIIO_PBDC_DIS); /* IRQ6 */
In the RZ/A hardware manual, in "Table 7.3 List of Interrupt IDs", 'IRQ6' is vector number 38
To register that interrupt pin to a function, you would use the number 38:
void my_isr_function(int irq, void *dev_id)
{
return IRQ_HANDLED;
}
request_irq( 38, my_isr_function, 0, "wilink8",NULL);
To set how you want it triggered (high level, low edge, etc..)
refer to Interrupt Control Register 1 and use the code below to set it.
/* Manually set IRQ6 trigger in Interrupt Control Register 1 */
void __iomem *irc1 = IOMEM(0xfcfef802);
u16 value;
value = __raw_readw(irc1);
value &= ~(0x3 << 12); /* clear both bits for IRQ6 */
value |= (0x1 << 12); /* set IRQ6 bit for falling edge ........or whatever you want........*/
__raw_writew(value, irc1);
}