Skip to content

Commit c8ae67f

Browse files
pankajbansalnxpmarckleinebudde
authored andcommitted
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: Pankaj Bansal <[email protected]> Reviewed-by: Poonam Aggrwal <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 525d70a commit c8ae67f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/powerpc/boot/dts/fsl/p1010si-post.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,14 @@
137137
compatible = "fsl,p1010-flexcan";
138138
reg = <0x1c000 0x1000>;
139139
interrupts = <48 0x2 0 0>;
140+
big-endian;
140141
};
141142

142143
can1: can@1d000 {
143144
compatible = "fsl,p1010-flexcan";
144145
reg = <0x1d000 0x1000>;
145146
interrupts = <61 0x2 0 0>;
147+
big-endian;
146148
};
147149

148150
L2: l2-cache-controller@20000 {

0 commit comments

Comments
 (0)