On Mon, Dec 31, 2012 at 12:44:31PM +1300, Tony Prisk wrote:
>
> > > + status = readl(pmc_base + 0x14);
> > > + udelay(100);
> > > + writel(status, pmc_base + 0x14);
> > > +
> > > + if (status & BIT(14)) {
> > > + if (!power_button_pressed) {
> >
> > No need to do this check.
> >
> The
> > +Example:
> > + powerkey: pwrkey@0 {
> > + compatible = "wm,power-keypad";
> > + interrupts = <22>;
> > + keymap = <116>; /* KEY_POWER */
>
> Do we really need this in DT? I'd say just having it manageable from
> userspace is enough.
Just seemed easier this
Hi Tony,
On Mon, Dec 31, 2012 at 11:01:02AM +1300, Tony Prisk wrote:
> This patch adds support for the Power Button keypad found on
> Wondermedia netbooks/tablets.
>
> A keymap property is exposed to allowing defining the key
> event to be generated when the power button is pressed.
>
>
This patch adds support for the Power Button keypad found on
Wondermedia netbooks/tablets.
A keymap property is exposed to allowing defining the key
event to be generated when the power button is pressed.
Signed-off-by: Tony Prisk
---
.../bindings/input/vt8500-power-keypad.txt | 17
This patch adds support for the Power Button keypad found on
Wondermedia netbooks/tablets.
A keymap property is exposed to allowing defining the key
event to be generated when the power button is pressed.
Signed-off-by: Tony Prisk li...@prisktech.co.nz
---
Hi Tony,
On Mon, Dec 31, 2012 at 11:01:02AM +1300, Tony Prisk wrote:
This patch adds support for the Power Button keypad found on
Wondermedia netbooks/tablets.
A keymap property is exposed to allowing defining the key
event to be generated when the power button is pressed.
Signed-off-by:
+Example:
+ powerkey: pwrkey@0 {
+ compatible = wm,power-keypad;
+ interrupts = 22;
+ keymap = 116; /* KEY_POWER */
Do we really need this in DT? I'd say just having it manageable from
userspace is enough.
Just seemed easier this way. Will be changed.
On Mon, Dec 31, 2012 at 12:44:31PM +1300, Tony Prisk wrote:
+ status = readl(pmc_base + 0x14);
+ udelay(100);
+ writel(status, pmc_base + 0x14);
+
+ if (status BIT(14)) {
+ if (!power_button_pressed) {
No need to do this check.
The hardware generates multiple
8 matches
Mail list logo