mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 15:26:48 +07:00
d2912cb15b
Based on 2 normalized pattern(s): 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 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 # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
78 lines
2.3 KiB
C
78 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Common functions for Palm LD, T5, TX, Z72
|
|
*
|
|
* Copyright (C) 2010
|
|
* Marek Vasut <marek.vasut@gmail.com>
|
|
*/
|
|
#ifndef __INCLUDE_MACH_PALM27X__
|
|
#define __INCLUDE_MACH_PALM27X__
|
|
|
|
#include <linux/gpio/machine.h>
|
|
|
|
#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
|
|
extern void __init palm27x_mmc_init(struct gpiod_lookup_table *gtable);
|
|
#else
|
|
static inline void palm27x_mmc_init(struct gpiod_lookup_table *gtable)
|
|
{}
|
|
#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
|
|
#define palm27x_lcd_init(power, mode) do {} while (0)
|
|
#endif
|
|
|
|
#if defined(CONFIG_USB_PXA27X) || \
|
|
defined(CONFIG_USB_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__ */
|