Home
last modified time | relevance | path

Searched refs:mck (Results 1 – 4 of 4) sorted by relevance

/drivers/clocksource/
Dtimer-atmel-pit.c46 struct clk *mck; member
184 data->mck = of_clk_get(node, 0); in at91sam926x_pit_dt_init()
185 if (IS_ERR(data->mck)) { in at91sam926x_pit_dt_init()
187 ret = PTR_ERR(data->mck); in at91sam926x_pit_dt_init()
191 ret = clk_prepare_enable(data->mck); in at91sam926x_pit_dt_init()
209 pit_rate = clk_get_rate(data->mck) / 16; in at91sam926x_pit_dt_init()
/drivers/i2c/busses/
Di2c-sh7760.c395 unsigned long mck, m1, dff, odff, iclk; in calc_CCR() local
403 mck = mclk->rate; in calc_CCR()
410 iclk = mck / (1 + cdf); in calc_CCR()
/drivers/mmc/host/
Datmel-mci.c378 struct clk *mck; member
2511 host->mck = devm_clk_get(&pdev->dev, "mci_clk"); in atmci_probe()
2512 if (IS_ERR(host->mck)) in atmci_probe()
2513 return PTR_ERR(host->mck); in atmci_probe()
2519 ret = clk_prepare_enable(host->mck); in atmci_probe()
2524 host->bus_hz = clk_get_rate(host->mck); in atmci_probe()
2532 clk_disable_unprepare(host->mck); in atmci_probe()
2620 clk_disable_unprepare(host->mck); in atmci_probe()
2659 clk_disable_unprepare(host->mck); in atmci_remove()
2670 clk_disable_unprepare(host->mck); in atmci_runtime_suspend()
[all …]
/drivers/mtd/nand/raw/atmel/
Dnand-controller.c226 struct clk *mck; member
1262 mckperiodps = NSEC_PER_SEC / clk_get_rate(nc->mck); in atmel_smc_nand_prepare_smcconf()
1565 if (!nc->mck || !nc->caps->ops->setup_interface) in atmel_nand_init()
1905 clk_put(nc->mck); in atmel_nand_controller_cleanup()
2060 nc->mck = of_clk_get(dev->parent->of_node, 0); in atmel_nand_controller_init()
2061 if (IS_ERR(nc->mck)) { in atmel_nand_controller_init()
2063 ret = PTR_ERR(nc->mck); in atmel_nand_controller_init()