diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-11 17:08:26 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-03-11 17:08:26 +0000 |
commit | a968dcbf6d472923463daee689e61867f32b1c5b (patch) | |
tree | 094f3ba89286cbe90a82e11e7dae59c3a96d439d /tools/elftosb | |
parent | 34bf978c3baa68bd7004d112e9f310cf6a2073d6 (diff) | |
download | master-187ad058-a968dcbf6d472923463daee689e61867f32b1c5b.tar.gz master-187ad058-a968dcbf6d472923463daee689e61867f32b1c5b.tar.bz2 master-187ad058-a968dcbf6d472923463daee689e61867f32b1c5b.zip |
lantiq: Use platform endianness when accessing dwc2 registers
This patch switches calls to readl/writel to their
dwc2_readl/dwc2_writel equivalents which preserve platform endianness.
This patch is necessary to access dwc2 registers correctly on big
endian systems such as the mips based SoCs made by Lantiq. Then dwc2
can be used to replace ifx-hcd driver for Lantiq platforms found e.g.
in OpenWrt.
The patch was autogenerated with the following commands:
$EDITOR core.h
sed -i "s/\<readl\>/dwc2_readl/g" *.c hcd.h hw.h
sed -i "s/\<writel\>/dwc2_writel/g" *.c hcd.h hw.h
Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44675 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/elftosb')
0 files changed, 0 insertions, 0 deletions