From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ajay Bhargav Date: Wed, 10 Aug 2011 13:36:48 +0530 (IST) Subject: [U-Boot] [PATCH v3 2/2] gpio: Add GPIO driver for Marvell SoC Armada100 In-Reply-To: Message-ID: <539775507.72547.1312963608728.JavaMail.root@ahm.einfochips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de ----- "Prafulla Wadaskar" wrote: > > I suggest below code for this function. > { > Const unsigned int offset[4] = {0, 4, 8, 0x100}; /* gpio register > bank offsets */ > return (struct gpio_reg *)(ARMD1_GPIO_BASE + offset[bank]); > } > > Again content in this file are SoC core specific and will duplicate > for other SoC supports like pantheon. > > Can you please move them to mvgpio.h within #ifdef > CONFIG_SHEEVA_88SV331xV5? > I think this should be the final modification for this driver > support. > > Sorry for the rework. > > Regards.. > Prafulla . . > Hi Prafulla, Can you please tell me what part of code should be moved to mvgpio.h? I have no idea about number of banks in other SOCs with same core. I will do the changes as per suggestion. Thanks & Regards, Ajay Bhargav