projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d99434e
)
xtensa: xtfpga: fix i2c controller register width and endianness
author
Max Filippov
<jcmvbkbc@gmail.com>
Tue, 25 Aug 2015 15:19:13 +0000
(18:19 +0300)
committer
Chris Zankel
<chris@zankel.net>
Fri, 11 Mar 2016 08:53:32 +0000
(08:53 +0000)
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>
arch/xtensa/boot/dts/xtfpga.dtsi
patch
|
blob
|
history
diff --git
a/arch/xtensa/boot/dts/xtfpga.dtsi
b/arch/xtensa/boot/dts/xtfpga.dtsi
index de133badcdc99d7851c60685dc71b03b3a34343e..f2120be743313d491cf3695a389aa10871ebf265 100644
(file)
--- 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>;