Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-sh/cpu-sh4/freq.h |
| 3 | * |
| 4 | * Copyright (C) 2002, 2003 Paul Mundt |
| 5 | * |
| 6 | * This file is subject to the terms and conditions of the GNU General Public |
| 7 | * License. See the file "COPYING" in the main directory of this archive |
| 8 | * for more details. |
| 9 | */ |
| 10 | #ifndef __ASM_CPU_SH4_FREQ_H |
| 11 | #define __ASM_CPU_SH4_FREQ_H |
| 12 | |
Magnus Damm | 870e8a2 | 2007-07-25 10:49:21 +0900 | [diff] [blame] | 13 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #define FRQCR 0xa4150000 |
dmitry pervushin | 1929cb3 | 2007-04-24 13:39:09 +0900 | [diff] [blame] | 15 | #define VCLKCR 0xa4150004 |
| 16 | #define SCLKACR 0xa4150008 |
| 17 | #define SCLKBCR 0xa415000c |
| 18 | #define IrDACLKCR 0xa4150010 |
Yoshihiro Shimoda | 7d740a0 | 2008-01-07 14:40:07 +0900 | [diff] [blame] | 19 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ |
| 20 | defined(CONFIG_CPU_SUBTYPE_SH7780) |
Paul Mundt | 36ddf31 | 2006-01-16 22:14:17 -0800 | [diff] [blame] | 21 | #define FRQCR 0xffc80000 |
Paul Mundt | 32351a2 | 2007-03-12 14:38:59 +0900 | [diff] [blame] | 22 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) |
| 23 | #define FRQCR0 0xffc80000 |
| 24 | #define FRQCR1 0xffc80004 |
| 25 | #define FRQMR1 0xffc80014 |
Paul Mundt | 2b1bd1a | 2007-06-20 18:27:10 +0900 | [diff] [blame] | 26 | #elif defined(CONFIG_CPU_SUBTYPE_SHX3) |
| 27 | #define FRQCR 0xffc00014 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #else |
| 29 | #define FRQCR 0xffc00000 |
Evgeniy Polyakov | 66c5227 | 2007-05-31 13:46:21 +0900 | [diff] [blame] | 30 | #define FRQCR_PSTBY 0x0200 |
| 31 | #define FRQCR_PLLEN 0x0400 |
| 32 | #define FRQCR_CKOEN 0x0800 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #endif |
| 34 | #define MIN_DIVISOR_NR 0 |
| 35 | #define MAX_DIVISOR_NR 3 |
| 36 | |
| 37 | #endif /* __ASM_CPU_SH4_FREQ_H */ |
| 38 | |