AnsweredAssumed Answered

android buttons definition

Question asked by jf simon on Feb 21, 2013
Latest reply on Feb 26, 2013 by Daiane Angolini
Branched to a new discussion

Hi,

I understand android buttons can be hooked to any PAD on the i.mx6 CPUs.

For example on the sabrelite,  i can see android buttons are defined in u-boot like the followoing:

 

board/freescale/mx6qsabrelite/mx6qsabrelite.c:

........

 

static struct button_key const buttons[] = {

        {"back",        IMX_GPIO_NR(2, 2),      'B'},

        {"home",        IMX_GPIO_NR(2, 4),      'H'},

        {"menu",        IMX_GPIO_NR(2, 1),      'M'},

        {"search",      IMX_GPIO_NR(2, 3),      'S'},

        {"volup",       IMX_GPIO_NR(7, 13),     'V'},

        {"voldown",     IMX_GPIO_NR(4, 5),      'v'},

};

........

 

My question is how android is made aware of this PAD to buttons mapping?

Thanks a lot

-jfs

Outcomes