Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 1 | /* |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 2 | * Application Peripheral Bus Clock Unit |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __ASM_MACH_REGS_APBC_H |
| 10 | #define __ASM_MACH_REGS_APBC_H |
| 11 | |
Arnd Bergmann | b501fd7 | 2014-04-15 20:38:32 +0200 | [diff] [blame] | 12 | #include "addr-map.h" |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 13 | |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 14 | /* Common APB clock register bit definitions */ |
| 15 | #define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */ |
| 16 | #define APBC_FNCLK (1 << 1) /* Functional Clock Enable */ |
| 17 | #define APBC_RST (1 << 2) /* Reset Generation */ |
| 18 | |
| 19 | /* Functional Clock Selection Mask */ |
| 20 | #define APBC_FNCLKSEL(x) (((x) & 0xf) << 4) |
| 21 | |
| 22 | #endif /* __ASM_MACH_REGS_APBC_H */ |