/*1* Copyright (C) 2007 Atmel Corporation2*3* Driver for the AT32AP700X PS/2 controller (PSIF).4*5* This program is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 as published7* by the Free Software Foundation.8*/910#ifndef __INCLUDE_ATMEL_PWM_BL_H11#define __INCLUDE_ATMEL_PWM_BL_H1213/**14* struct atmel_pwm_bl_platform_data15* @pwm_channel: which PWM channel in the PWM module to use.16* @pwm_frequency: PWM frequency to generate, the driver will try to be as17* close as the prescaler allows.18* @pwm_compare_max: value to use in the PWM channel compare register.19* @pwm_duty_max: maximum duty cycle value, must be less than or equal to20* pwm_compare_max.21* @pwm_duty_min: minimum duty cycle value, must be less than pwm_duty_max.22* @pwm_active_low: set to one if the low part of the PWM signal increases the23* brightness of the backlight.24* @gpio_on: GPIO line to control the backlight on/off, set to -1 if not used.25* @on_active_low: set to one if the on/off signal is on when GPIO is low.26*27* This struct must be added to the platform device in the board code. It is28* used by the atmel-pwm-bl driver to setup the GPIO to control on/off and the29* PWM device.30*/31struct atmel_pwm_bl_platform_data {32unsigned int pwm_channel;33unsigned int pwm_frequency;34unsigned int pwm_compare_max;35unsigned int pwm_duty_max;36unsigned int pwm_duty_min;37unsigned int pwm_active_low;38int gpio_on;39unsigned int on_active_low;40};4142#endif /* __INCLUDE_ATMEL_PWM_BL_H */434445