Home
last modified time | relevance | path

Searched refs:clkdiv (Results 1 – 13 of 13) sorted by relevance

/arch/arm/mach-s3c2412/
Dcpu-freq.c120 unsigned long clkdiv; in s3c2412_cpufreq_setdivs() local
123 olddiv = clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c2412_cpufreq_setdivs()
127 clkdiv &= ~S3C2412_CLKDIVN_ARMDIVN; in s3c2412_cpufreq_setdivs()
128 clkdiv &= ~S3C2412_CLKDIVN_HDIVN_MASK; in s3c2412_cpufreq_setdivs()
129 clkdiv &= ~S3C2412_CLKDIVN_PDIVN; in s3c2412_cpufreq_setdivs()
132 clkdiv |= S3C2412_CLKDIVN_ARMDIVN; in s3c2412_cpufreq_setdivs()
134 clkdiv |= ((cfg->divs.h_divisor / cfg->divs.arm_divisor) - 1); in s3c2412_cpufreq_setdivs()
137 clkdiv |= S3C2412_CLKDIVN_PDIVN; in s3c2412_cpufreq_setdivs()
139 s3c_freq_dbg("%s: div %08lx => %08lx\n", __func__, olddiv, clkdiv); in s3c2412_cpufreq_setdivs()
140 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2412_cpufreq_setdivs()
/arch/arm/mach-s3c2440/
Ds3c2440-cpufreq.c146 unsigned long clkdiv, camdiv; in s3c2440_cpufreq_setdivs() local
151 clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c2440_cpufreq_setdivs()
154 clkdiv &= ~(S3C2440_CLKDIVN_HDIVN_MASK | S3C2440_CLKDIVN_PDIVN); in s3c2440_cpufreq_setdivs()
159 clkdiv |= S3C2440_CLKDIVN_HDIVN_1; in s3c2440_cpufreq_setdivs()
163 clkdiv |= S3C2440_CLKDIVN_HDIVN_2; in s3c2440_cpufreq_setdivs()
169 clkdiv |= S3C2440_CLKDIVN_HDIVN_3_6; in s3c2440_cpufreq_setdivs()
175 clkdiv |= S3C2440_CLKDIVN_HDIVN_4_8; in s3c2440_cpufreq_setdivs()
183 clkdiv |= S3C2440_CLKDIVN_PDIVN; in s3c2440_cpufreq_setdivs()
193 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2440_cpufreq_setdivs()
/arch/arm/mach-s3c24xx/
Ds3c244x.c83 unsigned long clkdiv; in s3c244x_setup_clocks() local
95 clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c244x_setup_clocks()
100 switch (clkdiv & S3C2440_CLKDIVN_HDIVN_MASK) { in s3c244x_setup_clocks()
119 pclk = hclk / ((clkdiv & S3C2440_CLKDIVN_PDIVN) ? 2 : 1); in s3c244x_setup_clocks()
Dclock-s3c2412.c233 unsigned long clkdiv; in s3c2412_setparent_armclk() local
252 clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c2412_setparent_armclk()
253 clkdiv &= ~S3C2412_CLKDIVN_DVSEN; in s3c2412_setparent_armclk()
254 clkdiv |= dvs; in s3c2412_setparent_armclk()
255 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2412_setparent_armclk()
/arch/arm/mach-s3c2410/
Dcpu-freq.c37 u32 clkdiv = 0; in s3c2410_cpufreq_setdivs() local
40 clkdiv |= S3C2410_CLKDIVN_HDIVN; in s3c2410_cpufreq_setdivs()
43 clkdiv |= S3C2410_CLKDIVN_PDIVN; in s3c2410_cpufreq_setdivs()
45 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2410_cpufreq_setdivs()
/arch/arm/plat-samsung/
Dclock-clksrc.c42 u32 clkdiv = __raw_readl(sclk->reg_div.reg); in s3c_getrate_clksrc() local
45 clkdiv &= mask; in s3c_getrate_clksrc()
46 clkdiv >>= sclk->reg_div.shift; in s3c_getrate_clksrc()
47 clkdiv++; in s3c_getrate_clksrc()
49 rate /= clkdiv; in s3c_getrate_clksrc()
/arch/arm/mach-s5p64x0/
Dclock.c79 u32 clkdiv; in s5p64x0_armclk_get_rate() local
82 clkdiv = __raw_readl(ARM_CLK_DIV) & ARM_DIV_MASK; in s5p64x0_armclk_get_rate()
84 return rate / (clkdiv + 1); in s5p64x0_armclk_get_rate()
/arch/blackfin/include/asm/
Dbfin_twi.h24 __BFP(clkdiv);
Dbfin_ppi.h42 __BFP(clkdiv);
/arch/powerpc/platforms/52xx/
Dmpc52xx_common.c174 int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv) in mpc52xx_set_psc_clkdiv() argument
185 mclken_div = 0x8000 | (clkdiv & 0x1FF); in mpc52xx_set_psc_clkdiv()
/arch/arm/mach-s3c64xx/
Dclock.c492 u32 clkdiv; in s3c64xx_clk_arm_get_rate() local
495 clkdiv = __raw_readl(S3C_CLK_DIV0) & armclk_mask; in s3c64xx_clk_arm_get_rate()
497 return rate / (clkdiv + 1); in s3c64xx_clk_arm_get_rate()
/arch/powerpc/include/asm/
Dmpc52xx.h276 extern int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv);
/arch/blackfin/kernel/
Ddebug-mmrs.c256 __EPPI(CLKDIV, clkdiv); in bfin_debug_mmrs_eppi()
515 __TWI(CLKDIV, clkdiv); in bfin_debug_mmrs_twi()