blob: c23af81c2e701805a0656b84ec459181f2c5b8ca [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 Mundt178dd0c2008-04-09 17:56:18 +090013#if defined(CONFIG_CPU_SUBTYPE_SH7722) || \
14 defined(CONFIG_CPU_SUBTYPE_SH7723) || \
Yoshihiro Shimodaa4e1d082008-07-07 21:11:51 +090015 defined(CONFIG_CPU_SUBTYPE_SH7343) || \
Paul Mundt178dd0c2008-04-09 17:56:18 +090016 defined(CONFIG_CPU_SUBTYPE_SH7366)
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#define FRQCR 0xa4150000
dmitry pervushin1929cb32007-04-24 13:39:09 +090018#define VCLKCR 0xa4150004
19#define SCLKACR 0xa4150008
20#define SCLKBCR 0xa415000c
21#define IrDACLKCR 0xa4150010
Magnus Dammaea167c2008-07-17 18:56:15 +090022#define MSTPCR0 0xa4150030
23#define MSTPCR1 0xa4150034
24#define MSTPCR2 0xa4150038
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +090025#elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \
26 defined(CONFIG_CPU_SUBTYPE_SH7780)
Paul Mundt36ddf312006-01-16 22:14:17 -080027#define FRQCR 0xffc80000
Paul Mundt32351a22007-03-12 14:38:59 +090028#elif defined(CONFIG_CPU_SUBTYPE_SH7785)
29#define FRQCR0 0xffc80000
30#define FRQCR1 0xffc80004
31#define FRQMR1 0xffc80014
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090032#elif defined(CONFIG_CPU_SUBTYPE_SHX3)
33#define FRQCR 0xffc00014
Linus Torvalds1da177e2005-04-16 15:20:36 -070034#else
35#define FRQCR 0xffc00000
Evgeniy Polyakov66c52272007-05-31 13:46:21 +090036#define FRQCR_PSTBY 0x0200
37#define FRQCR_PLLEN 0x0400
38#define FRQCR_CKOEN 0x0800
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#endif
40#define MIN_DIVISOR_NR 0
41#define MAX_DIVISOR_NR 3
42
43#endif /* __ASM_CPU_SH4_FREQ_H */
44