Home
last modified time | relevance | path

Searched refs:prescaler (Results 1 – 11 of 11) sorted by relevance

/external/u-boot/drivers/pwm/
Dsunxi_pwm.c24 u32 prescaler; member
70 int prescaler; in sunxi_pwm_set_config() local
77 for (prescaler = 0; prescaler < SUNXI_PWM_CTRL_PRESCALE0_MASK; in sunxi_pwm_set_config()
78 prescaler++) { in sunxi_pwm_set_config()
79 if (!prescaler_table[prescaler]) in sunxi_pwm_set_config()
81 scaled_freq = lldiv(OSC_24MHZ, prescaler_table[prescaler]); in sunxi_pwm_set_config()
94 if (priv->prescaler != prescaler) { in sunxi_pwm_set_config()
100 v |= (priv->prescaler & SUNXI_PWM_CTRL_PRESCALE0_MASK); in sunxi_pwm_set_config()
104 priv->prescaler = prescaler; in sunxi_pwm_set_config()
111 __func__, priv->prescaler, in sunxi_pwm_set_config()
Dexynos_pwm.c23 unsigned int offset, prescaler; in exynos_pwm_set_config() local
34 prescaler = (channel < 2 ? val : (val >> 8)) & 0xff; in exynos_pwm_set_config()
37 rate = get_pwm_clk() / ((prescaler + 1) * (1 << div)); in exynos_pwm_set_config()
/external/u-boot/arch/arm/cpu/armv7/s5p-common/
Dpwm.c120 unsigned int offset, prescaler; in pwm_init() local
129 prescaler = PRESCALER_0; in pwm_init()
131 val |= (prescaler & 0xff); in pwm_init()
133 prescaler = PRESCALER_1; in pwm_init()
135 val |= (prescaler & 0xff) << 8; in pwm_init()
152 ((prescaler + 1) * (1 << div)); in pwm_init()
/external/u-boot/drivers/mmc/
Dmxcmmc.c424 int prescaler = 0; in mxcmci_set_clk_rate() local
427 while (prescaler <= 0x800) { in mxcmci_set_clk_rate()
433 if (prescaler) in mxcmci_set_clk_rate()
434 x /= (prescaler * 2); in mxcmci_set_clk_rate()
442 if (prescaler == 0) in mxcmci_set_clk_rate()
443 prescaler = 1; in mxcmci_set_clk_rate()
445 prescaler <<= 1; in mxcmci_set_clk_rate()
448 writel((prescaler << 4) | divider, &host->base->clk_rate); in mxcmci_set_clk_rate()
/external/u-boot/arch/arm/mach-imx/
Dtimer.c19 unsigned int prescaler; member
93 &cur_gpt->prescaler); in timer_init()
99 __raw_writel(0, &cur_gpt->prescaler); /* 32Khz */ in timer_init()
/external/u-boot/drivers/watchdog/
Dcdns_wdt.c130 u32 count, prescaler, ctrl_clksel, data = 0; in cdns_wdt_start() local
153 prescaler = CDNS_WDT_PRESCALE_512; in cdns_wdt_start()
156 prescaler = CDNS_WDT_PRESCALE_4096; in cdns_wdt_start()
164 count = (timeout * (clk_f / prescaler)) / in cdns_wdt_start()
/external/u-boot/drivers/spi/
Dstm32_qspi.c570 u32 prescaler = 255; in stm32_qspi_set_speed() local
577 prescaler = DIV_ROUND_UP(qspi_clk, speed) - 1; in stm32_qspi_set_speed()
578 if (prescaler > 255) in stm32_qspi_set_speed()
579 prescaler = 255; in stm32_qspi_set_speed()
580 else if (prescaler < 0) in stm32_qspi_set_speed()
581 prescaler = 0; in stm32_qspi_set_speed()
584 csht = DIV_ROUND_UP((5 * qspi_clk) / (prescaler + 1), 100000000); in stm32_qspi_set_speed()
592 prescaler << STM32_QSPI_CR_PRESCALER_SHIFT); in stm32_qspi_set_speed()
599 (qspi_clk / (prescaler + 1))); in stm32_qspi_set_speed()
Dcf_spi.c193 int prescaler[] = { 2, 3, 5, 7 }; in cfspi_setup_slave() local
204 tmp = (prescaler[3] * scaler[15]); in cfspi_setup_slave()
215 (cfslave->baudrate > (gd->bus_clk / (prescaler[0] * scaler[0])))) { in cfspi_setup_slave()
253 pbrcnt = sizeof(prescaler) / sizeof(int); in cfspi_setup_slave()
258 baud_speed = gd->bus_clk / prescaler[i]; in cfspi_setup_slave()
/external/u-boot/drivers/i2c/
Domap24xx_i2c.c66 unsigned int prescaler; in omap24_i2c_findpsc() local
88 prescaler = fclk / internal_clk; in omap24_i2c_findpsc()
89 prescaler = prescaler - 1; in omap24_i2c_findpsc()
105 __func__, speed, prescaler, *pscl, *psch); in omap24_i2c_findpsc()
107 if (*pscl <= 0 || *psch <= 0 || prescaler <= 0) in omap24_i2c_findpsc()
110 return prescaler; in omap24_i2c_findpsc()
Dstm32f7_i2c.c593 u32 prescaler = (v->presc + 1) * i2cclk; in stm32_i2c_choose_solution() local
596 u32 tscl_l = (l + 1) * prescaler + tsync; in stm32_i2c_choose_solution()
604 u32 tscl_h = (h + 1) * prescaler + tsync; in stm32_i2c_choose_solution()
/external/u-boot/doc/device-tree-bindings/video/
Dexynos_mipi_dsi.txt32 the escape clock prescaler value.