Commit c8ae67fe authored by Pankaj Bansal's avatar Pankaj Bansal Committed by Marc Kleine-Budde

powerpc: dts: P1010: Add endianness property to flexcan node

The flexcan driver assumed that flexcan controller is big endian for
powerpc architecture and little endian for other architectures.

But this is not universally true. flexcan controller can be little or
big endian on any architecture.

Therefore the flexcan driver has been modified to check for "big-endian"
device tree property for controllers that are big endian.

consequently add the property to freescale P1010 SOC device tree.
Signed-off-by: default avatarPankaj Bansal <pankaj.bansal@nxp.com>
Reviewed-by: default avatarPoonam Aggrwal <poonam.aggrwal@nxp.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 525d70a9
...@@ -137,12 +137,14 @@ can0: can@1c000 { ...@@ -137,12 +137,14 @@ can0: can@1c000 {
compatible = "fsl,p1010-flexcan"; compatible = "fsl,p1010-flexcan";
reg = <0x1c000 0x1000>; reg = <0x1c000 0x1000>;
interrupts = <48 0x2 0 0>; interrupts = <48 0x2 0 0>;
big-endian;
}; };
can1: can@1d000 { can1: can@1d000 {
compatible = "fsl,p1010-flexcan"; compatible = "fsl,p1010-flexcan";
reg = <0x1d000 0x1000>; reg = <0x1d000 0x1000>;
interrupts = <61 0x2 0 0>; interrupts = <61 0x2 0 0>;
big-endian;
}; };
L2: l2-cache-controller@20000 { L2: l2-cache-controller@20000 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment