GPIO in mini6410

striker07
I tried to find the gpio in /sys/class, but the folder doesn't exists. I
haven't found it in /dev too. The manual doesn't have any example (I'm
using the Qtopia image from DVD).

How I can use it?

dvferlemann
check out my website ipensive.com
there's a tutorial for that

You need to modify, mach-s3c2440.c file, and configure using "make
menuconfig", then goto Device Driver->GPIO->/sys/class/gpio  enable that.

Good luck.

Fiat
Hi my Friend
  Now I use tiny6410 Friendly ARM. I want to modify mach-mini6410.c on
function "mini64210_machine_init(void)"

gpio_request(S3C64XX_GPN(5), "LCD power");
gpio_request(S3C64XX_GPF(13), "LCD power");
gpio_request(S3C64XX_GPF(15), "LCD power");

gpio_direction_output(S3C64XX_GPM(5), 1);  //my code for control gpio port
gpio_direction_output(S3C64XX_GPM(4), 1); // my code for control gpio port
....
....

I'm save and make image file successed. I'm burn image file to my Tiny6410
it's work.

But I'm use command line echo 142 > export  finish
I not found export142  in /sys/class/gpio/

Advice me please T.T

Fiat..

Salil Rajadhyaksha
Hi guys I have been trying to use the GPM port. But my code shows an error
on doing "make modules". It says that S3C64XX_GPMCON not declared before.
But when I change it to S3C64XX_GPECON, it works perfectly fine. What can
be the error? I have not used any macro (which I saw in some of the codes
on the internet) like #define S3C64XX_GPMCON(some base value in hex + some
offset value in hex).

Elexal
not found
help me please

----------
[root@FriendlyARM /]# cd sys
[root@FriendlyARM /sys]# cd class
[root@FriendlyARM class]# cd gpio
-sh: cd: can't cd to gpio
[root@FriendlyARM class]# ls
bdi           input         mtd           scsi_generic  video4linux
block         leds          net           scsi_host     vtconsole
firmware      mem           rtc           sound
graphics      misc          scsi_device   tty
i2c-dev       mmc_host      scsi_disk     vc
[root@FriendlyARM class]# cd gpio
-sh: cd: can't cd to gpio

Fiat
Hi Elexal 
Reconfig you kernel with 
 
make menuconfig 
Device Drivers >> GPIO Support >> /sys/class/gpio/... (sysfs interface)
Save

hani
Hi
I have the same problem like @Elexal .
but when i wrote make menuconfig in my tiny6410 i see error.
[root@FriendlyARM /]# make menuconfig
-sh: make: not found
(i wrote this command in my FriendlyARM terminal).
how can i active menuconfig in tiny6410.

hani
Hi. I say my answer:
to reconfig the kernel you should do this:
1 - go to cd/dvd of your device (like the dvd A for tiny6410)
2 - select the OS folder you used (I use Linux)
3 - select the OS version ( in mine is linux-2.6.38 )
4 - untar it and go to folder in terminal.
5 - ( in ubuntu befor go to menuconfig  at first should install these
library)
sudo apt-get install git ncurses-dev make gcc-arm-linux-gnueabi
then run this command:
make menuconfig
then you can edit config.