root/arch/arm/mach-pxa/palm27x.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. palm27x_mmc_init
  2. palm27x_pm_init
  3. palm27x_udc_init
  4. palm27x_irda_init
  5. palm27x_ac97_init
  6. palm27x_pwm_init
  7. palm27x_power_init
  8. palm27x_pmic_init

   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)
  14 extern void __init palm27x_mmc_init(struct gpiod_lookup_table *gtable);
  15 #else
  16 static inline void palm27x_mmc_init(struct gpiod_lookup_table *gtable)
  17 {}
  18 #endif
  19 
  20 #if defined(CONFIG_SUSPEND)
  21 extern void __init palm27x_pm_init(unsigned long str_base);
  22 #else
  23 static inline void palm27x_pm_init(unsigned long str_base) {}
  24 #endif
  25 
  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);
  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)
  38 extern void __init palm27x_udc_init(int vbus, int pullup,
  39                                         int vbus_inverted);
  40 #else
  41 static inline void palm27x_udc_init(int vbus, int pullup, int vbus_inverted) {}
  42 #endif
  43 
  44 #if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE)
  45 extern void __init palm27x_irda_init(int pwdn);
  46 #else
  47 static inline void palm27x_irda_init(int pwdn) {}
  48 #endif
  49 
  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,
  53                                         int reset);
  54 #else
  55 static 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)
  59 extern void __init palm27x_pwm_init(int bl, int lcd);
  60 #else
  61 static inline void palm27x_pwm_init(int bl, int lcd) {}
  62 #endif
  63 
  64 #if defined(CONFIG_PDA_POWER) || defined(CONFIG_PDA_POWER_MODULE)
  65 extern void __init palm27x_power_init(int ac, int usb);
  66 #else
  67 static inline void palm27x_power_init(int ac, int usb) {}
  68 #endif
  69 
  70 #if defined(CONFIG_REGULATOR_MAX1586) || \
  71     defined(CONFIG_REGULATOR_MAX1586_MODULE)
  72 extern void __init palm27x_pmic_init(void);
  73 #else
  74 static inline void palm27x_pmic_init(void) {}
  75 #endif
  76 
  77 #endif  /* __INCLUDE_MACH_PALM27X__ */

/* [<][>][^][v][top][bottom][index][help] */