blob: 69f174ed13a43d47915b67c8ed32100aa94026bf [file] [log] [blame]
Kelvin Cheungf29ad102014-10-10 11:40:01 +08001/*
2 * Copyright (c) 2014 Zhang, Keguang <keguang.zhang@gmail.com>
3 *
4 * Loongson 1 PWM Register Definitions.
5 *
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.
10 */
11
Huacai Chen30ad29b2015-04-21 10:00:35 +080012#ifndef __ASM_MACH_LOONGSON32_REGS_PWM_H
13#define __ASM_MACH_LOONGSON32_REGS_PWM_H
Kelvin Cheungf29ad102014-10-10 11:40:01 +080014
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
20
21/* PWM Control Register Bits */
22#define CNT_RST (0x1 << 7)
23#define INT_SR (0x1 << 6)
24#define INT_EN (0x1 << 5)
25#define PWM_SINGLE (0x1 << 4)
26#define PWM_OE (0x1 << 3)
27#define CNT_EN 0x1
28
Huacai Chen30ad29b2015-04-21 10:00:35 +080029#endif /* __ASM_MACH_LOONGSON32_REGS_PWM_H */