| /rk3399_ARM-atf/drivers/ti/pd/include/ |
| H A D | ti_device_clk.h | 151 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 D | ti_device.h | 170 ti_clk_idx_t clk_idx; member
|
| /rk3399_ARM-atf/drivers/ti/pd/ |
| H A D | ti_device_clk.c | 62 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 D | ti_clocks.c | 1423 .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 D | ti_devices.c | 4151 .clk_idx = 1U,
|
| /rk3399_ARM-atf/drivers/imx/uart/ |
| H A D | imx_uart.c | 69 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 D | ti_clk_dev.h | 36 ti_dev_clk_idx_t clk_idx; member
|
| /rk3399_ARM-atf/plat/rockchip/rk3576/scmi/ |
| H A D | rk3576_clk.c | 1220 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 D | ti_clk_dev.c | 71 dev_clkp = ti_get_dev_clk(dev, from_device->clk_idx); in ti_clk_from_device_get_state()
|
| H A D | ti_clk.c | 416 clock_count = soc_devgroups[i].clk_idx; in ti_clk_init()
|