]> git.karo-electronics.de Git - linux-beck.git/commit
m68k/atari: EtherNAT - add interrupt chip definition for CPLD interrupts
authorMichael Schmitz <schmitzmic@gmail.com>
Sat, 6 Apr 2013 00:26:43 +0000 (13:26 +1300)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 16 Apr 2013 19:35:39 +0000 (21:35 +0200)
commite6f80e87e05cc47188a141f68e9859ed438b4489
tree9d1c6ea05d9754f8ebbf6a840d7ada94bac2f2dc
parent1d87a8f2911fe6c22416f4a5dc5e0362f5bb9ef4
m68k/atari: EtherNAT - add interrupt chip definition for CPLD interrupts

Add a dedicated interrupt chip definition for the EtherNAT CPLD interrupts.
SMC91C111 and ISP1160 chips have separate interrupts that can be enabled
and disabled in a CPLD register at offset 0x23 from the card base.

Note the CPLD interrupt control register is mapped on demand, whenever any
interrupt enable/disable action is requested. The EtherNAT USB driver still
needs interrupts disabled around reset and start actions.
In particular, we cannot entirely rely on the irq_startup being called
first.

The smc91x and isp116x-hcd drivers will use this feature.

Signed-off-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/atari/ataints.c