Home
last modified time | relevance | path

Searched refs:sys_freq (Results 1 – 16 of 16) sorted by relevance

/drivers/spi/
Dspi-cavium-thunderx.c62 p->sys_freq = clk_get_rate(p->clk); in thunderx_spi_probe()
63 if (!p->sys_freq) in thunderx_spi_probe()
64 p->sys_freq = SYS_FREQ_DEFAULT; in thunderx_spi_probe()
65 dev_info(dev, "Set system clock to %u\n", p->sys_freq); in thunderx_spi_probe()
Dspi-mt7621.c56 unsigned int sys_freq; member
109 rate = DIV_ROUND_UP(rs->sys_freq, speed); in mt7621_spi_prepare()
306 (spi->max_speed_hz > (rs->sys_freq / 2))) in mt7621_spi_setup()
307 spi->max_speed_hz = rs->sys_freq / 2; in mt7621_spi_setup()
309 if (spi->max_speed_hz < (rs->sys_freq / 4097)) { in mt7621_spi_setup()
372 rs->sys_freq = clk_get_rate(rs->clk); in mt7621_spi_probe()
374 dev_info(&pdev->dev, "sys_freq: %u\n", rs->sys_freq); in mt7621_spi_probe()
Dspi-cavium-octeon.c39 p->sys_freq = octeon_get_io_clock_rate(); in octeon_spi_probe()
Dspi-cavium.c48 clkdiv = p->sys_freq / (2 * xfer->speed_hz); in octeon_spi_do_transfer()
Dspi-cavium.h21 int sys_freq; member
/drivers/i2c/busses/
Di2c-thunderx-pcidrv.c99 i2c->sys_freq = clk_get_rate(i2c->clk); in thunder_i2c_clock_enable()
102 device_property_read_u32(dev, "sclk", &i2c->sys_freq); in thunder_i2c_clock_enable()
106 if (!i2c->sys_freq) in thunder_i2c_clock_enable()
107 i2c->sys_freq = SYS_FREQ_DEFAULT; in thunder_i2c_clock_enable()
225 dev_info(i2c->dev, "Probed. Set system clock to %u\n", i2c->sys_freq); in thunder_i2c_probe_pci()
Di2c-octeon-core.h109 int sys_freq; member
Di2c-octeon-platdrv.c188 i2c->sys_freq = octeon_get_io_clock_rate(); in octeon_i2c_probe()
Di2c-octeon-core.c675 thp_base = (i2c->sys_freq / (tclk * 2)) - 1; in octeon_i2c_set_clock()
682 foscl = i2c->sys_freq / (2 * (thp_idx + 1)); in octeon_i2c_set_clock()
/drivers/clk/imgtec/
Dclk-boston.c33 unsigned long in_freq, cpu_freq, sys_freq; in clk_boston_setup() local
56 sys_freq = mult_frac(in_freq, mul, sys_div); in clk_boston_setup()
75 hw = clk_hw_register_fixed_rate(NULL, "sys", "input", 0, sys_freq); in clk_boston_setup()
/drivers/hwmon/
Dmr75203.c268 u16 sys_freq, key, middle, low = 4, high = 8; in pvt_init() local
278 sys_freq = clk_get_rate(pvt->clk) / HZ_PER_MHZ; in pvt_init()
281 key = DIV_ROUND_CLOSEST(sys_freq, middle); in pvt_init()
303 pvt->ip_freq = sys_freq * 100 / (key + 2); in pvt_init()
/drivers/mmc/host/
Dcavium.c879 clk_period = (host->sys_freq + clock - 1) / (2 * clock); in cvm_mmc_set_ios()
929 (host->sys_freq / slot->clock) / 2); in cvm_mmc_init_lowlevel()
931 (host->sys_freq / slot->clock) / 2); in cvm_mmc_init_lowlevel()
1002 clock_period = 1000000000000ull / slot->host->sys_freq; in cvm_mmc_of_parse()
Dcavium-thunderx.c99 host->sys_freq = clk_get_rate(host->clk); in thunder_mmc_probe()
Dcavium.h65 int sys_freq; member
Dcavium-octeon.c174 host->sys_freq = octeon_get_io_clock_rate(); in octeon_mmc_probe()
/drivers/media/i2c/
Dtc358743.c587 u32 sys_freq; in tc358743_set_ref_clk() local
597 sys_freq = pdata->refclk_hz / 10000; in tc358743_set_ref_clk()
598 i2c_wr8(sd, SYS_FREQ0, sys_freq & 0x00ff); in tc358743_set_ref_clk()
599 i2c_wr8(sd, SYS_FREQ1, (sys_freq & 0xff00) >> 8); in tc358743_set_ref_clk()
627 cec_freq = (656 * sys_freq) / 4200; in tc358743_set_ref_clk()