[PATCH] arm/io.h: add macros to read/write big/little endian register

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Feb 23 04:53:45 EST 2012


On Thu, Feb 23, 2012 at 02:47:40PM +0530, Viresh Kumar wrote:
> From: Pratyush Anand <pratyush.anand at st.com>
> 
> There are some peripheral (e.g dwc otg) whose registers can be configured to
> work in either little or big endian mode. Therefore macros like out_be32,
> in_be32, out_le32 and in_le32 have been added to support such peripherals.

NAK.

1. Using the PCI/ISA IO macros for non-PCI/ISA IO purposes is silly
2. We should have readb_be() etc instead.



More information about the linux-arm-kernel mailing list