diff options
author | Fred Fan <r01011@freescale.com> | 2010-02-22 22:55:37 +0800 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:17:15 +0200 |
commit | 7af8336861b3867852950b137bd1781fd9c2d5e4 (patch) | |
tree | 827a6b79e74a6ec24f74a200a527d664b6bd5312 /arch/arm/mach-mx28 | |
parent | 76309264b507e341de035685e8c0f3510c2dcc09 (diff) |
ENGR00121032 i.MX28 EVK kbd button detect support
use button detect irq to control adc irq
Signed-off-by: Fred.fan <r01011@freescale.com>
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/mach-mx28')
-rw-r--r-- | arch/arm/mach-mx28/device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx28/device.c b/arch/arm/mach-mx28/device.c index 3faaf172c82c..9b2e98c3e656 100644 --- a/arch/arm/mach-mx28/device.c +++ b/arch/arm/mach-mx28/device.c @@ -666,6 +666,9 @@ static struct mxskbd_keypair keyboard_data[] = { static struct mxs_kbd_plat_data mxs_kbd_data = { .keypair = keyboard_data, .channel = LRADC_CH1, + .btn_enable = BM_LRADC_CTRL0_BUTTON1_DETECT_ENABLE, + .btn_irq_stat = BM_LRADC_CTRL1_BUTTON1_DETECT_IRQ, + .btn_irq_ctrl = BM_LRADC_CTRL1_BUTTON1_DETECT_IRQ_EN, }; static struct resource mx28_kbd_res[] = { @@ -679,6 +682,11 @@ static struct resource mx28_kbd_res[] = { .start = IRQ_LRADC_CH1, .end = IRQ_LRADC_CH1, }, + { + .flags = IORESOURCE_IRQ, + .start = IRQ_LRADC_BUTTON1, + .end = IRQ_LRADC_BUTTON1, + }, }; static void __init mx28_init_kbd(void) |