palm27x.h (2324B)
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Common functions for Palm LD, T5, TX, Z72 4 * 5 * Copyright (C) 2010 6 * Marek Vasut <marek.vasut@gmail.com> 7 */ 8#ifndef __INCLUDE_MACH_PALM27X__ 9#define __INCLUDE_MACH_PALM27X__ 10 11#include <linux/gpio/machine.h> 12 13#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) 14extern void __init palm27x_mmc_init(struct gpiod_lookup_table *gtable); 15#else 16static inline void palm27x_mmc_init(struct gpiod_lookup_table *gtable) 17{} 18#endif 19 20#if defined(CONFIG_SUSPEND) 21extern void __init palm27x_pm_init(unsigned long str_base); 22#else 23static inline void palm27x_pm_init(unsigned long str_base) {} 24#endif 25 26#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) 27extern struct pxafb_mode_info palm_320x480_lcd_mode; 28extern struct pxafb_mode_info palm_320x320_lcd_mode; 29extern struct pxafb_mode_info palm_320x320_new_lcd_mode; 30extern void __init palm27x_lcd_init(int power, 31 struct pxafb_mode_info *mode); 32#else 33#define palm27x_lcd_init(power, mode) do {} while (0) 34#endif 35 36#if defined(CONFIG_USB_PXA27X) || \ 37 defined(CONFIG_USB_PXA27X_MODULE) 38extern void __init palm27x_udc_init(int vbus, int pullup, 39 int vbus_inverted); 40#else 41static inline void palm27x_udc_init(int vbus, int pullup, int vbus_inverted) {} 42#endif 43 44#if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE) 45extern void __init palm27x_irda_init(int pwdn); 46#else 47static inline void palm27x_irda_init(int pwdn) {} 48#endif 49 50#if defined(CONFIG_TOUCHSCREEN_WM97XX) || \ 51 defined(CONFIG_TOUCHSCREEN_WM97XX_MODULE) 52extern void __init palm27x_ac97_init(int minv, int maxv, int jack, 53 int reset); 54#else 55static inline void palm27x_ac97_init(int minv, int maxv, int jack, int reset) {} 56#endif 57 58#if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE) 59extern void __init palm27x_pwm_init(int bl, int lcd); 60#else 61static inline void palm27x_pwm_init(int bl, int lcd) {} 62#endif 63 64#if defined(CONFIG_PDA_POWER) || defined(CONFIG_PDA_POWER_MODULE) 65extern void __init palm27x_power_init(int ac, int usb); 66#else 67static inline void palm27x_power_init(int ac, int usb) {} 68#endif 69 70#if defined(CONFIG_REGULATOR_MAX1586) || \ 71 defined(CONFIG_REGULATOR_MAX1586_MODULE) 72extern void __init palm27x_pmic_init(void); 73#else 74static inline void palm27x_pmic_init(void) {} 75#endif 76 77#endif /* __INCLUDE_MACH_PALM27X__ */