]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
GPIO: xilinx: Use __raw_readl/__raw_writel IO functions
authorMichal Simek <michal.simek@xilinx.com>
Mon, 3 Jun 2013 11:54:47 +0000 (13:54 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 17 Jun 2013 06:32:51 +0000 (08:32 +0200)
commit386b81db46cd3be3827da9d2dde54d57a0c20f7f
tree0d8a2be226da004635c06f31f1ef777bf5494226
parentb23d352f6774a38ab809db2135beb3c0bf579a8c
GPIO: xilinx: Use __raw_readl/__raw_writel IO functions

This driver can be used on Xilinx ARM Zynq platform
where in_be32/out_be32 functions are not implemented.
Use __raw_readl/__raw_writel functions which are
implemented on Microblaze and PowerPC.
For ARM readl/writel functions are used instead.

The correct way how to implement this is to detect
endians directly on IP. But for the gpio case
without interrupt connected(it means without
interrupt logic) there are just 2 registers
data and tristate where auto detection can't be done.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpio/gpio-xilinx.c