From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 20 Jul 2011 14:19:03 +0200 Subject: [U-Boot] [PATCH 1/4] gpio: Adds GPIO driver support for Armada100 In-Reply-To: <1499501074.35394.1311158638174.JavaMail.root@ahm.einfochips.com> References: <1499501074.35394.1311158638174.JavaMail.root@ahm.einfochips.com> Message-ID: <20110720121903.C91FD1579DF2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Ajay Bhargav, In message <1499501074.35394.1311158638174.JavaMail.root@ahm.einfochips.com> you wrote: > Hi Lei, > > > I think we make thing complicated here. For GPIO driver, the only > > structure we need to > > define is the GPIO register itself, like GPIO_PLR, GPIO_PDR, etc... > > > > I got your point, but lemme show you where the problem is.. > GPIO_PLR0 0x0000 > GPIO_PLR1 0x0004 > GPIO_PLR2 0x0008 > GPIO_PLR3 0x0100 > > till 3 registers its fine... fourth register is way out of league. In which way? Just because there is a gap between? No problem. Insert a filler element to your struct. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de How many seconds are there in a year? If I tell you there are 3.155 x 10^7, you won't even try to remember it. On the other hand, who could forget that, to within half a percent, pi seconds is a nanocentury. -- Tom Duff, Bell Labs