/* 2012-09-16: File added by Sony Corporation */
/*
 * icx_pwm.h
 *
 * Copyright 2011 Sony Corporation.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

#ifndef __ICX_PWM_H__
#define __ICX_PWM_H__

/* device no. */
#define	PWM_DEV_0		0
#define	PWM_DEV_1		1
#define	PWM_DEV_NONE	0xff

/* freq. */
#define	PWM_TOTAL_10K	(1200)	/* 10kHz	*/
#define	PWM_TOTAL_100K	(600)	/* 100kHz	*/

int  pwm_init(u_char dev, u_int pol, u_int div, u_int total);
void pwm_exit(u_char dev);
int  pwm_set_value(u_char dev, u_int full, int deg);

#endif /* __ICX_PWM_H__ */
