| Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 2 | /* |
| Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 3 | * Application Peripheral Bus Clock Unit |
| Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_MACH_REGS_APBC_H |
| 7 | #define __ASM_MACH_REGS_APBC_H |
| 8 | |
| Arnd Bergmann | b501fd7 | 2014-04-15 20:38:32 +0200 | [diff] [blame] | 9 | #include "addr-map.h" |
| Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 10 | |
| Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 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 */ |
| 15 | |
| 16 | /* Functional Clock Selection Mask */ |
| 17 | #define APBC_FNCLKSEL(x) (((x) & 0xf) << 4) |
| 18 | |
| 19 | #endif /* __ASM_MACH_REGS_APBC_H */ |