blob: ec028c649215542843871530de938f8ec2b98bce [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
Magnus Damm9109a302008-02-08 17:31:24 +090013#if defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7366)
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#define FRQCR 0xa4150000
dmitry pervushin1929cb32007-04-24 13:39:09 +090015#define VCLKCR 0xa4150004
16#define SCLKACR 0xa4150008
17#define SCLKBCR 0xa415000c
Magnus Damm9109a302008-02-08 17:31:24 +090018#if defined(CONFIG_CPU_SUBTYPE_SH7722)
dmitry pervushin1929cb32007-04-24 13:39:09 +090019#define IrDACLKCR 0xa4150010
Magnus Damm9109a302008-02-08 17:31:24 +090020#endif
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +090021#elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \
22 defined(CONFIG_CPU_SUBTYPE_SH7780)
Paul Mundt36ddf312006-01-16 22:14:17 -080023#define FRQCR 0xffc80000
Paul Mundt32351a22007-03-12 14:38:59 +090024#elif defined(CONFIG_CPU_SUBTYPE_SH7785)
25#define FRQCR0 0xffc80000
26#define FRQCR1 0xffc80004
27#define FRQMR1 0xffc80014
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090028#elif defined(CONFIG_CPU_SUBTYPE_SHX3)
29#define FRQCR 0xffc00014
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#else
31#define FRQCR 0xffc00000
Evgeniy Polyakov66c52272007-05-31 13:46:21 +090032#define FRQCR_PSTBY 0x0200
33#define FRQCR_PLLEN 0x0400
34#define FRQCR_CKOEN 0x0800
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#endif
36#define MIN_DIVISOR_NR 0
37#define MAX_DIVISOR_NR 3
38
39#endif /* __ASM_CPU_SH4_FREQ_H */
40