MN10300: Clear ASB2364 peripheral interrupt masks before enabling interrupts
authorDavid Howells <dhowells@redhat.com>
Fri, 18 Mar 2011 16:52:54 +0000 (16:52 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 18 Mar 2011 16:52:54 +0000 (16:52 +0000)
commitddb7d1e975d224885397c002512ded987be3c3bc
treec24cbe7132c243450aa11939f4d88a2bde8ed6e0
parent02b2944cd70c3166984699dd623612e2f8a3eebf
MN10300: Clear ASB2364 peripheral interrupt masks before enabling interrupts

Clear the interrupt mask registers of ASB2364 peripherals before enabling
interrupts so that any peripherals that weren't dealt with by the bootloader
after a reboot (if there was one) won't cause an interrupt storm when
interrupts are first enabled before the drivers are initialised.

Also, attempt to reset the peripherals attached to the FPGA.

Signed-off-by: David Howells <dhowells@redhat.com>
arch/mn10300/unit-asb2364/irq-fpga.c
arch/mn10300/unit-asb2364/unit-init.c