]> git.karo-electronics.de Git - linux-beck.git/commit
GPIO: xilinx: Use __raw_readl/__raw_writel IO functions
authorMichal Simek <michal.simek@xilinx.com>
Mon, 3 Jun 2013 12:31:18 +0000 (14:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 05:46:18 +0000 (07:46 +0200)
commitcc090d61d1a88f30f2fb75a91bce684ad1bd2e94
tree03ad01257776488dea75669bf3c760741eca01df
parent74600ee017557b2ebb669e45237f655e9e2fbac8
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xilinx.c