pxa27x_keypad.c (9c60debd2a666dc0e8466dee556af30ea68e97d2) | pxa27x_keypad.c (76cb44e1a853f9c438ccf62eb5006f089430da72) |
---|---|
1/* 2 * linux/drivers/input/keyboard/pxa27x_keypad.c 3 * 4 * Driver for the pxa27x matrix keyboard controller. 5 * 6 * Created: Feb 22, 2007 7 * Author: Rodolfo Giometti <giometti@linux.it> 8 * --- 343 unchanged lines hidden (view full) --- 352 keypad->direct_key_mask = ((2 << direct_key_num) - 1) & ~mask; 353 354 /* enable direct key */ 355 if (direct_key_num) 356 kpc |= KPC_DE | KPC_DIE | KPC_DKN(direct_key_num); 357 358 keypad_writel(KPC, kpc | KPC_RE_ZERO_DEB); 359 keypad_writel(KPREC, DEFAULT_KPREC); | 1/* 2 * linux/drivers/input/keyboard/pxa27x_keypad.c 3 * 4 * Driver for the pxa27x matrix keyboard controller. 5 * 6 * Created: Feb 22, 2007 7 * Author: Rodolfo Giometti <giometti@linux.it> 8 * --- 343 unchanged lines hidden (view full) --- 352 keypad->direct_key_mask = ((2 << direct_key_num) - 1) & ~mask; 353 354 /* enable direct key */ 355 if (direct_key_num) 356 kpc |= KPC_DE | KPC_DIE | KPC_DKN(direct_key_num); 357 358 keypad_writel(KPC, kpc | KPC_RE_ZERO_DEB); 359 keypad_writel(KPREC, DEFAULT_KPREC); |
360 keypad_writel(KPKDI, pdata->debounce_interval); |
|
360} 361 362static int pxa27x_keypad_open(struct input_dev *dev) 363{ 364 struct pxa27x_keypad *keypad = input_get_drvdata(dev); 365 366 /* Enable unit clock */ 367 clk_enable(keypad->clk); --- 204 unchanged lines hidden --- | 361} 362 363static int pxa27x_keypad_open(struct input_dev *dev) 364{ 365 struct pxa27x_keypad *keypad = input_get_drvdata(dev); 366 367 /* Enable unit clock */ 368 clk_enable(keypad->clk); --- 204 unchanged lines hidden --- |