From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Fri, 07 Aug 2009 14:10:58 +0200 Subject: [U-Boot] Kirkwood gpio In-Reply-To: <73173D32E9439E4ABB5151606C3E19E202E1215FFC@SC-VEXCH1.marvell.com> References: <73173D32E9439E4ABB5151606C3E19E202E1215FFC@SC-VEXCH1.marvell.com> Message-ID: <4A7C19D2.7080300@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 Hello Prafulla, Prafulla Wadaskar wrote: >> -----Original Message----- >> From: u-boot-bounces at lists.denx.de >> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Alessandro Rubini >> Sent: Friday, August 07, 2009 4:00 PM >> To: wd at denx.de >> Cc: u-boot at lists.denx.de >> Subject: Re: [U-Boot] Kirkwood gpio (was: timeout calculation >> underflow if imprecise 1kHz timer: fix) >> >>> I'd prefer "tout = DIV_ROUND_UP(tout*CONFIG_SYS_HZ, 1000);" >> Ok for me. >> >> BTW: Looking for DIV_ROUND_UP, I found that it's defined in >> ./include/asm/arch-kirkwood/gpio.h as well. I was checking >> whether it can be removed, but it looks like nobody is using >> the driver. > I think at least heiko is the customer for this stuff. > Copying Heiko, > Unfortunately I do not have use case for this :-( > But in near future I will have it. > Dear Heiko, > can you pls check mainlined stuff? I removed locally DIV_ROUND_UP from ./include/asm/arch-kirkwood/gpio.h and my suen3 port with I2C bitbang compiles and works fine, so I think we can remove this. bye Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany