Path: blob/master/arch/arm/mach-nuc93x/include/mach/regs-clock.h
17681 views
/*1* arch/arm/mach-nuc93x/include/mach/regs-clock.h2*3* Copyright (c) 2008 Nuvoton technology corporation.4*5* Wan ZongShun <[email protected]>6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation;version 2 of the License.10*11*/1213#ifndef __ASM_ARCH_REGS_CLOCK_H14#define __ASM_ARCH_REGS_CLOCK_H1516/* Clock Control Registers */17#define CLK_BA NUC93X_VA_CLKPWR18#define REG_CLKEN (CLK_BA + 0x00)19#define REG_CLKSEL (CLK_BA + 0x04)20#define REG_CLKDIV (CLK_BA + 0x08)21#define REG_PLLCON0 (CLK_BA + 0x0C)22#define REG_PLLCON1 (CLK_BA + 0x10)23#define REG_PMCON (CLK_BA + 0x14)24#define REG_IRQWAKECON (CLK_BA + 0x18)25#define REG_IRQWAKEFLAG (CLK_BA + 0x1C)26#define REG_IPSRST (CLK_BA + 0x20)27#define REG_CLKEN1 (CLK_BA + 0x24)28#define REG_CLKDIV1 (CLK_BA + 0x28)2930/* Define PLL freq setting */31#define PLL_DISABLE 0x12B6332#define PLL_66MHZ 0x2B6333#define PLL_100MHZ 0x4F6434#define PLL_120MHZ 0x4F6335#define PLL_166MHZ 0x412436#define PLL_200MHZ 0x4F243738/* Define AHB:CPUFREQ ratio */39#define AHB_CPUCLK_1_1 0x0040#define AHB_CPUCLK_1_2 0x0141#define AHB_CPUCLK_1_4 0x0242#define AHB_CPUCLK_1_8 0x034344/* Define APB:AHB ratio */45#define APB_AHB_1_2 0x0146#define APB_AHB_1_4 0x0247#define APB_AHB_1_8 0x034849/* Define clock skew */50#define DEFAULTSKEW 0x485152#endif /* __ASM_ARCH_REGS_CLOCK_H */535455