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
Solved! Go to Solution.
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
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