summaryrefslogtreecommitdiff
path: root/include/amlogic/pwm.h (plain)
blob: 9d741ff306f139a81c5807d33b9401714cad95d5
1/*
2 * Amlogic I2C controller Diver
3 *
4 * Copyright (C) 2018 Amlogic Corporation
5 *
6 * Licensed under the GPL-2 or later.
7 *
8 */
9
10#ifndef __PWM_H__
11#define __PWM_H__
12
13/*
14 * @pwm_index: Controller Index.
15 * @reg: Controller registers address.
16 */
17
18#define MESON_PWM0 0
19#define MESON_PWM1 1
20#define MESON_PWM2 2
21#define MESON_PWM3 3
22
23#define NO_DOUBLE_CHANNEL 0
24#define IS_DOUBLE_CHANNEL 1
25#define NO_BLINK 0
26#define IS_BLINK 1
27
28enum {
29 PWM_AB = 0x0,
30 PWM_CD = 0x1,
31 PWM_EF = 0x2,
32 PWMAO_AB = 0x3,
33 PWMAO_CD = 0x4,
34};
35
36struct meson_pwm_platdata {
37 unsigned int pwm_index;
38 ulong reg;
39 bool is_double_channel;
40 bool is_blink;
41};
42
43#endif /* __PWM_H__ */
44