16 #include <linux/input.h>
45 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
48 .detect_delay_ms = 200,
51 void __init palm27x_mmc_init(
int detect,
int ro,
int power,
66 #if defined(CONFIG_SUSPEND)
67 void __init palm27x_pm_init(
unsigned long str_base)
69 static const unsigned long resume[] = {
86 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
137 static int palm27x_lcd_power;
147 if (gpio_is_valid(power)) {
149 pr_err(
"Palm27x: failed to claim lcd power gpio!\n");
153 pr_err(
"Palm27x: lcd power configuration failed!\n");
156 palm27x_lcd_power = power;
167 #if defined(CONFIG_USB_PXA27X) || \
168 defined(CONFIG_USB_PXA27X_MODULE)
177 .platform_data = &palm27x_udc_info,
181 void __init palm27x_udc_init(
int vbus,
int pullup,
int vbus_inverted)
202 #if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE)
207 void __init palm27x_irda_init(
int pwdn)
217 #if defined(CONFIG_TOUCHSCREEN_WM97XX) || \
218 defined(CONFIG_TOUCHSCREEN_WM97XX_MODULE)
228 .batt_name =
"main-batt",
244 .
name =
"palm27x-asoc",
247 .platform_data = &palm27x_asoc_pdata,
251 void __init palm27x_ac97_init(
int minv,
int maxv,
int jack,
int reset)
256 if (minv < 0 || maxv < 0) {
272 #if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE)
273 static int palm_bl_power;
274 static int palm_lcd_power;
276 static int palm27x_backlight_init(
struct device *
dev)
287 if (gpio_is_valid(palm_lcd_power)) {
308 if (gpio_is_valid(palm_lcd_power))
313 static void palm27x_backlight_exit(
struct device *dev)
316 if (gpio_is_valid(palm_lcd_power))
322 .max_brightness = 0xfe,
323 .dft_brightness = 0x7e,
324 .pwm_period_ns = 3500 * 1024,
325 .init = palm27x_backlight_init,
326 .notify = palm27x_backlight_notify,
327 .exit = palm27x_backlight_exit,
331 .
name =
"pwm-backlight",
334 .platform_data = &palm27x_backlight_data,
341 palm_lcd_power =
lcd;
349 #if defined(CONFIG_PDA_POWER) || defined(CONFIG_PDA_POWER_MODULE)
350 static int palm_ac_state;
351 static int palm_usb_state;
353 static int palm27x_power_supply_init(
struct device *dev)
364 if (gpio_is_valid(palm_usb_state)) {
382 static void palm27x_power_supply_exit(
struct device *dev)
388 static int palm27x_is_ac_online(
void)
393 static int palm27x_is_usb_online(
void)
397 static char *palm27x_supplicants[] = {
402 .
init = palm27x_power_supply_init,
403 .exit = palm27x_power_supply_exit,
404 .is_ac_online = palm27x_is_ac_online,
405 .is_usb_online = palm27x_is_usb_online,
406 .supplied_to = palm27x_supplicants,
407 .num_supplicants =
ARRAY_SIZE(palm27x_supplicants),
414 .platform_data = &palm27x_ps_info,
421 palm_usb_state =
usb;
429 #if defined(CONFIG_REGULATOR_MAX1586) || \
430 defined(CONFIG_REGULATOR_MAX1586_MODULE)
437 .name =
"vcc_core range",
443 .consumer_supplies = palm27x_max1587a_consumers,
444 .num_consumer_supplies =
ARRAY_SIZE(palm27x_max1587a_consumers),
451 .platform_data = &palm27x_max1587a_v3_info,
456 .
subdevs = palm27x_max1587a_subdevs,
457 .num_subdevs =
ARRAY_SIZE(palm27x_max1587a_subdevs),
464 .platform_data = &palm27x_max1587a_info,
472 void __init palm27x_pmic_init(
void)