From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel@caiaq.de (Daniel Mack) Date: Sun, 7 Feb 2010 06:11:22 +0100 Subject: [PXA320] How to find I/O registers, base address of ASIX ethernet chip? In-Reply-To: <20100205075338.GB31903@pengutronix.de> References: <19621265275300@webmail108.yandex.ru> <20100205042655.GR28972@buzzloop.caiaq.de> <20100205075338.GB31903@pengutronix.de> Message-ID: <20100207051122.GK9007@buzzloop.caiaq.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Feb 05, 2010 at 08:53:38AM +0100, Uwe Kleine-K?nig wrote: > On Fri, Feb 05, 2010 at 05:26:55AM +0100, Daniel Mack wrote: > > The addresses passed to the driver is the I/O area of the chip select > > signal used for the Ethernet chip. This setting should be alright, as it > > worked well for me. > > > > If your kernel hangs when accessing this area, you most probably haven't > > set up your static bus correctly. The bootloader is in charge of doing > > this, and the correct value for CSADRCFG2 is 0x0032C809. > I would prefer if Linux didn't rely on the boot loader for that. It's > not expensive or difficult to set this register in machine setup code, > is it? > The boarsds I've been working on need to set this register from the bootloader anyway they use Ethernet for TFTP downloads. But you're right, in general, there should be a way to set such registers from kernel space as well. Eric, any such plans? Daniel