Re: Still struggling with Xilinx GPIO...

2008-05-28 Thread John Bonesio
Hi Guillaume, gpio_ioctl.chan = x; That's what determines which gpio device gets used. Since using 1 at least doesn't give you a core dump, I would guess that 1 is the correct value to use there. So the next thing to check is to make sure that the ioctl command codes being used are right. The o

Re: Still struggling with Xilinx GPIO...

2008-05-28 Thread Guillaume Dargaud
Hi John, Try using channel 1. It may be set up where the first channel is 1 and not 0. Not sure what you mean... I'm actually not clear how many devices I should have: $ grep "GPIO.*BASEADDR" arch/ppc/platforms/4xx/xparameters/xparameters_ml405.h #define XPAR_GPIO_0_BASEADDR XPAR_LEDS_4BIT