Home
last modified time | relevance | path

Searched refs:clk_idx (Results 1 – 10 of 10) sorted by relevance

/rk3399_ARM-atf/drivers/ti/pd/include/
H A Dti_device_clk.h151 struct ti_dev_clk *ti_get_dev_clk(struct ti_device *dev, ti_dev_clk_idx_t clk_idx);
156 const struct ti_dev_clk_data *ti_get_dev_clk_data(struct ti_device *dev, ti_dev_clk_idx_t clk_idx);
161 struct ti_clk *ti_dev_get_clk(struct ti_device *dev, ti_dev_clk_idx_t clk_idx);
176 bool ti_device_clk_set_gated(struct ti_device *dev, ti_dev_clk_idx_t clk_idx, bool gated);
185 bool ti_device_clk_get_sw_gated(struct ti_device *dev, ti_dev_clk_idx_t clk_idx);
196 bool ti_device_clk_set_parent(struct ti_device *dev, ti_dev_clk_idx_t clk_idx,
202 ti_dev_clk_idx_t ti_device_clk_get_parent(struct ti_device *dev, ti_dev_clk_idx_t clk_idx);
208 ti_dev_clk_idx_t clk_idx);
226 bool ti_device_clk_set_freq(struct ti_device *dev, ti_dev_clk_idx_t clk_idx,
239 uint32_t ti_device_clk_get_freq(struct ti_device *dev, ti_dev_clk_idx_t clk_idx);
[all …]
H A Dti_device.h170 ti_clk_idx_t clk_idx; member
/rk3399_ARM-atf/drivers/ti/pd/
H A Dti_device_clk.c62 bool ti_device_clk_set_gated(struct ti_device *dev, ti_dev_clk_idx_t clk_idx, bool gated) in ti_device_clk_set_gated() argument
66 struct ti_dev_clk *dev_clkp = ti_get_dev_clk(dev, clk_idx); in ti_device_clk_set_gated()
80 id = (ti_clk_idx_t) devgrp->dev_clk_data[data->dev_clk_idx + clk_idx].clk; in ti_device_clk_set_gated()
113 bool ti_device_clk_get_sw_gated(struct ti_device *dev, ti_dev_clk_idx_t clk_idx) in ti_device_clk_get_sw_gated() argument
115 struct ti_dev_clk *dev_clkp = ti_get_dev_clk(dev, clk_idx); in ti_device_clk_get_sw_gated()
120 bool ti_device_clk_set_parent(struct ti_device *dev, ti_dev_clk_idx_t clk_idx, in ti_device_clk_set_parent() argument
129 clkp = ti_dev_get_clk(dev, clk_idx); in ti_device_clk_set_parent()
130 clock_data = ti_get_dev_clk_data(dev, clk_idx); in ti_device_clk_set_parent()
151 if (ret && ((parent_idx - clk_idx) > clock_data->idx)) { in ti_device_clk_set_parent()
184 ti_dev_clk_idx_t ti_device_clk_get_parent(struct ti_device *dev, ti_dev_clk_idx_t clk_idx) in ti_device_clk_get_parent() argument
[all …]
/rk3399_ARM-atf/plat/ti/k3low/common/pm/
H A Dti_clocks.c1423 .clk_idx = AM62LX_DEV_BOARD0_AUDIO_EXT_REFCLK0_OUT,
1427 .clk_idx = AM62LX_DEV_BOARD0_AUDIO_EXT_REFCLK1_OUT,
1431 .clk_idx = AM62LX_DEV_BOARD0_CP_GEMAC_CPTS0_RFT_CLK_OUT,
1435 .clk_idx = AM62LX_DEV_BOARD0_EXT_REFCLK1_OUT,
1439 .clk_idx = AM62LX_DEV_BOARD0_GPMC0_CLKLB_OUT,
1443 .clk_idx = AM62LX_DEV_BOARD0_I2C0_SCL_OUT,
1447 .clk_idx = AM62LX_DEV_BOARD0_I2C1_SCL_OUT,
1451 .clk_idx = AM62LX_DEV_BOARD0_I2C2_SCL_OUT,
1455 .clk_idx = AM62LX_DEV_BOARD0_I2C3_SCL_OUT,
1459 .clk_idx = AM62LX_DEV_BOARD0_MCASP0_ACLKR_OUT,
[all …]
H A Dti_devices.c4151 .clk_idx = 1U,
/rk3399_ARM-atf/drivers/imx/uart/
H A Dimx_uart.c69 uint8_t clk_idx = 1; in console_imx_uart_core_init() local
94 clk_div[clk_idx].fcr_div; in console_imx_uart_core_init()
116 val = ((uart_clk / clk_div[clk_idx].bmr_div) / baud_rate) - 1; in console_imx_uart_core_init()
/rk3399_ARM-atf/drivers/ti/clk/include/
H A Dti_clk_dev.h36 ti_dev_clk_idx_t clk_idx; member
/rk3399_ARM-atf/plat/rockchip/rk3576/scmi/
H A Drk3576_clk.c1220 int rockchip_opteed_clk_set_rate(uint64_t clk_idx, uint64_t rate) in rockchip_opteed_clk_set_rate() argument
1224 if (clk_idx > CLK_NR_CLKS) { in rockchip_opteed_clk_set_rate()
1225 INFO("%s: clk-%ld, %ld not supported\n", __func__, clk_idx, rate); in rockchip_opteed_clk_set_rate()
1229 table = rockchip_scmi_get_clock(0, clk_idx); in rockchip_opteed_clk_set_rate()
1236 int rockchip_opteed_clk_get_rate(uint64_t clk_idx, uint64_t *rate) in rockchip_opteed_clk_get_rate() argument
1240 if (clk_idx > CLK_NR_CLKS) { in rockchip_opteed_clk_get_rate()
1241 INFO("%s: clk-%ld not supported\n", __func__, clk_idx); in rockchip_opteed_clk_get_rate()
1245 table = rockchip_scmi_get_clock(0, clk_idx); in rockchip_opteed_clk_get_rate()
1251 int rockchip_opteed_clk_enable(uint64_t clk_idx, uint64_t enable) in rockchip_opteed_clk_enable() argument
1255 if (clk_idx > CLK_NR_CLKS) { in rockchip_opteed_clk_enable()
[all …]
/rk3399_ARM-atf/drivers/ti/clk/
H A Dti_clk_dev.c71 dev_clkp = ti_get_dev_clk(dev, from_device->clk_idx); in ti_clk_from_device_get_state()
H A Dti_clk.c416 clock_count = soc_devgroups[i].clk_idx; in ti_clk_init()