xref: /openbmc/u-boot/include/pwm.h (revision 3f129280)
1*3f129280SDonghwa Lee /*
2*3f129280SDonghwa Lee  * header file for pwm driver.
3*3f129280SDonghwa Lee  *
4*3f129280SDonghwa Lee  * Copyright (c) 2011 samsung electronics
5*3f129280SDonghwa Lee  * Donghwa Lee <dh09.lee@samsung.com>
6*3f129280SDonghwa Lee  *
7*3f129280SDonghwa Lee  * This program is free software; you can redistribute it and/or
8*3f129280SDonghwa Lee  * modify it under the terms of the GNU General Public License as
9*3f129280SDonghwa Lee  * published by the Free Software Foundation; either version 2 of
10*3f129280SDonghwa Lee  * the License, or (at your option) any later version.
11*3f129280SDonghwa Lee  *
12*3f129280SDonghwa Lee  * This program is distributed in the hope that it will be useful,
13*3f129280SDonghwa Lee  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14*3f129280SDonghwa Lee  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*3f129280SDonghwa Lee  * GNU General Public License for more details.
16*3f129280SDonghwa Lee  *
17*3f129280SDonghwa Lee  * You should have received a copy of the GNU General Public License
18*3f129280SDonghwa Lee  * along with this program; if not, write to the Free Software
19*3f129280SDonghwa Lee  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20*3f129280SDonghwa Lee  * MA 02111-1307 USA
21*3f129280SDonghwa Lee  */
22*3f129280SDonghwa Lee 
23*3f129280SDonghwa Lee #ifndef _pwm_h_
24*3f129280SDonghwa Lee #define _pwm_h_
25*3f129280SDonghwa Lee 
26*3f129280SDonghwa Lee int	pwm_init		(int pwm_id, int div, int invert);
27*3f129280SDonghwa Lee int	pwm_config		(int pwm_id, int duty_ns, int period_ns);
28*3f129280SDonghwa Lee int	pwm_enable		(int pwm_id);
29*3f129280SDonghwa Lee void	pwm_disable		(int pwm_id);
30*3f129280SDonghwa Lee 
31*3f129280SDonghwa Lee #endif /* _pwm_h_ */
32