Home
last modified time | relevance | path

Searched refs:prescale (Results 1 – 9 of 9) sorted by relevance

/u-boot/drivers/pwm/
A Dpwm-imx.c30 unsigned long duty_cycles, unsigned long prescale) in pwm_config_internal() argument
35 cr = PWMCR_PRESCALER(prescale) | in pwm_config_internal()
50 unsigned long period_cycles, duty_cycles, prescale; in pwm_config() local
56 &prescale); in pwm_config()
58 return pwm_config_internal(pwm, period_cycles, duty_cycles, prescale); in pwm_config()
104 unsigned long period_cycles, duty_cycles, prescale; in imx_pwm_set_config() local
109 &prescale); in imx_pwm_set_config()
111 return pwm_config_internal(regs, period_cycles, duty_cycles, prescale); in imx_pwm_set_config()
A Dpwm-imx-util.c49 unsigned long *duty_c, unsigned long *prescale) in pwm_imx_get_parms() argument
63 *prescale = *period_c / 0x10000 + 1; in pwm_imx_get_parms()
65 *period_c /= *prescale; in pwm_imx_get_parms()
A Dpwm-imx-util.h14 unsigned long *duty_c, unsigned long *prescale);
/u-boot/drivers/timer/
A Dnomadik-mtu-timer.c71 u32 prescale; in nomadik_mtu_probe() local
86 prescale = MTU_CR_PRESCALE_16; in nomadik_mtu_probe()
88 prescale = MTU_CR_PRESCALE_1; in nomadik_mtu_probe()
92 writel(MTU_CR_ENABLE | prescale | MTU_CR_32BITS, &priv->timer->cr); in nomadik_mtu_probe()
/u-boot/drivers/spi/
A Dmvebu_a3700_spi.c192 u32 data, prescale; in mvebu_spi_set_speed() local
196 prescale = DIV_ROUND_UP(clk_get_rate(&plat->clk), hz); in mvebu_spi_set_speed()
197 if (prescale > 0xf) in mvebu_spi_set_speed()
198 prescale = 0x10 + (prescale + 1) / 2; in mvebu_spi_set_speed()
199 prescale = min(prescale, 0x1fu); in mvebu_spi_set_speed()
202 data |= prescale & MVEBU_SPI_A3700_CLK_PRESCALE_MASK; in mvebu_spi_set_speed()
A Dmt7620_spi.c65 u32 rate, prescale, freq, tmo, cfg; in mt7620_spi_master_setup() local
71 prescale = ilog2(rate / 2); in mt7620_spi_master_setup()
72 if (prescale > 6) in mt7620_spi_master_setup()
73 prescale = 6; in mt7620_spi_master_setup()
76 freq = ms->sys_freq >> (prescale + 1); in mt7620_spi_master_setup()
83 cfg = prescale << SPI_CLK_S; in mt7620_spi_master_setup()
/u-boot/drivers/i2c/
A Docores_i2c.c406 int prescale; in ocores_init() local
414 prescale = (bus->ip_clk_khz / (5 * bus->bus_clk_khz)) - 1; in ocores_init()
415 prescale = clamp(prescale, 0, 0xffff); in ocores_init()
424 oc_setreg(bus, OCI2C_PRELOW, prescale & 0xff); in ocores_init()
425 oc_setreg(bus, OCI2C_PREHIGH, prescale >> 8); in ocores_init()
474 int prescale; in ocores_i2c_set_bus_speed() local
481 prescale = (bus->ip_clk_khz / (5 * speed)) - 1; in ocores_i2c_set_bus_speed()
482 prescale = clamp(prescale, 0, 0xffff); in ocores_i2c_set_bus_speed()
484 diff = bus->ip_clk_khz / (5 * (prescale + 1)) - speed; in ocores_i2c_set_bus_speed()
491 oc_setreg(bus, OCI2C_PRELOW, prescale & 0xff); in ocores_i2c_set_bus_speed()
[all …]
A Dkona_i2c.c107 uint8_t prescale; /* Prescale divider */ member
468 writel((dev->std_cfg->prescale << TIM_PRESCALE_SHIFT) | in bcm_kona_i2c_config_timing()
/u-boot/drivers/ram/
A Dimxrt_sdram.c150 u8 prescale; member
278 | time->prescale << SEMC_SDRAMCR3_PRESCALE_SHIFT in imxrt_sdram_init()

Completed in 20 milliseconds