Re: Using devmem2 to access GPIO and HW registers on AT91SAM9260 | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hello Eric,Do you have some advices on GPIO programming in kernel space? Do you have some same code I can follow? Accessing GPIO directly from kernel space is different from user space, am I right?
Regards, Joe ----- Original Message ----- From: "Eric BENARD" <ebenard@xxxxxxx> To: "Paul Kavan" <pkavan@xxxxxxxxx> Cc: <linux-arm@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, April 04, 2007 4:29 PM Subject: Re: Using devmem2 to access GPIO and HW registers on AT91SAM9260 hi Paul, Paul Kavan a écrit :
Some kind folks from this list have helped me determined that mmap ought to be able to access the pins and registers on an at91sam9260. I have some code compiled to do just that. The only difficulty now is determining where linux is mapping these to. Has anyone had any success using devmem2 with at at91sam9260 or something similar to read/write pins/registers. If so, how did you determine where to locate those items on the mmap?
you may start from the gpio utility for AT91RM9200 and update it to the memory map of AT91SAM9260 : http://www.ipbx.ru/rm9200/gpio-RM9200.tar.gz Eric ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.phpEtiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux ARM Kernel] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]