android buttons definition

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

android buttons definition

ソリューションへジャンプ
1,309件の閲覧回数
jfsimon
Contributor III

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

ラベル(2)
0 件の賞賛
返信
1 解決策
1,094件の閲覧回数
daiane_angolini
NXP Employee
NXP Employee

Take a look on kernel image, on board file

it should be something like:

<kernel>/arch/arm/mach-mx6/board-imx6sabrelite.c

You will see kernel defines buttons as well

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,095件の閲覧回数
daiane_angolini
NXP Employee
NXP Employee

Take a look on kernel image, on board file

it should be something like:

<kernel>/arch/arm/mach-mx6/board-imx6sabrelite.c

You will see kernel defines buttons as well

0 件の賞賛
返信