Lines Matching defs:freq
259 static int mxic_nfc_clk_setup(struct mxic_nand_ctrl *nfc, unsigned long freq)
263 ret = clk_set_rate(nfc->send_clk, freq);
267 ret = clk_set_rate(nfc->send_dly_clk, freq);
280 static int mxic_nfc_set_freq(struct mxic_nand_ctrl *nfc, unsigned long freq)
284 if (freq > MXIC_NFC_MAX_CLK_HZ)
285 freq = MXIC_NFC_MAX_CLK_HZ;
288 ret = mxic_nfc_clk_setup(nfc, freq);
498 unsigned long freq;
508 freq = 1000000000 / (sdr->tRC_min / 1000);
510 ret = mxic_nfc_set_freq(nfc, freq);
512 WARN_ON("Set freq failed\n");