Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/xilinx/
H A Dll_temac_mdio.c68 u32 bus_hz; in temac_mdio_setup() local
74 bus_hz = 0; in temac_mdio_setup()
76 of_property_read_u32(np, "clock-frequency", &bus_hz); in temac_mdio_setup()
78 bus_hz = pdata->mdio_clk_freq; in temac_mdio_setup()
82 if (bus_hz != 0) { in temac_mdio_setup()
83 clk_div = bus_hz / (2500 * 1000 * 2) - 1; in temac_mdio_setup()
/OK3568_Linux_fs/u-boot/drivers/mmc/
H A Dgen_atmel_mci.c84 u32 bus_hz = priv->bus_clk_rate; local
90 u32 bus_hz = get_mci_clk_rate();
100 bus_hz, hz, blklen);
103 clkdiv = DIV_ROUND_UP(bus_hz, hz) - 2;
111 bus_hz / (clkdiv * 2 + clkodd + 2), blklen);
115 if ((bus_hz / (clkdiv + 1) / 2) <= hz)
119 (bus_hz / (clkdiv + 1)) / 2, blklen);
124 priv->curr_clk = bus_hz / (clkdiv * 2 + clkodd + 2);
126 priv->curr_clk = (bus_hz / (clkdiv + 1)) / 2;
H A Dsocfpga_dw_mmc.c92 host->bus_hz = clk; in socfpga_dwmmc_ofdata_to_platdata()
114 dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, 400000); in socfpga_dwmmc_probe()
119 ret = add_dwmci(host, host->bus_hz, 400000); in socfpga_dwmmc_probe()
H A Dexynos_dw_mmc.c101 if (host->bus_hz) in exynos_dwmci_core_init()
102 freq = host->bus_hz; in exynos_dwmci_core_init()
206 host->bus_hz = fdtdec_get_int(blob, node, "bus_hz", 0); in exynos_dwmci_get_config()
H A Dhi6220_dw_mmc.c53 host->bus_hz = MMC0_DEFAULT_FREQ; in hi6220_dwmci_add_port()
H A Ddw_mmc.c654 else if (host->bus_hz)
655 sclk = host->bus_hz;
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Ddw_mmc-rockchip.c36 u32 bus_hz; in dw_mci_rk3288_set_ios() local
65 bus_hz = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
66 if (bus_hz != host->bus_hz) { in dw_mci_rk3288_set_ios()
67 host->bus_hz = bus_hz; in dw_mci_rk3288_set_ios()
403 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.c395 host->bus_hz); in dw_mci_set_cto()
1261 div = host->bus_hz / clock; in dw_mci_setup_bus()
1262 if (host->bus_hz % clock && host->bus_hz > clock) in dw_mci_setup_bus()
1269 div = (host->bus_hz != clock) ? DIV_ROUND_UP(div, 2) : 0; in dw_mci_setup_bus()
1278 slot->id, host->bus_hz, clock, in dw_mci_setup_bus()
1279 div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus()
1280 host->bus_hz, div); in dw_mci_setup_bus()
1315 slot->mmc->actual_clock = div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus()
1316 host->bus_hz; in dw_mci_setup_bus()
1989 host->bus_hz); in dw_mci_set_drto()
[all …]
H A Ddw_mmc-pci.c29 .bus_hz = 33 * 1000 * 1000,
H A Datmel-mci.c342 unsigned long bus_hz; member
728 return us * (DIV_ROUND_UP(host->bus_hz, 2000000)); in atmci_ns_to_clocks()
1422 clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; in atmci_set_ios()
1426 clock_min, host->bus_hz / 2); in atmci_set_ios()
1431 clock_min, host->bus_hz / (511 + 2)); in atmci_set_ios()
1437 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios()
1441 clock_min, host->bus_hz / (2 * 256)); in atmci_set_ios()
2248 mmc->f_min = DIV_ROUND_UP(host->bus_hz, 512); in atmci_init_slot()
2249 mmc->f_max = host->bus_hz / 2; in atmci_init_slot()
2495 host->bus_hz = clk_get_rate(host->mck); in atmci_probe()
H A Ddw_mmc.h199 u32 bus_hz; member
256 unsigned int bus_hz; /* Clock speed at the cclk_in pad */ member
H A Ddw_mmc-exynos.c125 host->bus_hz /= (priv->ciu_div + 1); in dw_mci_exynos_priv_init()
291 host->bus_hz = actual / div; in dw_mci_exynos_adjust_clock()
/OK3568_Linux_fs/u-boot/board/synopsys/hsdk/
H A Dhsdk.c44 host->bus_hz = 100000000; in board_mmc_init()
46 add_dwmci(host, host->bus_hz / 2, 400000); in board_mmc_init()
/OK3568_Linux_fs/u-boot/board/synopsys/axs10x/
H A Daxs10x.c30 host->bus_hz = 50000000; in board_mmc_init()
32 add_dwmci(host, host->bus_hz / 2, 400000); in board_mmc_init()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-atmel.c822 unsigned long bus_hz; in atmel_spi_set_xfer_speed() local
831 bus_hz = as->spi_clk; in atmel_spi_set_xfer_speed()
833 bus_hz /= 2; in atmel_spi_set_xfer_speed()
839 scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); in atmel_spi_set_xfer_speed()
848 xfer->speed_hz, scbr, bus_hz/255); in atmel_spi_set_xfer_speed()
854 xfer->speed_hz, scbr, bus_hz); in atmel_spi_set_xfer_speed()
860 xfer->effective_speed_hz = bus_hz / scbr; in atmel_spi_set_xfer_speed()
/OK3568_Linux_fs/u-boot/include/
H A Ddwmmc.h175 unsigned int bus_hz; member
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dexynos4412-odroid.dts256 bus_hz = <400000000>;
H A Dexynos4412-trats2.dts460 bus_hz = <400000000>;