Hi,

I think what you'll need to do is add a new GPIO Keypad device. For 
reference, check out the omap kernel source, and take a look at 
arch/arm/mach-omap2/board-tuna-input.c, where they are using GPIO lines for 
KEY_POWER, KEY_VOLUMEDOWN, and KEY_VOLUMEUP.

You can also refer to include/linux/gpio_event.h 
and drivers/input/misc/gpio_event.c.

Alternatively, you can go the other route of using a gpio_keys device.

Thanks,
Anthony

On Friday, 22 February 2013 05:34:48 UTC-5, Jf Simon wrote:
>
> Hi
> We are building an ARM based device that will run android. How do we tell 
> android where the android buttons are mapped on hour H/W (what physical 
> GPIO they use)?
> Do I need to modify a device driver in the kernel to adapt to our H/W? If 
> so which one? 
> Well thanks a lot for any help
> -jf simon
>

-- 
-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to