Home
last modified time | relevance | path

Searched refs:bus_hz (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/drivers/net/ethernet/xilinx/
H A Dll_temac_mdio.c69 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 Dsocfpga_dw_mmc.c86 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 Dgen_atmel_mci.c95 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 Dhi6220_dw_mmc.c54 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 Dexynos_dw_mmc.c104 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 Dftsdc010_mci.h26 unsigned int bus_hz; member
H A Ddw_mmc.c386 else if (host->bus_hz)
387 sclk = host->bus_hz;
/openbmc/linux/drivers/mmc/host/
H A Ddw_mmc-rockchip.c34 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 Ddw_mmc-k3.c110 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 Ddw_mmc.c373 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 Ddw_mmc-pci.c29 .bus_hz = 33 * 1000 * 1000,
H A Ddw_mmc-exynos.c135 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 Ddw_mmc.h203 u32 bus_hz; member
261 unsigned int bus_hz; /* Clock speed at the cclk_in pad */ member
H A Datmel-mci.c376 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 Ddw_mmc-starfive.c41 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_starfive_set_ios()
/openbmc/u-boot/board/synopsys/axs10x/
H A Daxs10x.c29 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 Demsdp.c66 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 Diot_devkit.c166 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 Dspi-atmel.c881 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 Ddwmmc.h166 unsigned int bus_hz; member
/openbmc/u-boot/arch/arm/dts/
H A Dexynos4412-odroid.dts248 bus_hz = <400000000>;
H A Dexynos4412-trats2.dts452 bus_hz = <400000000>;
/openbmc/u-boot/board/synopsys/hsdk/
H A Dhsdk.c1050 host->bus_hz = 50000000; in board_mmc_init()
1052 add_dwmci(host, host->bus_hz / 2, 400000); in board_mmc_init()