mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 14:30:50 +00:00 
			
		
		
		
	 41c42ff5db
			
		
	
	
		41c42ff5db
		
	
	
	
	
		
			
			Add a simple driver for pwm driver LEDs. pwm_id and period can be defined in board file. It is developed for pxa, however it is probably generic enough to be used on other platforms with pwm. Signed-off-by: Luotao Fu <l.fu@pengutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			355 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			355 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * PWM LED driver data - see drivers/leds/leds-pwm.c
 | |
|  */
 | |
| #ifndef __LINUX_LEDS_PWM_H
 | |
| #define __LINUX_LEDS_PWM_H
 | |
| 
 | |
| struct led_pwm {
 | |
| 	const char	*name;
 | |
| 	const char	*default_trigger;
 | |
| 	unsigned	pwm_id;
 | |
| 	u8 		active_low;
 | |
| 	unsigned 	max_brightness;
 | |
| 	unsigned	pwm_period_ns;
 | |
| };
 | |
| 
 | |
| struct led_pwm_platform_data {
 | |
| 	int			num_leds;
 | |
| 	struct led_pwm	*leds;
 | |
| };
 | |
| 
 | |
| #endif
 |