Searched refs:external_clk (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/clocksource/
H A Dbcm_kona_timer.c176 struct clk *external_clk; kona_timer_init() local
183 external_clk = of_clk_get_by_name(node, NULL); kona_timer_init()
185 if (!IS_ERR(external_clk)) { kona_timer_init()
186 arch_timer_rate = clk_get_rate(external_clk); kona_timer_init()
187 clk_prepare_enable(external_clk); kona_timer_init()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-bcm-kona.c159 struct clk *external_clk; member in struct:bcm_kona_i2c_dev
568 rc = clk_set_rate(dev->external_clk, HS_EXT_CLK_FREQ); bcm_kona_i2c_switch_to_hs()
594 rc = clk_set_rate(dev->external_clk, STD_EXT_CLK_FREQ); bcm_kona_i2c_switch_to_std()
612 rc = clk_prepare_enable(dev->external_clk); bcm_kona_i2c_xfer()
701 clk_disable_unprepare(dev->external_clk); bcm_kona_i2c_xfer()
774 dev->external_clk = devm_clk_get(dev->device, NULL); bcm_kona_i2c_probe()
775 if (IS_ERR(dev->external_clk)) { bcm_kona_i2c_probe()
780 rc = clk_set_rate(dev->external_clk, STD_EXT_CLK_FREQ); bcm_kona_i2c_probe()
787 rc = clk_prepare_enable(dev->external_clk); bcm_kona_i2c_probe()
852 clk_disable_unprepare(dev->external_clk); bcm_kona_i2c_probe()
875 clk_disable_unprepare(dev->external_clk); bcm_kona_i2c_probe()

Completed in 153 milliseconds