Searched refs:hdiv (Results 1 – 4 of 4) sorted by relevance
/arch/arm/mach-s3c2440/ |
D | s3c2440-cpufreq.c | 61 unsigned int hdiv, pdiv; in s3c2440_cpufreq_calcdivs() local 81 for (hdiv = 1; hdiv < 9; hdiv++) { in s3c2440_cpufreq_calcdivs() 82 if (hdiv == 5 || hdiv == 7) in s3c2440_cpufreq_calcdivs() 83 hdiv++; in s3c2440_cpufreq_calcdivs() 85 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs() 90 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs() 92 if (hdiv > 8) in s3c2440_cpufreq_calcdivs() 105 pdiv *= hdiv; in s3c2440_cpufreq_calcdivs() 125 cfg->divs.h_divisor = hdiv; in s3c2440_cpufreq_calcdivs()
|
/arch/arm/mach-s3c24xx/ |
D | s3c244x.c | 87 int hdiv = 1; in s3c244x_setup_clocks() local 102 hdiv = 1; in s3c244x_setup_clocks() 106 hdiv = 2; in s3c244x_setup_clocks() 110 hdiv = (camdiv & S3C2440_CAMDIVN_HCLK4_HALF) ? 8 : 4; in s3c244x_setup_clocks() 114 hdiv = (camdiv & S3C2440_CAMDIVN_HCLK3_HALF) ? 6 : 3; in s3c244x_setup_clocks() 118 hclk = fclk / hdiv; in s3c244x_setup_clocks()
|
/arch/arm/mach-s3c2412/ |
D | cpu-freq.c | 45 unsigned int hdiv, pdiv, armdiv, dvs; in s3c2412_cpufreq_calcdivs() local 75 hdiv = armdiv_clk / hclk_max; in s3c2412_cpufreq_calcdivs() 76 if (hdiv < 1) in s3c2412_cpufreq_calcdivs() 77 hdiv = 1; in s3c2412_cpufreq_calcdivs() 79 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs() 88 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs() 90 if (hdiv > 4) in s3c2412_cpufreq_calcdivs() 105 pdiv *= hdiv; in s3c2412_cpufreq_calcdivs() 109 cfg->divs.h_divisor = hdiv * armdiv; in s3c2412_cpufreq_calcdivs()
|
/arch/arm/mach-s3c2410/ |
D | cpu-freq.c | 51 unsigned int hdiv, pdiv; in s3c2410_cpufreq_calcdivs() local 62 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 63 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs() 78 pdiv *= hdiv; in s3c2410_cpufreq_calcdivs() 82 cfg->divs.h_divisor = hdiv; in s3c2410_cpufreq_calcdivs()
|