gpio: Add GPIO driver for Marvell SoC Armada100
PATCH v3 2/2 gpio: Add GPIO driver for Marvell SoC Armada100
In reply to a message not in the archiveQuoted 44 lines · ----- "Prafulla Wadaskar
Quoted 9 lines
-----Original Message-----
From: Ajay Bhargav [mailto:ajay.bhargav at einfochips.com]
Sent: Wednesday, August 10, 2011 1:37 PM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Ashish Karkare; Prabhanjan Sarnaik
Subject: Re: [PATCH v3 2/2] gpio: Add GPIO driver for Marvell SoC Armada100Quoted 6 lines
Quoted 4 lines · ----- "Prafulla Wadaskar
I suggest below code for this function.
{
Const unsigned int offset[4] = {0, 4, 8,0x100}; /* gpioregister
Quoted 5 lines
Quoted 5 lines
bank offsets */
return (structgpio_reg*)(ARMD1_GPIO_BASE + offset[bank]);
}Again content in this file are SoC core specific and will
duplicate
Quoted 9 lines
Quoted 9 lines
for other SoC supports like pantheon.
Can you please move them to
mvgpio.hwithin #ifdefCONFIG_SHEEVA_88SV331xV5?
I think this should be the final modification for this driver support.Sorry for the rework.
Quoted 7 lines
Quoted 3 lines
Regards..
Prafulla . .Hi Prafulla,
Can you please tell me what part of code should be moved to
mvgpio.h?You should move entire contents of
gpio.hinmvgpio.hwithin #ifdefCONFIG_SHEEVA_88SV331xV5, so just mvgpio.c,mvgpio.h,Makefile will add armada100 gpio driver support in more generic way.
Quoted 8 lines
Quoted 1 line
I have no idea about number of banks in other SOCs with same core.
No need to worry, at this moment this driver will be supporting 88SV331xv5 core only.
Regards..
Prafulla . .
I feel it is important to keep gpio.h in arch folder, 'coz if someone enables GPIO command support, generic library header (asm/gpio.h) will look for asm/arch/gpio.h file. we can simply include mvgpio.h in gpio.h incase of armada100.
Regards,
Ajay Bhargav