Home
last modified time | relevance | path

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

12

/linux-2.6.39/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()
Dclock.c240 unsigned long clkdiv; in s3c2412_setparent_armclk() local
259 clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c2412_setparent_armclk()
260 clkdiv &= ~S3C2412_CLKDIVN_DVSEN; in s3c2412_setparent_armclk()
261 clkdiv |= dvs; in s3c2412_setparent_armclk()
262 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2412_setparent_armclk()
/linux-2.6.39/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()
Ds3c244x.c80 unsigned long clkdiv; in s3c244x_setup_clocks() local
92 clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c244x_setup_clocks()
97 switch (clkdiv & S3C2440_CLKDIVN_HDIVN_MASK) { in s3c244x_setup_clocks()
116 pclk = hclk / ((clkdiv & S3C2440_CLKDIVN_PDIVN) ? 2 : 1); in s3c244x_setup_clocks()
/linux-2.6.39/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()
/linux-2.6.39/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()
/linux-2.6.39/drivers/w1/masters/
Dmxc_w1.c49 unsigned int clkdiv; member
126 mdev->clkdiv = (clk_get_rate(mdev->clk) / 1000000) - 1; in mxc_w1_probe()
142 __raw_writeb(mdev->clkdiv, mdev->regs + MXC_W1_TIME_DIVIDER); in mxc_w1_probe()
/linux-2.6.39/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()
/linux-2.6.39/sound/soc/imx/
Dwm1133-ev1.c39 unsigned int clkdiv; member
144 WM8350_DAC_CLKDIV, wm8350_audio[i].clkdiv); in wm1133_ev1_hw_params()
147 WM8350_ADC_CLKDIV, wm8350_audio[i].clkdiv); in wm1133_ev1_hw_params()
/linux-2.6.39/sound/soc/blackfin/
Dbf5xx-sport.h129 unsigned int clkdiv, unsigned int fsdiv);
133 unsigned int clkdiv, unsigned int fsdiv);
Dbf5xx-sport.c95 unsigned int rcr2, unsigned int clkdiv, unsigned int fsdiv) in sport_config_rx() argument
102 sport->regs->rclkdiv = clkdiv; in sport_config_rx()
112 unsigned int tcr2, unsigned int clkdiv, unsigned int fsdiv) in sport_config_tx() argument
119 sport->regs->tclkdiv = clkdiv; in sport_config_tx()
/linux-2.6.39/drivers/staging/brcm80211/util/
Dbcmotp.c629 u32 cap = 0, clkdiv, otpdiv = 0; in hndotp_init() local
682 clkdiv = R_REG(&cc->clkdiv); in hndotp_init()
683 clkdiv = in hndotp_init()
684 (clkdiv & ~CLKD_OTP) | (otpdiv << CLKD_OTP_SHIFT); in hndotp_init()
685 W_REG(&cc->clkdiv, clkdiv); in hndotp_init()
Dsiutils.c594 uint clkdiv; in si_doattach() local
595 clkdiv = R_REG(&cc->clkdiv); in si_doattach()
597 clkdiv = (clkdiv & ~CLKD_OTP) | (14 << CLKD_OTP_SHIFT); in si_doattach()
598 W_REG(&cc->clkdiv, clkdiv); in si_doattach()
599 SI_ERROR(("%s: set clkdiv to %x\n", __func__, clkdiv)); in si_doattach()
/linux-2.6.39/drivers/video/
Ds3c2410fb.c373 int clkdiv; in s3c2410fb_activate_var() local
375 clkdiv = DIV_ROUND_UP(s3c2410fb_calc_pixclk(fbi, var->pixclock), 2); in s3c2410fb_activate_var()
383 --clkdiv; in s3c2410fb_activate_var()
384 if (clkdiv < 0) in s3c2410fb_activate_var()
385 clkdiv = 0; in s3c2410fb_activate_var()
388 if (clkdiv < 2) in s3c2410fb_activate_var()
389 clkdiv = 2; in s3c2410fb_activate_var()
392 fbi->regs.lcdcon1 |= S3C2410_LCDCON1_CLKVAL(clkdiv); in s3c2410fb_activate_var()
Dnuc900fb.c230 int clkdiv; in nuc900fb_activate_var() local
232 clkdiv = nuc900fb_calc_pixclk(fbi, var->pixclock) - 1; in nuc900fb_activate_var()
233 if (clkdiv < 0) in nuc900fb_activate_var()
234 clkdiv = 0; in nuc900fb_activate_var()
Ds3c-fb.c450 int clkdiv; in s3c_fb_set_par() local
488 clkdiv = s3c_fb_calc_pixclk(sfb, var->pixclock); in s3c_fb_set_par()
493 if (clkdiv > 1) in s3c_fb_set_par()
494 data |= VIDCON0_CLKVAL_F(clkdiv-1) | VIDCON0_CLKDIR; in s3c_fb_set_par()
/linux-2.6.39/arch/blackfin/include/asm/
Dbfin_twi.h24 __BFP(clkdiv);
Dbfin_ppi.h42 __BFP(clkdiv);
/linux-2.6.39/arch/powerpc/platforms/52xx/
Dmpc52xx_common.c175 int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv) in mpc52xx_set_psc_clkdiv() argument
186 mclken_div = 0x8000 | (clkdiv & 0x1FF); in mpc52xx_set_psc_clkdiv()
/linux-2.6.39/drivers/mmc/host/
Dat91_mci.c707 int clkdiv; in at91_mci_set_ios() local
716 clkdiv = 0; in at91_mci_set_ios()
723 clkdiv = ((at91_master_clock / ios->clock) / 2) - 1; in at91_mci_set_ios()
725 clkdiv = (at91_master_clock / ios->clock) / 2; in at91_mci_set_ios()
727 pr_debug("clkdiv = %d. mcck = %ld\n", clkdiv, in at91_mci_set_ios()
728 at91_master_clock / (2 * (clkdiv + 1))); in at91_mci_set_ios()
740 at91_mci_write(host, AT91_MCI_MR, (at91_mci_read(host, AT91_MCI_MR) & ~AT91_MCI_CLKDIV) | clkdiv); in at91_mci_set_ios()
Datmel-mci.c923 u32 clkdiv; in atmci_set_ios() local
946 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios()
947 if (clkdiv > 255) { in atmci_set_ios()
951 clkdiv = 255; in atmci_set_ios()
954 host->mode_reg = MCI_MR_CLKDIV(clkdiv); in atmci_set_ios()
/linux-2.6.39/drivers/i2c/busses/
Di2c-ibm_iic.h38 u8 clkdiv; member
Di2c-ibm_iic.c93 in_8(&iic->extsts), in_8(&iic->clkdiv), in_8(&iic->xfrcnt), in dump_iic_regs()
155 out_8(&iic->clkdiv, dev->clckdiv); in iic_dev_init()
/linux-2.6.39/arch/arm/mach-s3c64xx/
Dclock.c402 u32 clkdiv; in s3c64xx_clk_arm_get_rate() local
405 clkdiv = __raw_readl(S3C_CLK_DIV0) & armclk_mask; in s3c64xx_clk_arm_get_rate()
407 return rate / (clkdiv + 1); in s3c64xx_clk_arm_get_rate()
/linux-2.6.39/arch/powerpc/include/asm/
Dmpc52xx.h276 extern int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv);

12