-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This contains common code for Palm LD, TX, T5, Z72, Treo680, Centro This code also adds PMIC support for all the devices, Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
- Loading branch information
Marek Vasut
authored and
Eric Miao
committed
Aug 5, 2010
1 parent
04e4ad2
commit 9504594
Showing
4 changed files
with
562 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* Common functions for Palm LD, T5, TX, Z72 | ||
* | ||
* Copyright (C) 2010 | ||
* Marek Vasut <marek.vasut@gmail.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
*/ | ||
#ifndef __INCLUDE_MACH_PALM27X__ | ||
#define __INCLUDE_MACH_PALM27X__ | ||
|
||
#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) | ||
extern void __init palm27x_mmc_init(int detect, int ro, int power, | ||
int power_inverted); | ||
#else | ||
static inline void palm27x_mmc_init(int detect, int ro, int power, | ||
int power_inverted) | ||
{} | ||
#endif | ||
|
||
#if defined(CONFIG_SUSPEND) | ||
extern void __init palm27x_pm_init(unsigned long str_base); | ||
#else | ||
static inline void palm27x_pm_init(unsigned long str_base) {} | ||
#endif | ||
|
||
#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) | ||
extern struct pxafb_mode_info palm_320x480_lcd_mode; | ||
extern struct pxafb_mode_info palm_320x320_lcd_mode; | ||
extern struct pxafb_mode_info palm_320x320_new_lcd_mode; | ||
extern void __init palm27x_lcd_init(int power, | ||
struct pxafb_mode_info *mode); | ||
#else | ||
static inline void palm27x_lcd_init(int power, struct pxafb_mode_info *mode) {} | ||
#endif | ||
|
||
#if defined(CONFIG_USB_GADGET_PXA27X) || \ | ||
defined(CONFIG_USB_GADGET_PXA27X_MODULE) | ||
extern void __init palm27x_udc_init(int vbus, int pullup, | ||
int vbus_inverted); | ||
#else | ||
static inline void palm27x_udc_init(int vbus, int pullup, int vbus_inverted) {} | ||
#endif | ||
|
||
#if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE) | ||
extern void __init palm27x_irda_init(int pwdn); | ||
#else | ||
static inline void palm27x_irda_init(int pwdn) {} | ||
#endif | ||
|
||
#if defined(CONFIG_TOUCHSCREEN_WM97XX) || \ | ||
defined(CONFIG_TOUCHSCREEN_WM97XX_MODULE) | ||
extern void __init palm27x_ac97_init(int minv, int maxv, int jack, | ||
int reset); | ||
#else | ||
static inline void palm27x_ac97_init(int minv, int maxv, int jack, int reset) {} | ||
#endif | ||
|
||
#if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE) | ||
extern void __init palm27x_pwm_init(int bl, int lcd); | ||
#else | ||
static inline void palm27x_pwm_init(int bl, int lcd) {} | ||
#endif | ||
|
||
#if defined(CONFIG_PDA_POWER) || defined(CONFIG_PDA_POWER_MODULE) | ||
extern void __init palm27x_power_init(int ac, int usb); | ||
#else | ||
static inline void palm27x_power_init(int ac, int usb) {} | ||
#endif | ||
|
||
#if defined(CONFIG_REGULATOR_MAX1586) || \ | ||
defined(CONFIG_REGULATOR_MAX1586_MODULE) | ||
extern void __init palm27x_pmic_init(void); | ||
#else | ||
static inline void palm27x_pmic_init(void) {} | ||
#endif | ||
|
||
#endif /* __INCLUDE_MACH_PALM27X__ */ |
Oops, something went wrong.