Re: UIO not working on ppc405 onchip registers

2008-09-04 Thread Markus Brunner
On Tuesday 22 July 2008, Ben Nizette wrote: > But I'll let you get back to solving the UIO problem at hand :-D I already surrendered and created (hacked) a read/write driver, which let me use the old userspace drivers I'm trying to port (with some changes of course). This was way faster than un

Re: UIO not working on ppc405 onchip registers

2008-07-22 Thread super . firetwister
On Tuesday 22 July 2008, [EMAIL PROTECTED] wrote: > Hello Uwe, > > On Tuesday 22 July 2008, Uwe Kleine-König wrote: > > I don't know powerpc in general nor ppc405ep in detail but IIRC arm has > > problems if some memory is mapped twice. Might this be the problem > > here? > > Maybee, the emac0 (0x

Re: UIO not working on ppc405 onchip registers

2008-07-22 Thread Ben Nizette
On Tue, 2008-07-22 at 09:48 +0200, [EMAIL PROTECTED] wrote: > On Tuesday 22 July 2008, Ben Nizette wrote: > > > As an aside, you sure you want to do this anyway? > > No ;) > > > > I'd suggest that you > > just do a gpio chip driver for this, tie it in to gpiolib and use the > > gpiolib user

Re: UIO not working on ppc405 onchip registers

2008-07-22 Thread Uwe Kleine-König
Hello Markus, Markus Brunner wrote: > I'm unable to get UIO working on the ppc405ep onchip registers (e.g. gpio/iic) > however it's working fine on peripherals. I don't know powerpc in general nor ppc405ep in detail but IIRC arm has problems if some memory is mapped twice. Might this be the probl

Re: UIO not working on ppc405 onchip registers

2008-07-22 Thread Ben Nizette
Hey Markus, > > > > +config UIO_GPIO > > + tristate "Driver for PPC_4xx GPIO" As an aside, you sure you want to do this anyway? I'd suggest that you just do a gpio chip driver for this, tie it in to gpiolib and use the gpiolib user interface (which IIRC has only made it as far as -mm but

Re: UIO not working on ppc405 onchip registers

2008-07-22 Thread super . firetwister
On Tuesday 22 July 2008, Ben Nizette wrote: > As an aside, you sure you want to do this anyway? No ;) > I'd suggest that you > just do a gpio chip driver for this, tie it in to gpiolib and use the > gpiolib user interface (which IIRC has only made it as far as -mm but is > on the way up). T

Re: UIO not working on ppc405 onchip registers

2008-07-22 Thread super . firetwister
Hello Uwe, On Tuesday 22 July 2008, Uwe Kleine-König wrote: > I don't know powerpc in general nor ppc405ep in detail but IIRC arm has > problems if some memory is mapped twice. Might this be the problem > here? Maybee, the emac0 (0xef600800) and emac1 (0xef600900) get mapped as well, because A

UIO not working on ppc405 onchip registers

2008-07-21 Thread Markus Brunner
Hi, I'm unable to get UIO working on the ppc405ep onchip registers (e.g. gpio/iic) however it's working fine on peripherals. It seems to me to be a problem with UIO on powerpc, because if I change the address (and nothing more) to point to a external FPGA it's working fine. I also tried the gene