mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 07:34:06 +08:00
c02cecb92e
Platform data for device drivers should be defined in include/linux/platform_data/*.h, not in the architecture and platform specific directories. This moves such data out of the orion include directories Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Vinod Koul <vinod.koul@intel.com> Cc: Dan Williams <djbw@fb.com> Cc: Bryan Wu <bryan.wu@canonical.com> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Chris Ball <cjb@laptop.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Liam Girdwood <lrg@ti.com> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de>
56 lines
1.1 KiB
C
56 lines
1.1 KiB
C
/*
|
|
* arch/arm/mach-kirkwood/include/mach/leds-netxbig.h
|
|
*
|
|
* Platform data structure for netxbig LED driver
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License version 2. This program is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef __MACH_LEDS_NETXBIG_H
|
|
#define __MACH_LEDS_NETXBIG_H
|
|
|
|
struct netxbig_gpio_ext {
|
|
unsigned *addr;
|
|
int num_addr;
|
|
unsigned *data;
|
|
int num_data;
|
|
unsigned enable;
|
|
};
|
|
|
|
enum netxbig_led_mode {
|
|
NETXBIG_LED_OFF,
|
|
NETXBIG_LED_ON,
|
|
NETXBIG_LED_SATA,
|
|
NETXBIG_LED_TIMER1,
|
|
NETXBIG_LED_TIMER2,
|
|
NETXBIG_LED_MODE_NUM,
|
|
};
|
|
|
|
#define NETXBIG_LED_INVALID_MODE NETXBIG_LED_MODE_NUM
|
|
|
|
struct netxbig_led_timer {
|
|
unsigned long delay_on;
|
|
unsigned long delay_off;
|
|
enum netxbig_led_mode mode;
|
|
};
|
|
|
|
struct netxbig_led {
|
|
const char *name;
|
|
const char *default_trigger;
|
|
int mode_addr;
|
|
int *mode_val;
|
|
int bright_addr;
|
|
};
|
|
|
|
struct netxbig_led_platform_data {
|
|
struct netxbig_gpio_ext *gpio_ext;
|
|
struct netxbig_led_timer *timer;
|
|
int num_timer;
|
|
struct netxbig_led *leds;
|
|
int num_leds;
|
|
};
|
|
|
|
#endif /* __MACH_LEDS_NETXBIG_H */
|