Donghwa Lee | 3f12928 | 2011-03-07 21:11:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | * header file for pwm driver. |
| 3 | * |
| 4 | * Copyright (c) 2011 samsung electronics |
| 5 | * Donghwa Lee <dh09.lee@samsung.com> |
| 6 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Donghwa Lee | 3f12928 | 2011-03-07 21:11:42 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef _pwm_h_ |
| 11 | #define _pwm_h_ |
| 12 | |
| 13 | int pwm_init (int pwm_id, int div, int invert); |
| 14 | int pwm_config (int pwm_id, int duty_ns, int period_ns); |
| 15 | int pwm_enable (int pwm_id); |
| 16 | void pwm_disable (int pwm_id); |
| 17 | |
| 18 | #endif /* _pwm_h_ */ |