]> git.baikalelectronics.ru Git - kernel.git/commit
fsl/mpic: Document and use the "big-endian" device-tree flag
authorKyle Moffett <Kyle.D.Moffett@boeing.com>
Thu, 22 Dec 2011 10:19:10 +0000 (10:19 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 22 Feb 2012 23:49:58 +0000 (10:49 +1100)
commit9c37e502c9370008a9f28d3b040f70385f453020
treee87824ccffa41ac62898947a680c0c7d0f53db2e
parentba28dd6266d37b860f6c5f5938370a18fd45ebc3
fsl/mpic: Document and use the "big-endian" device-tree flag

The MPIC code checks for a "big-endian" property and sets the flag
MPIC_BIG_ENDIAN if one is present, although prior to the "mpic->flags"
fixup that would never have worked anways.

Unfortunately, even now that it works properly, the Freescale mpic
device-node (the "PowerQUICC-III"-compatible one) does not specify it,
so all of the board ports need to manually pass it to mpic_alloc().

Document the flag and add it to the pq3 device tree.  Existing code will
still need to pass the MPIC_BIG_ENDIAN flag because their dtb may not
have this property, but new platforms shouldn't need to do so.

Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Documentation/devicetree/bindings/powerpc/fsl/mpic.txt
arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi