| /* SPDX-License-Identifier: GPL-2.0-only */ |
| /* |
| * Application Peripheral Bus Clock Unit |
| */ |
| |
| #ifndef __ASM_MACH_REGS_APBC_H |
| #define __ASM_MACH_REGS_APBC_H |
| |
| #include "addr-map.h" |
| |
| /* Common APB clock register bit definitions */ |
| #define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */ |
| #define APBC_FNCLK (1 << 1) /* Functional Clock Enable */ |
| #define APBC_RST (1 << 2) /* Reset Generation */ |
| |
| /* Functional Clock Selection Mask */ |
| #define APBC_FNCLKSEL(x) (((x) & 0xf) << 4) |
| |
| #define APBC_MMPX_TIMER0 APBC_REG(0x034) |
| #define APBC_MMPX_TIMER1 APBC_REG(0x044) |
| #define APBC_MMPX_TIMER2 APBC_REG(0x068) |
| |
| #define APBCP_TICER APBCP_REG(0x030) |
| |
| #endif /* __ASM_MACH_REGS_APBC_H */ |