Hello everyone,
I have a Variscite SOC with a OMAP4460 running linux, specs here:
http://www.variscite.com/products/item/76-var-som-om44-ti-omap4460
Can anyone provide a simple example program of how to setup and read the keypad?
Thanks,
Jeff
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello everyone,
I have a Variscite SOC with a OMAP4460 running linux, specs here:
http://www.variscite.com/products/item/76-var-som-om44-ti-omap4460
Can anyone provide a simple example program of how to setup and read the keypad?
Thanks,
Jeff
for a reference to this you can look at 4430's TRM chapter 26, around page 5409.
26.5 Keyboard Controller Programming Guide
sorry, i forgot TRM links
OMAP4430 Multimedia Device Silicon Revision 2.x
http://www.ti.com/pdfs/wtbu/OMAP4430_ES2.x_PUBLIC_TRM_vAA.zip
OMAP4460 Multimedia Device Silicon Revision 1.x
http://www.ti.com/pdfs/wtbu/OMAP4460_ES1.x_PUBLIC_TRM_vL.zip
OMAP4470 Multimedia Device Silicon Revision 1.0
http://www.ti.com/pdfs/wtbu/OMAP4470_ES1.0_PUBLIC_TRM_vD.zip
Graham;
you can find a keypad definition in next files that can be copied to board-omap4panda.c [__init omap4_panda_init(..)], or make reference to them,
./kernel/android-3.0/arch/arm/plat-omap/include/plat/omap4-keypad.h
struct omap4_keypad_platform_data {
const struct matrix_keymap_data *keymap_data;
u8 rows;
u8 cols;
void (*keypad_pad_wkup)(int enable);
};
extern int omap4_keyboard_init(struct omap4_keypad_platform_data *);