/tf-a-ffa_el3_spmc/drivers/delay_timer/ |
A D | generic_delay_timer.c | 32 void generic_delay_timer_init_args(uint32_t mult, uint32_t div) in generic_delay_timer_init_args() argument 36 ops.clk_div = div; in generic_delay_timer_init_args() 41 mult, div); in generic_delay_timer_init_args() 52 unsigned int div = plat_get_syscnt_freq2(); in generic_delay_timer_init() local 55 while (((mult % 10U) == 0U) && ((div % 10U) == 0U)) { in generic_delay_timer_init() 57 div /= 10U; in generic_delay_timer_init() 60 generic_delay_timer_init_args(mult, div); in generic_delay_timer_init()
|
/tf-a-ffa_el3_spmc/drivers/nxp/timer/ |
A D | nxp_timer.c | 60 static void delay_timer_init_args(uint32_t mult, uint32_t div) in delay_timer_init_args() argument 64 ops.clk_div = div; in delay_timer_init_args() 69 mult, div); in delay_timer_init_args() 81 unsigned int div; in delay_timer_init() local 98 div = counter_base_frequency; in delay_timer_init() 101 while ((mult % 10U == 0U) && (div % 10U == 0U)) { in delay_timer_init() 103 div /= 10U; in delay_timer_init() 110 delay_timer_init_args(mult, div); in delay_timer_init()
|
/tf-a-ffa_el3_spmc/drivers/renesas/common/ddr/ddr_b/ |
A D | boot_init_dram_config.c | 1770 void boardcnf_get_brd_clk(uint32_t brd, uint32_t *clk, uint32_t *div) in boardcnf_get_brd_clk() argument 1776 *div = 3; in boardcnf_get_brd_clk() 1782 *div = 3; in boardcnf_get_brd_clk() 1786 *div = 3; in boardcnf_get_brd_clk() 1790 *div = 3; in boardcnf_get_brd_clk() 1794 *div = 3; in boardcnf_get_brd_clk() 1801 void boardcnf_get_ddr_mbps(uint32_t brd, uint32_t *mbps, uint32_t *div) in boardcnf_get_ddr_mbps() argument 1815 *div = 1; in boardcnf_get_ddr_mbps() 1819 *div = 1; in boardcnf_get_ddr_mbps() 1823 *div = 1; in boardcnf_get_ddr_mbps() [all …]
|
A D | boot_init_dram.c | 1014 uint32_t div; in _f_scale() local 1017 div = tmp / (200000 * _ddr_mbpsdiv); in _f_scale() 1018 if (tmp != (div * 200000 * _ddr_mbpsdiv)) in _f_scale() 1019 div = div + 1; in _f_scale() 1021 if (div > cyc) in _f_scale() 1022 return (uint16_t)div; in _f_scale()
|
/tf-a-ffa_el3_spmc/plat/socionext/uniphier/ |
A D | uniphier_console_setup.c | 50 uint32_t div; in uniphier_console_get_base() local 57 div = mmio_read_32(base + UNIPHIER_UART_DLR); in uniphier_console_get_base() 58 if (div) in uniphier_console_get_base()
|
/tf-a-ffa_el3_spmc/plat/xilinx/zynqmp/pm_service/ |
A D | pm_api_clock.c | 216 uint8_t div:4; member 254 .div = NA_DIV, 266 .div = NA_DIV, 278 .div = NA_DIV, 290 .div = 2, 304 .div = NA_DIV, 316 .div = NA_DIV, 330 .div = NA_DIV, 342 .div = NA_DIV, 473 .div = 2, [all …]
|
A D | pm_api_clock.h | 304 uint32_t *div);
|
A D | pm_api_sys.c | 857 uint32_t *div) in pm_clock_get_fixedfactor_params() argument 859 return pm_api_clock_get_fixedfactor_params(clock_id, mul, div); in pm_clock_get_fixedfactor_params()
|
/tf-a-ffa_el3_spmc/include/arch/aarch32/ |
A D | asm_macros.S | 219 .macro softudiv div:req,top:req,bot:req,temp:req 227 mov \div, #0 232 ADC \div, \div, \div
|
/tf-a-ffa_el3_spmc/include/lib/ |
A D | utils_def.h | 62 #define div_round_up(val, div) __extension__ ({ \ argument 63 __typeof__(div) _div = (div); \ 64 ((val) + _div - (__typeof__(div)) 1) / _div; \
|
/tf-a-ffa_el3_spmc/include/drivers/ |
A D | generic_delay_timer.h | 12 void generic_delay_timer_init_args(uint32_t mult, uint32_t div);
|
/tf-a-ffa_el3_spmc/drivers/rpi3/sdhost/ |
A D | rpi3_sdhost.c | 397 uint32_t div; in rpi3_sdhost_set_clock() local 405 div = max_clk / clk; in rpi3_sdhost_set_clock() 406 if (div < 2) in rpi3_sdhost_set_clock() 407 div = 2; in rpi3_sdhost_set_clock() 409 if ((max_clk / div) > clk) in rpi3_sdhost_set_clock() 410 div++; in rpi3_sdhost_set_clock() 412 div -= 2; in rpi3_sdhost_set_clock() 413 if (div > HC_CLOCKDIVISOR_MAXVAL) in rpi3_sdhost_set_clock() 414 div = HC_CLOCKDIVISOR_MAXVAL; in rpi3_sdhost_set_clock() 416 rpi3_sdhost_params.clk_rate = max_clk / (div + 2); in rpi3_sdhost_set_clock() [all …]
|
/tf-a-ffa_el3_spmc/drivers/imx/usdhc/ |
A D | imx_usdhc.c | 41 int div = 1; in imx_usdhc_set_clk() local 51 while (sdhc_clk / div > clk && div < 16) in imx_usdhc_set_clk() 52 div++; in imx_usdhc_set_clk() 55 div -= 1; in imx_usdhc_set_clk() 56 clk = (pre_div << 8) | (div << 4); in imx_usdhc_set_clk()
|
/tf-a-ffa_el3_spmc/drivers/synopsys/emmc/ |
A D | dw_mmc.c | 160 int div; in dw_set_clk() local 164 for (div = 1; div < 256; div++) { in dw_set_clk() 165 if ((dw_params.clk_rate / (2 * div)) <= clk) { in dw_set_clk() 169 assert(div < 256); in dw_set_clk() 180 mmio_write_32(dw_params.reg_base + DWMMC_CLKDIV, div); in dw_set_clk()
|
/tf-a-ffa_el3_spmc/plat/intel/soc/common/drivers/qspi/ |
A D | cadence_qspi.c | 30 int cad_qspi_set_baudrate_div(uint32_t div) in cad_qspi_set_baudrate_div() argument 32 if (div > 0xf) in cad_qspi_set_baudrate_div() 37 CAD_QSPI_CFG_BAUDDIV(div)); in cad_qspi_set_baudrate_div()
|
/tf-a-ffa_el3_spmc/plat/rockchip/rk3399/drivers/dram/ |
A D | dfs.c | 1505 uint32_t tmp, i, div, j; in gen_rk3399_phy_params() local 1564 div = pdram_timing->mhz / (2 * 20); in gen_rk3399_phy_params() 1566 if (div < j) in gen_rk3399_phy_params()
|