1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Application Peripheral Bus Clock Unit 4*4882a593Smuzhiyun */ 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun #ifndef __ASM_MACH_REGS_APBC_H 7*4882a593Smuzhiyun #define __ASM_MACH_REGS_APBC_H 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #include "addr-map.h" 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun /* Common APB clock register bit definitions */ 12*4882a593Smuzhiyun #define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */ 13*4882a593Smuzhiyun #define APBC_FNCLK (1 << 1) /* Functional Clock Enable */ 14*4882a593Smuzhiyun #define APBC_RST (1 << 2) /* Reset Generation */ 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun /* Functional Clock Selection Mask */ 17*4882a593Smuzhiyun #define APBC_FNCLKSEL(x) (((x) & 0xf) << 4) 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun #endif /* __ASM_MACH_REGS_APBC_H */ 20