Re: Simple AT91SAM9260 Driver | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Andrew Victor a écrit : >> if you want to interface your buttons with userland applications, you >> may be interested in interfacing your driver with input layer to send >> input events (keypress for example) to your application. > > If you have a newish kernel (after 18/01/2007), there is a GPIO keyboard > drivers for platforms that support the generic-GPIO interface in > drivers/input/keyboard/gpio_keys.c > > Just register a "gpio-keys" platform device, with the correct > platform_data for your board and it "should just work". > Thanks, very interesting. And here is an example of gpio_keys platform device registration for this driver : http://lkml.org/lkml/2007/4/9/329 I'm testing this ASAP on AT91RM9200. Eric ------------------------------------------------------------------- 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]