Lines Matching full:can_clk
544 struct clk *can_clk; /* fCAN clock */ member
1400 err = clk_prepare_enable(gpriv->can_clk); in rcar_canfd_open()
1422 clk_disable_unprepare(gpriv->can_clk); in rcar_canfd_open()
1464 clk_disable_unprepare(gpriv->can_clk); in rcar_canfd_close()
1719 dev_info(&pdev->dev, "can_clk rate is %u\n", priv->can.clock.freq); in rcar_canfd_channel_probe()
1906 gpriv->can_clk = devm_clk_get(&pdev->dev, "can_clk"); in rcar_canfd_probe()
1907 if (IS_ERR(gpriv->can_clk) || (clk_get_rate(gpriv->can_clk) == 0)) { in rcar_canfd_probe()
1908 gpriv->can_clk = devm_clk_get(&pdev->dev, "canfd"); in rcar_canfd_probe()
1909 if (IS_ERR(gpriv->can_clk)) in rcar_canfd_probe()
1910 return dev_err_probe(&pdev->dev, PTR_ERR(gpriv->can_clk), in rcar_canfd_probe()
1918 fcan_freq = clk_get_rate(gpriv->can_clk); in rcar_canfd_probe()