Hi all,
I tried to port Android(m5-r14) to a ARM9ejs based hardware board.
After two week's work, Android successfully ran on the board. But
after idle screen appeared on LCD, it would not response to any keypad
event.
I also created input device under /class/input/input0, the event
interrupt sent event like kernel\driver\keyboard\goldfish_event.c did:
static irqreturn_t events_interrupt(int irq, void *dev_id)
{
struct event_dev *edev = dev_id;
unsigned type, code, value;
//type = __raw_readl(edev->addr);
//code = __raw_readl(edev->addr);
//value = __raw_readl(edev->addr);
keypad_handler(irq, &code, &value);
input_event(edev->input, 1, code, value);
printk ("event int code %d, value %d\r\n", code, value);
return IRQ_HANDLED;
}
Call the function keypad_handler will return the current key stauts
and convert the physical keycode to the virtual code like KEY_UP.
The console traced as below:
...
event int code 103, value 1
event int code 103, value 0
event int code 103, value 1
event int code 103, value 0
...
Does anyone encouter same problem before?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Android Internals" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---