Path: blob/master/arch/sh/include/cpu-sh4/cpu/freq.h
17498 views
/*1* include/asm-sh/cpu-sh4/freq.h2*3* Copyright (C) 2002, 2003 Paul Mundt4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*/9#ifndef __ASM_CPU_SH4_FREQ_H10#define __ASM_CPU_SH4_FREQ_H1112#if defined(CONFIG_CPU_SUBTYPE_SH7722) || \13defined(CONFIG_CPU_SUBTYPE_SH7723) || \14defined(CONFIG_CPU_SUBTYPE_SH7343) || \15defined(CONFIG_CPU_SUBTYPE_SH7366)16#define FRQCR 0xa415000017#define VCLKCR 0xa415000418#define SCLKACR 0xa415000819#define SCLKBCR 0xa415000c20#define IrDACLKCR 0xa415001021#define MSTPCR0 0xa415003022#define MSTPCR1 0xa415003423#define MSTPCR2 0xa415003824#elif defined(CONFIG_CPU_SUBTYPE_SH7757)25#define FRQCR 0xffc8000026#define OSCCR 0xffc8001827#define PLLCR 0xffc8002428#elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \29defined(CONFIG_CPU_SUBTYPE_SH7780)30#define FRQCR 0xffc8000031#elif defined(CONFIG_CPU_SUBTYPE_SH7724)32#define FRQCRA 0xa415000033#define FRQCRB 0xa415000434#define VCLKCR 0xa41500483536#define FCLKACR 0xa415000837#define FCLKBCR 0xa415000c38#define FRQCR FRQCRA39#define SCLKACR FCLKACR40#define SCLKBCR FCLKBCR41#define FCLKACR 0xa415000842#define FCLKBCR 0xa415000c43#define IrDACLKCR 0xa41500184445#define MSTPCR0 0xa415003046#define MSTPCR1 0xa415003447#define MSTPCR2 0xa41500384849#elif defined(CONFIG_CPU_SUBTYPE_SH7785)50#define FRQCR0 0xffc8000051#define FRQCR1 0xffc8000452#define FRQMR1 0xffc8001453#elif defined(CONFIG_CPU_SUBTYPE_SH7786)54#define FRQCR0 0xffc4000055#define FRQCR1 0xffc4000456#define FRQMR1 0xffc4001457#elif defined(CONFIG_CPU_SUBTYPE_SHX3)58#define FRQCR0 0xffc0000059#define FRQCR1 0xffc0000460#define FRQMR1 0xffc0001461#else62#define FRQCR 0xffc0000063#define FRQCR_PSTBY 0x020064#define FRQCR_PLLEN 0x040065#define FRQCR_CKOEN 0x080066#endif67#define MIN_DIVISOR_NR 068#define MAX_DIVISOR_NR 36970#endif /* __ASM_CPU_SH4_FREQ_H */71727374