treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / include / asm / mach-loongson32 / regs-pwm.h
blobec870c82d492b9434d24a9f58d5c775340118441
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (c) 2014 Zhang, Keguang <keguang.zhang@gmail.com>
5 * Loongson 1 PWM Register Definitions.
6 */
8 #ifndef __ASM_MACH_LOONGSON32_REGS_PWM_H
9 #define __ASM_MACH_LOONGSON32_REGS_PWM_H
11 /* Loongson 1 PWM Timer Register Definitions */
12 #define PWM_CNT 0x0
13 #define PWM_HRC 0x4
14 #define PWM_LRC 0x8
15 #define PWM_CTRL 0xc
17 /* PWM Control Register Bits */
18 #define CNT_RST BIT(7)
19 #define INT_SR BIT(6)
20 #define INT_EN BIT(5)
21 #define PWM_SINGLE BIT(4)
22 #define PWM_OE BIT(3)
23 #define CNT_EN BIT(0)
25 #endif /* __ASM_MACH_LOONGSON32_REGS_PWM_H */