Path: blob/master/arch/arm/mach-kirkwood/include/mach/leds-netxbig.h
10820 views
/*1* arch/arm/mach-kirkwood/include/mach/leds-netxbig.h2*3* Platform data structure for netxbig LED driver4*5* This file is licensed under the terms of the GNU General Public6* License version 2. This program is licensed "as is" without any7* warranty of any kind, whether express or implied.8*/910#ifndef __MACH_LEDS_NETXBIG_H11#define __MACH_LEDS_NETXBIG_H1213struct netxbig_gpio_ext {14unsigned *addr;15int num_addr;16unsigned *data;17int num_data;18unsigned enable;19};2021enum netxbig_led_mode {22NETXBIG_LED_OFF,23NETXBIG_LED_ON,24NETXBIG_LED_SATA,25NETXBIG_LED_TIMER1,26NETXBIG_LED_TIMER2,27NETXBIG_LED_MODE_NUM,28};2930#define NETXBIG_LED_INVALID_MODE NETXBIG_LED_MODE_NUM3132struct netxbig_led_timer {33unsigned long delay_on;34unsigned long delay_off;35enum netxbig_led_mode mode;36};3738struct netxbig_led {39const char *name;40const char *default_trigger;41int mode_addr;42int *mode_val;43int bright_addr;44};4546struct netxbig_led_platform_data {47struct netxbig_gpio_ext *gpio_ext;48struct netxbig_led_timer *timer;49int num_timer;50struct netxbig_led *leds;51int num_leds;52};5354#endif /* __MACH_LEDS_NETXBIG_H */555657