how to find gpio in kernel

Abuzar Amir
Hi All,
I am unable to find gpio support in directory "/sys/class/gpio". My kernel
version is as follows:

[root@FriendlyARM /]# uname -a
Linux FriendlyARM 2.6.32.2-FriendlyARM #1 Fri Mar 4 17:48:51 CST 2011
armv4tl unknown

Eagerly waiting 4 reply. Thank you

davef
That is because it is not enabled in that kernel.

Tick the right box in menuconfig and re-compile the kernel.

Do you know to learn how to do that or just get a kernel with it already
functional?

davef
know = want!

Do you want to learn how to do that or do you just want to get a kernel
with GPIO already enabled?

William
Dave,

If you could post which items in the Kernel need to be enabled, I would
greatly appreciate it. I'm using a Mini6410, if there is something specific
to that board that enables GPIO support. I saw a number of options in
menuconfig, but not sure which ones to enable.

Thanks in advance

davef
For the mini2440 go to:
http://www.pengutronix.com/oselas/bsp/pengutronix/mini2440_bsp_de.html

and get this file

 OSELAS.BSP-Pengutronix-Mini2440-2012.12.0.tgz

extract it and look around for a file I think in configs and either the 64M
or 128M file and search for "gpio".

Perhaps reading through OSELAS.BSP-Pengutronix-Mini2440-Quickstart.pdf
might help you on the way.

Also, there is similar information for your platform here:
http://www.pengutronix.com/oselas/bsp/pengutronix/mini6410_bsp_en.html

Good luck!