瀏覽代碼

xtensa: xtfpga: fix i2c controller register width and endianness

I2C controller is attached to XTFPGA boards as native endian device, mark
it as such in DTS.
Set register width in DTS to 4, this way it works both for little- and
big-endian CPUs.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Max Filippov 10 年之前
父節點
當前提交
bce299ca54
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/xtensa/boot/dts/xtfpga.dtsi

+ 2 - 1
arch/xtensa/boot/dts/xtfpga.dtsi

@@ -89,7 +89,8 @@
 			#size-cells = <0>;
 			#size-cells = <0>;
 			reg = <0x0d090000 0x20>;
 			reg = <0x0d090000 0x20>;
 			reg-shift = <2>;
 			reg-shift = <2>;
-			reg-io-width = <1>;
+			reg-io-width = <4>;
+			native-endian;
 			interrupts = <4 1>;
 			interrupts = <4 1>;
 			clocks = <&osc>;
 			clocks = <&osc>;