This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux c6x device driver

Hi to all

i boot linux c6x on c6678 EVM and i need to use some driver (i'm newbie in linux )

some .c (gpio.c,i2c.c ,...) file exist in linux-c6x/arch/c6x/driver directory and board_evmc6678.c in  linux-c6x/arch/c6x/platform

i have some questions:

in /sys/class exist some driver by default 

/sys/class # ls -l
drwxr-xr-x 17 root root 0 Nov 30 00:00 bdi
drwxr-xr-x 2 root root 0 Nov 30 00:00 bsg
drwxr-xr-x 2 root root 0 Nov 30 00:00 firmware
drwxr-xr-x 2 root root 0 Nov 30 00:00 input
drwxr-xr-x 10 root root 0 Nov 30 00:00 mem
drwxr-xr-x 5 root root 0 Nov 30 00:00 misc
drwxr-xr-x 12 root root 0 Nov 30 00:00 mtd
drwxr-xr-x 4 root root 0 Nov 30 00:00 net
drwxr-xr-x 3 root root 0 Nov 30 00:00 spi_master
drwxr-xr-x 2 root root 0 Nov 30 00:00 spidev
drwxr-xr-x 71 root root 0 Nov 30 00:00 tty
drwxr-xr-x 6 root root 0 Nov 30 00:00 vc
drwxr-xr-x 3 root root 0 Nov 30 00:00 vtconsole

Q1:  how can i add driver (for example gpio) from user space (without rebuild kernel)

Q2: is it possible use .c , .h file in c6x-uclinux-gcc ? any body can introduce some example and document for this?

thanks

Ebi