From: Max Filippov Date: Tue, 25 Aug 2015 15:19:13 +0000 (+0300) Subject: xtensa: xtfpga: fix i2c controller register width and endianness X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bce299ca54735740a4f2232d23001dea679fbbef;p=deliverable%2Flinux.git 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 --- diff --git a/arch/xtensa/boot/dts/xtfpga.dtsi b/arch/xtensa/boot/dts/xtfpga.dtsi index de133badcdc9..f2120be74331 100644 --- a/arch/xtensa/boot/dts/xtfpga.dtsi +++ b/arch/xtensa/boot/dts/xtfpga.dtsi @@ -89,7 +89,8 @@ #size-cells = <0>; reg = <0x0d090000 0x20>; reg-shift = <2>; - reg-io-width = <1>; + reg-io-width = <4>; + native-endian; interrupts = <4 1>; clocks = <&osc>;