Google
  Web www.spinics.net

Re: Using devmem2 to access GPIO and HW registers on AT91SAM9260

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


> 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


The application gpio-RM9200.tar.gz works fine (as is) on the
AT91SAM9260 when mmap in uclibc is fixed to handle offset values above
0x80000000 (i.e most significant bit set == negative signed number).

Michel

-------------------------------------------------------------------
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]

Powered by Linux