From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Fri, 07 Aug 2009 13:46:48 +0200 Subject: [U-Boot] Kirkwood gpio In-Reply-To: <20090807102933.GA17507@mail.gnudd.com> References: <20090807091647.3F231832E416@gemini.denx.de> <4A7AD624.9030902@imagos.it> <20090806202615.GH13346@game.jcrosoft.org> <20090806205329.8A31C832E416@gemini.denx.de> <4A7BE28A.8080701@imagos.it> <20090807102933.GA17507@mail.gnudd.com> Message-ID: <4A7C1428.1000509@invitel.hu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Alessandro, Alessandro Rubini wrote: >> 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. > > tornado$ grep -r CONFIG_KIRKWOOD_GPIO . > ./drivers/gpio/Makefile:COBJS-$(CONFIG_KIRKWOOD_GPIO) += kw_gpio.o > > The header and C file were added on Jun 29th, but there's not user yet. > It has been tested by Heiko on the Suen3, but it's not mainline. > And even that patch doesn't define CONFIG_KIRKWOOD_GPIO . This board will come soon with I2C bitbang support, which uses this driver. But this driver comes from Dieter Kiermaier, and I thought it is used from others too ... bye Heiko