Lines Matching +full:disable +full:- +full:key +full:- +full:power
1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Based on the board-htcwizard.c file from the linwizard project:
19 #include <linux/platform_data/i2c-gpio.h>
25 #include <linux/platform_data/keypad-omap.h>
27 #include <asm/mach-types.h>
46 /* GPIO definitions for the power button and keyboard slide switch */
59 * Chip 3 - 0x03
62 * ------------------------------------
66 * MMC power on x x x x x 1 x x
69 * Chip 4 - 0x04
72 * ------------------------------------
83 * Chip 5 - 0x05
86 * ------------------------------------
99 * Chip 6 - 0x06
102 * ------------------------------------
146 * to re-enable interrupts after one has occurred.
167 KEY(0, 0, KEY_RECORD), /* Mail button */
168 KEY(1, 0, KEY_CAMERA), /* Camera */
169 KEY(2, 0, KEY_PHONE), /* Send key */
170 KEY(3, 0, KEY_VOLUMEUP), /* Volume up */
171 KEY(4, 0, KEY_F2), /* Right bar (landscape) */
172 KEY(5, 0, KEY_MAIL), /* Win key (portrait) */
173 KEY(6, 0, KEY_DIRECTORY), /* Right bar (protrait) */
174 KEY(0, 1, KEY_LEFTCTRL), /* Windows key */
175 KEY(1, 1, KEY_COMMA),
176 KEY(2, 1, KEY_M),
177 KEY(3, 1, KEY_K),
178 KEY(4, 1, KEY_SLASH), /* OK key */
179 KEY(5, 1, KEY_I),
180 KEY(6, 1, KEY_U),
181 KEY(0, 2, KEY_LEFTALT),
182 KEY(1, 2, KEY_TAB),
183 KEY(2, 2, KEY_N),
184 KEY(3, 2, KEY_J),
185 KEY(4, 2, KEY_ENTER),
186 KEY(5, 2, KEY_H),
187 KEY(6, 2, KEY_Y),
188 KEY(0, 3, KEY_SPACE),
189 KEY(1, 3, KEY_L),
190 KEY(2, 3, KEY_B),
191 KEY(3, 3, KEY_V),
192 KEY(4, 3, KEY_BACKSPACE),
193 KEY(5, 3, KEY_G),
194 KEY(6, 3, KEY_T),
195 KEY(0, 4, KEY_CAPSLOCK), /* Shift */
196 KEY(1, 4, KEY_C),
197 KEY(2, 4, KEY_F),
198 KEY(3, 4, KEY_R),
199 KEY(4, 4, KEY_O),
200 KEY(5, 4, KEY_E),
201 KEY(6, 4, KEY_D),
202 KEY(0, 5, KEY_X),
203 KEY(1, 5, KEY_Z),
204 KEY(2, 5, KEY_S),
205 KEY(3, 5, KEY_W),
206 KEY(4, 5, KEY_P),
207 KEY(5, 5, KEY_Q),
208 KEY(6, 5, KEY_A),
209 KEY(0, 6, KEY_CONNECT), /* Voice button */
210 KEY(2, 6, KEY_CANCEL), /* End key */
211 KEY(3, 6, KEY_VOLUMEDOWN), /* Volume down */
212 KEY(4, 6, KEY_F1), /* Left bar (landscape) */
213 KEY(5, 6, KEY_WWW), /* OK button (portrait) */
214 KEY(6, 6, KEY_CALENDAR), /* Left bar (portrait) */
239 .name = "omap-keypad",
240 .id = -1,
248 /* GPIO buttons for keyboard slide and power button */
250 {BTN_0, HTCHERALD_GPIO_POWER, 1, "POWER", EV_KEY, 1, 20},
272 .name = "gpio-keys",
273 .id = -1,
300 .name = "leds-gpio",
360 .name = "i2c-htcpld",
361 .id = -1,
385 .id = -1,
398 .switch_pin = -1,
450 /* disable controller if active */ in htcherald_lcd_init()
458 tries--; in htcherald_lcd_init()
463 pr_err("Timeout waiting for end of frame -- LCD may not be available\n"); in htcherald_lcd_init()
491 /* Disable watchdog if running */ in htcherald_disable_watchdog()
494 * disable a potentially running watchdog timer before in htcherald_disable_watchdog()
531 --tries); in htcherald_usb_enable()
584 /* Maintainer: wing-linux.sourceforge.net */