summaryrefslogtreecommitdiff
path: root/arch/mips/boot/dts/brcm/bcm7360.dtsi
diff options
context:
space:
mode:
authorSimon Arlott <simon@fire.lp0.eu>2015-10-29 19:58:47 +0000
committerMark Brown <broonie@kernel.org>2015-11-16 09:43:54 +0000
commit29bb45f25ff3051354ed330c0d0f10418a2b8c7c (patch)
treea9fb3b022d66d5c87f7a41727d22b6ff0eabf3d2 /arch/mips/boot/dts/brcm/bcm7360.dtsi
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
regmap-mmio: Use native endianness for read/write
The regmap API has an endianness setting for formatting reads and writes. This can be set by the usual DT "little-endian" and "big-endian" properties. To work properly the associated regmap_bus needs to read/write in native endian. The "syscon" DT device binding creates an mmio-based regmap_bus which performs all reads/writes as little-endian. These values are then converted again by regmap, which means that all of the MIPS BCM boards (which are big-endian) have been declared as "little-endian" to get regmap to convert them back to big-endian. Modify regmap-mmio to use the native-endian functions __raw_read*() and __raw_write*() instead of the little-endian functions read*() and write*(). Modify the big-endian MIPS BCM boards to use what will now be the correct endianness instead of pretending that the devices are little-endian. Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'arch/mips/boot/dts/brcm/bcm7360.dtsi')
-rw-r--r--arch/mips/boot/dts/brcm/bcm7360.dtsi1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/mips/boot/dts/brcm/bcm7360.dtsi b/arch/mips/boot/dts/brcm/bcm7360.dtsi
index 7e5f76040fb8..0dcc9163c27b 100644
--- a/arch/mips/boot/dts/brcm/bcm7360.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7360.dtsi
@@ -112,7 +112,6 @@
sun_top_ctrl: syscon@404000 {
compatible = "brcm,bcm7360-sun-top-ctrl", "syscon";
reg = <0x404000 0x51c>;
- little-endian;
};
reboot {