Searched refs:clkdiv (Results 1 – 13 of 13) sorted by relevance
/arch/arm/mach-s3c2412/ |
D | cpu-freq.c | 120 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/ |
D | s3c2440-cpufreq.c | 146 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/ |
D | s3c244x.c | 83 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()
|
D | clock-s3c2412.c | 233 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/ |
D | cpu-freq.c | 37 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/ |
D | clock-clksrc.c | 42 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/ |
D | clock.c | 79 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/ |
D | bfin_twi.h | 24 __BFP(clkdiv);
|
D | bfin_ppi.h | 42 __BFP(clkdiv);
|
/arch/powerpc/platforms/52xx/ |
D | mpc52xx_common.c | 174 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/ |
D | clock.c | 492 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/ |
D | mpc52xx.h | 276 extern int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv);
|
/arch/blackfin/kernel/ |
D | debug-mmrs.c | 256 __EPPI(CLKDIV, clkdiv); in bfin_debug_mmrs_eppi() 515 __TWI(CLKDIV, clkdiv); in bfin_debug_mmrs_twi()
|