16a0abce4SKuninori Morimoto /* SPDX-License-Identifier: GPL-2.0 26a0abce4SKuninori Morimoto * 3f15cbe6fSPaul Mundt * include/asm-sh/cpu-sh3/freq.h 4f15cbe6fSPaul Mundt * 5f15cbe6fSPaul Mundt * Copyright (C) 2002, 2003 Paul Mundt 6f15cbe6fSPaul Mundt */ 7f15cbe6fSPaul Mundt #ifndef __ASM_CPU_SH3_FREQ_H 8f15cbe6fSPaul Mundt #define __ASM_CPU_SH3_FREQ_H 9f15cbe6fSPaul Mundt 10f15cbe6fSPaul Mundt #ifdef CONFIG_CPU_SUBTYPE_SH7712 11f15cbe6fSPaul Mundt #define FRQCR 0xA415FF80 12f15cbe6fSPaul Mundt #else 13f15cbe6fSPaul Mundt #define FRQCR 0xffffff80 14f15cbe6fSPaul Mundt #endif 15f15cbe6fSPaul Mundt 16f15cbe6fSPaul Mundt #define MIN_DIVISOR_NR 0 17f15cbe6fSPaul Mundt #define MAX_DIVISOR_NR 4 18f15cbe6fSPaul Mundt 19f15cbe6fSPaul Mundt #define FRQCR_CKOEN 0x0100 20f15cbe6fSPaul Mundt #define FRQCR_PLLEN 0x0080 21f15cbe6fSPaul Mundt #define FRQCR_PSTBY 0x0040 22f15cbe6fSPaul Mundt 23f15cbe6fSPaul Mundt #endif /* __ASM_CPU_SH3_FREQ_H */ 24f15cbe6fSPaul Mundt 25