2 * (C) Copyright 2016 Google, Inc
3 * (C) Copyright 2008-2014 Rockchip Electronics
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef _ASM_ARCH_PWM_H
9 #define _ASM_ARCH_PWM_H
17 check_member(rk3288_pwm, ctrl, 0xc);
19 #define RK_PWM_DISABLE (0 << 0)
20 #define RK_PWM_ENABLE (1 << 0)
22 #define PWM_ONE_SHOT (0 << 1)
23 #define PWM_CONTINUOUS (1 << 1)
24 #define RK_PWM_CAPTURE (1 << 2)
26 #define PWM_DUTY_POSTIVE (1 << 3)
27 #define PWM_DUTY_NEGATIVE (0 << 3)
29 #define PWM_INACTIVE_POSTIVE (1 << 4)
30 #define PWM_INACTIVE_NEGATIVE (0 << 4)
32 #define PWM_OUTPUT_LEFT (0 << 5)
33 #define PWM_OUTPUT_CENTER (1 << 5)
35 #define PWM_LP_ENABLE (1 << 8)
36 #define PWM_LP_DISABLE (0 << 8)
38 #define PWM_SEL_SCALE_CLK (1 << 9)
39 #define PWM_SEL_SRC_CLK (0 << 9)