Searched refs:div_clock (Results 1 – 3 of 3) sorted by relevance
/openbmc/u-boot/board/armltd/integrator/ |
H A D | timer.c | 38 static unsigned long long div_clock = DIV_CLOCK_INIT; variable 88 do_div(div_timer, div_clock); in timer_init() 159 do_div(tmp, div_clock); in get_tbclk()
|
/openbmc/u-boot/drivers/gpio/ |
H A D | mscc_sgpio.c | 192 int err, div_clock = 0, port; in mscc_sgpio_probe() local 203 div_clock = err; in mscc_sgpio_probe() 213 if (priv->clock <= 0 || priv->clock > div_clock) { in mscc_sgpio_probe() 238 val = div_clock / priv->clock; in mscc_sgpio_probe() 240 div_clock / 1000, priv->clock / 1000, val); in mscc_sgpio_probe()
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-microchip-sgpio.c | 906 int div_clock = 0, ret, port, i, nbanks; in microchip_sgpio_probe() local 936 div_clock = clk_get_rate(clk); in microchip_sgpio_probe() 939 if (priv->clock == 0 || priv->clock > (div_clock / 2)) { in microchip_sgpio_probe() 978 val = max(2U, div_clock / priv->clock); in microchip_sgpio_probe()
|