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 | |
Paul Mundt | 178dd0c | 2008-04-09 17:56:18 +0900 | [diff] [blame] | 13 | #if defined(CONFIG_CPU_SUBTYPE_SH7722) || \ |
| 14 | defined(CONFIG_CPU_SUBTYPE_SH7723) || \ |
Yoshihiro Shimoda | a4e1d08 | 2008-07-07 21:11:51 +0900 | [diff] [blame] | 15 | defined(CONFIG_CPU_SUBTYPE_SH7343) || \ |
Paul Mundt | 178dd0c | 2008-04-09 17:56:18 +0900 | [diff] [blame] | 16 | defined(CONFIG_CPU_SUBTYPE_SH7366) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #define FRQCR 0xa4150000 |
dmitry pervushin | 1929cb3 | 2007-04-24 13:39:09 +0900 | [diff] [blame] | 18 | #define VCLKCR 0xa4150004 |
| 19 | #define SCLKACR 0xa4150008 |
| 20 | #define SCLKBCR 0xa415000c |
| 21 | #define IrDACLKCR 0xa4150010 |
Magnus Damm | aea167c | 2008-07-17 18:56:15 +0900 | [diff] [blame] | 22 | #define MSTPCR0 0xa4150030 |
| 23 | #define MSTPCR1 0xa4150034 |
| 24 | #define MSTPCR2 0xa4150038 |
Yoshihiro Shimoda | c01f0f1 | 2009-08-21 16:30:28 +0900 | [diff] [blame] | 25 | #elif defined(CONFIG_CPU_SUBTYPE_SH7757) |
| 26 | #define FRQCR 0xffc80000 |
| 27 | #define OSCCR 0xffc80018 |
| 28 | #define PLLCR 0xffc80024 |
Yoshihiro Shimoda | 7d740a0 | 2008-01-07 14:40:07 +0900 | [diff] [blame] | 29 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ |
| 30 | defined(CONFIG_CPU_SUBTYPE_SH7780) |
Paul Mundt | 36ddf31 | 2006-01-16 22:14:17 -0800 | [diff] [blame] | 31 | #define FRQCR 0xffc80000 |
Kuninori Morimoto | 0207a2e | 2009-04-16 14:40:56 +0900 | [diff] [blame] | 32 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) |
| 33 | #define FRQCRA 0xa4150000 |
| 34 | #define FRQCRB 0xa4150004 |
| 35 | #define VCLKCR 0xa4150048 |
| 36 | |
| 37 | #define FCLKACR 0xa4150008 |
| 38 | #define FCLKBCR 0xa415000c |
| 39 | #define FRQCR FRQCRA |
| 40 | #define SCLKACR FCLKACR |
| 41 | #define SCLKBCR FCLKBCR |
| 42 | #define FCLKACR 0xa4150008 |
| 43 | #define FCLKBCR 0xa415000c |
| 44 | #define IrDACLKCR 0xa4150018 |
| 45 | |
| 46 | #define MSTPCR0 0xa4150030 |
| 47 | #define MSTPCR1 0xa4150034 |
| 48 | #define MSTPCR2 0xa4150038 |
| 49 | |
Paul Mundt | 32351a2 | 2007-03-12 14:38:59 +0900 | [diff] [blame] | 50 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) |
| 51 | #define FRQCR0 0xffc80000 |
| 52 | #define FRQCR1 0xffc80004 |
| 53 | #define FRQMR1 0xffc80014 |
Kuninori Morimoto | 55ba99e | 2009-03-03 15:40:25 +0900 | [diff] [blame] | 54 | #elif defined(CONFIG_CPU_SUBTYPE_SH7786) |
| 55 | #define FRQCR0 0xffc40000 |
| 56 | #define FRQCR1 0xffc40004 |
| 57 | #define FRQMR1 0xffc40014 |
Paul Mundt | 2b1bd1a | 2007-06-20 18:27:10 +0900 | [diff] [blame] | 58 | #elif defined(CONFIG_CPU_SUBTYPE_SHX3) |
Paul Mundt | 5924ad0 | 2010-10-01 23:49:56 +0900 | [diff] [blame] | 59 | #define FRQCR0 0xffc00000 |
| 60 | #define FRQCR1 0xffc00004 |
| 61 | #define FRQMR1 0xffc00014 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | #else |
| 63 | #define FRQCR 0xffc00000 |
Evgeniy Polyakov | 66c5227 | 2007-05-31 13:46:21 +0900 | [diff] [blame] | 64 | #define FRQCR_PSTBY 0x0200 |
| 65 | #define FRQCR_PLLEN 0x0400 |
| 66 | #define FRQCR_CKOEN 0x0800 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | #endif |
| 68 | #define MIN_DIVISOR_NR 0 |
| 69 | #define MAX_DIVISOR_NR 3 |
| 70 | |
| 71 | #endif /* __ASM_CPU_SH4_FREQ_H */ |
| 72 | |