/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | ll_temac_mdio.c | 69 u32 bus_hz; in temac_mdio_setup() local 75 bus_hz = 0; in temac_mdio_setup() 77 of_property_read_u32(np, "clock-frequency", &bus_hz); in temac_mdio_setup() 79 bus_hz = pdata->mdio_clk_freq; in temac_mdio_setup() 83 if (bus_hz != 0) { in temac_mdio_setup() 84 clk_div = bus_hz / (2500 * 1000 * 2) - 1; in temac_mdio_setup()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | socfpga_dw_mmc.c | 86 host->bus_hz = clk_get_rate(&clk); in socfpga_dwmmc_get_clk_rate() 91 host->bus_hz = cm_get_mmc_controller_clk_hz(); in socfpga_dwmmc_get_clk_rate() 93 if (host->bus_hz == 0) { in socfpga_dwmmc_get_clk_rate() 153 dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, 400000); in socfpga_dwmmc_probe() 157 ret = add_dwmci(host, host->bus_hz, 400000); in socfpga_dwmmc_probe()
|
H A D | gen_atmel_mci.c | 95 u32 bus_hz = priv->bus_clk_rate; local 101 u32 bus_hz = get_mci_clk_rate(); 111 bus_hz, hz, blklen); 114 clkdiv = DIV_ROUND_UP(bus_hz, hz) - 2; 122 bus_hz / (clkdiv * 2 + clkodd + 2), blklen); 126 if ((bus_hz / (clkdiv + 1) / 2) <= hz) 130 (bus_hz / (clkdiv + 1)) / 2, blklen); 135 priv->curr_clk = bus_hz / (clkdiv * 2 + clkodd + 2); 137 priv->curr_clk = (bus_hz / (clkdiv + 1)) / 2;
|
H A D | hi6220_dw_mmc.c | 54 host->bus_hz = 50000000; in hi6220_dwmmc_probe() 56 dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, 400000); in hi6220_dwmmc_probe()
|
H A D | exynos_dw_mmc.c | 104 if (host->bus_hz) in exynos_dwmci_core_init() 105 freq = host->bus_hz; in exynos_dwmci_core_init() 203 host->bus_hz = fdtdec_get_int(blob, node, "bus_hz", 0); in exynos_dwmci_get_config()
|
H A D | ftsdc010_mci.h | 26 unsigned int bus_hz; member
|
H A D | dw_mmc.c | 386 else if (host->bus_hz) 387 sclk = host->bus_hz;
|
/openbmc/linux/drivers/mmc/host/ |
H A D | dw_mmc-rockchip.c | 34 u32 bus_hz; in dw_mci_rk3288_set_ios() local 58 bus_hz = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios() 59 if (bus_hz != host->bus_hz) { in dw_mci_rk3288_set_ios() 60 host->bus_hz = bus_hz; in dw_mci_rk3288_set_ios() 301 host->bus_hz /= RK3288_CLKGEN_DIV; in dw_mci_rockchip_init()
|
H A D | dw_mmc-k3.c | 110 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_k3_set_ios() 199 host->bus_hz = clk_get_rate(host->biu_clk); in dw_mci_hi6220_set_ios() 273 host->bus_hz /= (GENCLK_DIV + 1); in dw_mci_hi3660_init() 316 host->bus_hz = actual / (GENCLK_DIV + 1); in dw_mci_hi3660_set_ios() 318 priv->cur_speed = host->bus_hz; in dw_mci_hi3660_set_ios()
|
H A D | dw_mmc.c | 373 host->bus_hz); in dw_mci_set_cto() 1222 div = host->bus_hz / clock; in dw_mci_setup_bus() 1223 if (host->bus_hz % clock && host->bus_hz > clock) in dw_mci_setup_bus() 1241 host->bus_hz, div); in dw_mci_setup_bus() 1277 host->bus_hz; in dw_mci_setup_bus() 2016 host->bus_hz); in dw_mci_set_drto() 3242 pdata->bus_hz = clock_frequency; in dw_mci_parse_dt() 3316 host->bus_hz = host->pdata->bus_hz; in dw_mci_probe() 3324 if (host->pdata->bus_hz) { in dw_mci_probe() 3329 host->pdata->bus_hz); in dw_mci_probe() [all …]
|
H A D | dw_mmc-pci.c | 29 .bus_hz = 33 * 1000 * 1000,
|
H A D | dw_mmc-exynos.c | 135 host->bus_hz /= (priv->ciu_div + 1); in dw_mci_exynos_priv_init() 306 host->bus_hz = actual / div; in dw_mci_exynos_adjust_clock() 558 tmp = DIV_ROUND_UP_ULL((u64)timeout_ns * host->bus_hz, NSEC_PER_SEC); in dw_mci_exynos_set_data_timeout()
|
H A D | dw_mmc.h | 203 u32 bus_hz; member 261 unsigned int bus_hz; /* Clock speed at the cclk_in pad */ member
|
H A D | atmel-mci.c | 376 unsigned long bus_hz; member 772 return us * (DIV_ROUND_UP(host->bus_hz, 2000000)); in atmci_ns_to_clocks() 1465 clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; in atmci_set_ios() 1469 clock_min, host->bus_hz / 2); in atmci_set_ios() 1474 clock_min, host->bus_hz / (511 + 2)); in atmci_set_ios() 1480 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios() 1484 clock_min, host->bus_hz / (2 * 256)); in atmci_set_ios() 2286 mmc->f_min = DIV_ROUND_UP(host->bus_hz, 512); in atmci_init_slot() 2287 mmc->f_max = host->bus_hz / 2; in atmci_init_slot() 2524 host->bus_hz = clk_get_rate(host->mck); in atmci_probe()
|
H A D | dw_mmc-starfive.c | 41 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_starfive_set_ios()
|
/openbmc/u-boot/board/synopsys/axs10x/ |
H A D | axs10x.c | 29 host->bus_hz = 50000000; in board_mmc_init() 31 add_dwmci(host, host->bus_hz / 2, 400000); in board_mmc_init()
|
/openbmc/u-boot/board/synopsys/emsdp/ |
H A D | emsdp.c | 66 host->bus_hz = 50000000; in board_mmc_init() 68 add_dwmci(host, host->bus_hz / 2, 400000); in board_mmc_init()
|
/openbmc/u-boot/board/synopsys/iot_devkit/ |
H A D | iot_devkit.c | 166 host->bus_hz = 50000000; in board_mmc_init() 168 add_dwmci(host, host->bus_hz / 2, 400000); in board_mmc_init()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-atmel.c | 881 unsigned long bus_hz; in atmel_spi_set_xfer_speed() local 890 bus_hz = as->spi_clk; in atmel_spi_set_xfer_speed() 892 bus_hz /= 2; in atmel_spi_set_xfer_speed() 898 scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); in atmel_spi_set_xfer_speed() 907 xfer->speed_hz, scbr, bus_hz/255); in atmel_spi_set_xfer_speed() 913 xfer->speed_hz, scbr, bus_hz); in atmel_spi_set_xfer_speed() 919 xfer->effective_speed_hz = bus_hz / scbr; in atmel_spi_set_xfer_speed()
|
/openbmc/u-boot/include/ |
H A D | dwmmc.h | 166 unsigned int bus_hz; member
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | exynos4412-odroid.dts | 248 bus_hz = <400000000>;
|
H A D | exynos4412-trats2.dts | 452 bus_hz = <400000000>;
|
/openbmc/u-boot/board/synopsys/hsdk/ |
H A D | hsdk.c | 1050 host->bus_hz = 50000000; in board_mmc_init() 1052 add_dwmci(host, host->bus_hz / 2, 400000); in board_mmc_init()
|