powerpc: Make MPIC honor the "pic-no-reset" device tree property
authorMeador Inge <meador_inge@mentor.com>
Mon, 14 Mar 2011 10:01:06 +0000 (10:01 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 21 Mar 2011 00:01:32 +0000 (11:01 +1100)
commitdfec2202729e2460d67649a04756f0c3d8dcd8a6
tree276d05c28bb7b1f8c170b118a6e81c37e86ea6fb
parenta99eff39c0549fe68fed150d39ec0c750e5ce1f1
powerpc: Make MPIC honor the "pic-no-reset" device tree property

This property, defined in the Open PIC binding, tells the kernel not to use
the reset bit in the global configuration register.  Additionally, its
presence mandates that only sources which are actually used (i.e. appear in
the device tree) should have their VECPRI bits initialized.

Although, "pic-no-reset" can be used for the same use cases that
"protected-sources" is covering, the "protected-sources" implementation was
left completely intact.  This is a more pragmatic approach as there are
already several existing systems which use protected sources.  If
"pic-no-reset" *and* "protected-sources" are both used, however, then
"pic-no-reset" takes precedence in terms of the init behavior and the
sanity checks done by protected sources will still take place.

Signed-off-by: Meador Inge <meador_inge@mentor.com>
Cc: Hollis Blanchard <hollis_blanchard@mentor.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/mpic.h
arch/powerpc/sysdev/mpic.c