Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *   Application Peripheral Bus Clock Unit
0004  */
0005 
0006 #ifndef __ASM_MACH_REGS_APBC_H
0007 #define __ASM_MACH_REGS_APBC_H
0008 
0009 #include "addr-map.h"
0010 
0011 /* Common APB clock register bit definitions */
0012 #define APBC_APBCLK (1 << 0)  /* APB Bus Clock Enable */
0013 #define APBC_FNCLK  (1 << 1)  /* Functional Clock Enable */
0014 #define APBC_RST    (1 << 2)  /* Reset Generation */
0015 
0016 /* Functional Clock Selection Mask */
0017 #define APBC_FNCLKSEL(x)    (((x) & 0xf) << 4)
0018 
0019 #endif /* __ASM_MACH_REGS_APBC_H */