Skip to contentSkip to conversation

gpio: Add GPIO driver for Marvell SoC Armada100

PATCH Superseded Ajay Bhargav 2 participants 4 messages Jul 22, 2011 – Jul 29, 2011 1 message not in the archive

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 2/2 gpio: Add GPIO driver for Marvell SoC Armada100

Hi Lei,
Thank you for confirming.

Quoted 2 lines

What do you mean by "changed back to Armada100 gpio"?

Well just incase GPIO register set is different for different archs this current driver need to be renamed as armada100 gpio.

So if other Marvell SoCs are having similar register set then we can have a common gpio header file like earlier version of this patch "mvgpio.h"

Regards,
Ajay Bhargav

#2 lore raw

PATCH v2 2/2 gpio: Add GPIO driver for Marvell SoC Armada100

Quoted 16 lines

-----Original Message-----
From: Ajay Bhargav [mailto:ajay.bhargav at einfochips.com]
Sent: Friday, July 22, 2011 3:34 PM
To: Lei Wen
Cc: Prafulla Wadaskar; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH v2 2/2] gpio: Add GPIO driver for Marvell SoC Armada100

Hi Lei,
Thank you for confirming.

Quoted 2 lines

What do you mean by "changed back to Armada100 gpio"?

Quoted 6 lines

Well just incase GPIO register set is different for different archs this current driver need to be renamed as armada100 gpio.

So if other Marvell SoCs are having similar register set then we can have a common gpio header file like earlier version of this patch "mvgpio.h"

The main objective of having mvgpio.c is to share/reuse a driver code across several SoCs.

If most of the SoCs (what we know) have similar register definition, it makes sense to keep them in mvgpio.c

What may differ for each SOC is that- base addresses, number of GPIOs, number of GPIO Banks, that should go in asm/arch/gpio.h

If any future SoC follows totally different GPIO architecture, we can always have <soc_name>_gpio.c.

Regards..
Prafulla . .

Quoted 3 lines

Regards,
Ajay Bhargav

#3 lore raw

PATCH v2 2/2 gpio: Add GPIO driver for Marvell SoC Armada100

Quoted 6 lines · ----- "Prafulla Wadaskar

The main objective of having mvgpio.c is to share/reuse a driver code across several SoCs.

If most of the SoCs (what we know) have similar register definition, it makes sense to keep them in mvgpio.c

Quoted 9 lines

What may differ for each SOC is that- base addresses, number of GPIOs, number of GPIO Banks, that should go in asm/arch/gpio.h

If any future SoC follows totally different GPIO architecture, we can always have _gpio.c.

Regards..
Prafulla . .

So what about v2 patches i sent? I did things accordingly you said. can you please review them and let me know if any changes are required.

Regards,
Ajay Bhargav

#4 lore raw

PATCH v2 2/2 gpio: Add GPIO driver for Marvell SoC Armada100

In reply to Prafulla Wadaskar

Hi Prafulla,

Any comments on the GPIO patches? Is there any modifications you suggest?

Regards,
Ajay Bhargav