gpio: Add GPIO driver for Marvell SoC Armada100
PATCH v2 2/2 gpio: Add GPIO driver for Marvell SoC Armada100
In reply to a message not in the archiveHi 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
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 Armada100Hi 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
PATCH v2 2/2 gpio: Add GPIO driver for Marvell SoC Armada100
Quoted 6 lines · ----- "Prafulla Wadaskar
The main objective of having
mvgpio.cis 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.hIf 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
PATCH v2 2/2 gpio: Add GPIO driver for Marvell SoC Armada100
In reply to Prafulla WadaskarHi Prafulla,
Any comments on the GPIO patches? Is there any modifications you suggest?
Regards,
Ajay Bhargav