[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] GPIO device driver operation



Hi all,

I'm using the XUPV2P board and would like to use the 3 GPIO devices on the
board connected to the LEDs, dipswitches and pushbuttons.

During kernel initialization I see the following on the console:
..
xgpio #0 at 0x40020000 mapped to 0x40020000
xgpio #1 at 0x40040000 mapped to 0x40040000
xgpio #2 at 0x40000000 mapped to 0x40000000
Xilinx GPIO registered
..

In addition, the xilinx device driver appears in /proc/misc:
# cat /proc/misc
185 xgpio
#

However, there is no /dev/gpio entry to call open() on such as used in the
gpio_test program John Williams posted a while ago:
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2004/05/msg00004.html

In /romfs/dev, I see "@fslfifo7,c,10,199" etc for the fsl fifos.  Should
there be autogenerated ones for the three gpios there already?  Or do I
need to create those in /romfs/dev/ myself?  Shouldn't there be three
entries in
/proc/misc, one for each gpio instance?

Thanks.
Paul

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/