Linux 5.7.6
[linux/fpc-iii.git] / arch / arm / mach-mmp / regs-apbc.h
blobd0d00c2cce38b46971e8be93bba058e7c3b69136
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Application Peripheral Bus Clock Unit
4 */
6 #ifndef __ASM_MACH_REGS_APBC_H
7 #define __ASM_MACH_REGS_APBC_H
9 #include "addr-map.h"
11 /* Common APB clock register bit definitions */
12 #define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */
13 #define APBC_FNCLK (1 << 1) /* Functional Clock Enable */
14 #define APBC_RST (1 << 2) /* Reset Generation */
16 /* Functional Clock Selection Mask */
17 #define APBC_FNCLKSEL(x) (((x) & 0xf) << 4)
19 #endif /* __ASM_MACH_REGS_APBC_H */