Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / mips / include / asm / mach-loongson32 / regs-pwm.h
blob4119600ce79a3b8fa17c0ec5734d3edf2c6aa85a
1 /*
2 * Copyright (c) 2014 Zhang, Keguang <keguang.zhang@gmail.com>
4 * Loongson 1 PWM Register Definitions.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #ifndef __ASM_MACH_LOONGSON32_REGS_PWM_H
13 #define __ASM_MACH_LOONGSON32_REGS_PWM_H
15 /* Loongson 1 PWM Timer Register Definitions */
16 #define PWM_CNT 0x0
17 #define PWM_HRC 0x4
18 #define PWM_LRC 0x8
19 #define PWM_CTRL 0xc
21 /* PWM Control Register Bits */
22 #define CNT_RST BIT(7)
23 #define INT_SR BIT(6)
24 #define INT_EN BIT(5)
25 #define PWM_SINGLE BIT(4)
26 #define PWM_OE BIT(3)
27 #define CNT_EN BIT(0)
29 #endif /* __ASM_MACH_LOONGSON32_REGS_PWM_H */