1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Common functions for Palm LD, T5, TX, Z72
6 * Marek Vasut <marek.vasut@gmail.com>
8 #ifndef __INCLUDE_MACH_PALM27X__
9 #define __INCLUDE_MACH_PALM27X__
11 #include <linux/gpio/machine.h>
13 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
14 extern void __init
palm27x_mmc_init(struct gpiod_lookup_table
*gtable
);
16 static inline void palm27x_mmc_init(struct gpiod_lookup_table
*gtable
)
20 #if defined(CONFIG_SUSPEND)
21 extern void __init
palm27x_pm_init(unsigned long str_base
);
23 static inline void palm27x_pm_init(unsigned long str_base
) {}
26 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
27 extern struct pxafb_mode_info palm_320x480_lcd_mode
;
28 extern struct pxafb_mode_info palm_320x320_lcd_mode
;
29 extern struct pxafb_mode_info palm_320x320_new_lcd_mode
;
30 extern void __init
palm27x_lcd_init(int power
,
31 struct pxafb_mode_info
*mode
);
33 #define palm27x_lcd_init(power, mode) do {} while (0)
36 #if defined(CONFIG_USB_PXA27X) || \
37 defined(CONFIG_USB_PXA27X_MODULE)
38 extern void __init
palm27x_udc_init(int vbus
, int pullup
,
41 static inline void palm27x_udc_init(int vbus
, int pullup
, int vbus_inverted
) {}
44 #if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE)
45 extern void __init
palm27x_irda_init(int pwdn
);
47 static inline void palm27x_irda_init(int pwdn
) {}
50 #if defined(CONFIG_TOUCHSCREEN_WM97XX) || \
51 defined(CONFIG_TOUCHSCREEN_WM97XX_MODULE)
52 extern void __init
palm27x_ac97_init(int minv
, int maxv
, int jack
,
55 static inline void palm27x_ac97_init(int minv
, int maxv
, int jack
, int reset
) {}
58 #if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE)
59 extern void __init
palm27x_pwm_init(int bl
, int lcd
);
61 static inline void palm27x_pwm_init(int bl
, int lcd
) {}
64 #if defined(CONFIG_PDA_POWER) || defined(CONFIG_PDA_POWER_MODULE)
65 extern void __init
palm27x_power_init(int ac
, int usb
);
67 static inline void palm27x_power_init(int ac
, int usb
) {}
70 #if defined(CONFIG_REGULATOR_MAX1586) || \
71 defined(CONFIG_REGULATOR_MAX1586_MODULE)
72 extern void __init
palm27x_pmic_init(void);
74 static inline void palm27x_pmic_init(void) {}
77 #endif /* __INCLUDE_MACH_PALM27X__ */