]> git.baikalelectronics.ru Git - kernel.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)
commitae6b0389ddc58770fe527a3bff167a8b65eefb70
tree9d1c6ea05d9754f8ebbf6a840d7ada94bac2f2dc
parentc04518fc81178b70e42940a3d77f28c9fe893a11
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