22 #include <linux/input.h>
57 static unsigned long treo_pin_config[]
__initdata = {
136 #ifdef CONFIG_MACH_TREO680
137 static unsigned long treo680_pin_config[]
__initdata = {
146 #ifdef CONFIG_MACH_CENTRO
147 static unsigned long centro685_pin_config[]
__initdata = {
164 #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
165 static unsigned int treo680_matrix_keys[] = {
224 static unsigned int centro_matrix_keys[] = {
285 .matrix_key_cols = 7,
286 .matrix_key_map = treo680_matrix_keys,
287 .matrix_key_map_size =
ARRAY_SIZE(treo680_matrix_keys),
291 .debounce_interval = 30,
294 static void __init palmtreo_kpc_init(
void)
298 if (machine_is_centro()) {
306 static inline void palmtreo_kpc_init(
void) {}
312 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
319 static void __init palmtreo_uhc_init(
void)
321 if (machine_is_treo680())
325 static inline void palmtreo_uhc_init(
void) {}
331 #ifdef CONFIG_MACH_TREO680
332 static struct gpio_led treo680_gpio_leds[] = {
334 .
name =
"treo680:vibra:vibra",
335 .default_trigger =
"none",
336 .gpio = GPIO_NR_TREO680_VIBRATE_EN,
339 .name =
"treo680:green:led",
340 .default_trigger =
"mmc0",
344 .name =
"treo680:white:keybbl",
345 .default_trigger =
"none",
346 .gpio = GPIO_NR_TREO680_KEYB_BL,
351 .
leds = treo680_gpio_leds,
355 static struct gpio_led centro_gpio_leds[] = {
357 .
name =
"centro:vibra:vibra",
358 .default_trigger =
"none",
362 .name =
"centro:green:led",
363 .default_trigger =
"mmc0",
367 .name =
"centro:white:keybbl",
368 .default_trigger =
"none",
375 .
leds = centro_gpio_leds,
383 .platform_data = &treo680_gpio_led_info,
387 static void __init palmtreo_leds_init(
void)
389 if (machine_is_centro())
390 palmtreo_leds.
dev.platform_data = ¢ro_gpio_led_info;
395 static inline void palmtreo_leds_init(
void) {}
401 static void __init treo_reserve(
void)
407 static void __init palmphone_common_init(
void)
417 palm27x_ac97_init(-1, -1, -1, 95);
423 palmtreo_leds_init();
426 #ifdef CONFIG_MACH_TREO680
427 static void __init treo680_init(
void)
430 palmphone_common_init();
432 GPIO_NR_TREO680_SD_POWER, 0);
436 #ifdef CONFIG_MACH_CENTRO
437 static void __init centro_init(
void)
440 palmphone_common_init();
446 #ifdef CONFIG_MACH_TREO680
448 .atag_offset = 0x100,
450 .reserve = treo_reserve,
455 .init_machine = treo680_init,
460 #ifdef CONFIG_MACH_CENTRO
462 .atag_offset = 0x100,
464 .reserve = treo_reserve,
469 .init_machine = centro_init,