This driver supports GRGPIO gpio cores available in the GRLIB VHDL IP
core library from Aeroflex Gaisler.
This also adds support to gpio-generic for using custom accessor
functions. The grgpio driver uses this to use ioread32be and iowrite32be
for big endian register accesses.
Reviewed-by: Anton
On Mon, Feb 04, 2013 at 11:27:33AM +0100, Andreas Larsson wrote:
[...]
> >>2) The grgpio_to_irq function is very hardware specific, and there is of
> >>course no gpio_to_irq support in gpio-generic.
> >
> >Well, the idea about gpio-generic is to use the pieces you need
> >IIRC. You may override.
>
On Wed, 30 Jan 2013 13:28:41 +0100, Andreas Larsson wrote:
> This driver supports GRGPIO gpio cores available in the GRLIB VHDL IP core
> library.
>
> Signed-off-by: Andreas Larsson
Have you looked at drivers/gpio/gpio-generic.c? This looks to me like
yet another memory mapped gpio controller t
On 2013-02-04 10:24, Linus Walleij wrote:
And do you really have and test this regularly on both LE and BE hardware?
I am worrying a bit about maintenance...
I am more than happy to drop that. I will most probably never test this on
LE hardware.
Will someone else? I'm more thinking whether it
(CC:ing Anton who wrote the generic GPIO. I might be wrong.)
On Mon, Feb 4, 2013 at 9:10 AM, Andreas Larsson wrote:
> On 2013-02-02 16:16, Linus Walleij wrote:
>>>
>>> +#if defined(__BIG_ENDIAN)
>>> +static inline u32 grgpio_read_reg(u32 __iomem *reg)
>>> +{
>>> + return ioread32be(reg);
>>
On 2013-02-02 16:16, Linus Walleij wrote:
+#if defined(__BIG_ENDIAN)
+static inline u32 grgpio_read_reg(u32 __iomem *reg)
+{
+ return ioread32be(reg);
+}
+
+static inline void grgpio_write_reg(u32 __iomem *reg, u32 val)
+{
+ iowrite32be(val, reg);
+}
+#else
[...]
Where is this __BIG
On Wed, Jan 30, 2013 at 1:28 PM, Andreas Larsson wrote:
> This driver supports GRGPIO gpio cores available in the GRLIB VHDL IP core
> library.
>
> Signed-off-by: Andreas Larsson
OK...
> +#if defined(__BIG_ENDIAN)
> +static inline u32 grgpio_read_reg(u32 __iomem *reg)
> +{
> + return ior
This driver supports GRGPIO gpio cores available in the GRLIB VHDL IP core
library.
Signed-off-by: Andreas Larsson
---
drivers/gpio/Kconfig |7 +
drivers/gpio/Makefile |1 +
drivers/gpio/gpio-grgpio.c | 313
3 files changed, 321 in
8 matches
Mail list logo