1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Copyright (c) 2023, Linaro Ltd. 3 * Copyright (c) 2023, Linaro Ltd. 4 */ 4 */ 5 5 6 #ifndef __LINUX_INTERCONNECT_CLK_H 6 #ifndef __LINUX_INTERCONNECT_CLK_H 7 #define __LINUX_INTERCONNECT_CLK_H 7 #define __LINUX_INTERCONNECT_CLK_H 8 8 9 struct device; 9 struct device; 10 10 11 struct icc_clk_data { 11 struct icc_clk_data { 12 struct clk *clk; 12 struct clk *clk; 13 const char *name; 13 const char *name; 14 unsigned int master_id; 14 unsigned int master_id; 15 unsigned int slave_id; 15 unsigned int slave_id; 16 }; 16 }; 17 17 18 struct icc_provider *icc_clk_register(struct d 18 struct icc_provider *icc_clk_register(struct device *dev, 19 unsigned 19 unsigned int first_id, 20 unsigned 20 unsigned int num_clocks, 21 const st 21 const struct icc_clk_data *data); 22 int devm_icc_clk_register(struct device *dev, 22 int devm_icc_clk_register(struct device *dev, unsigned int first_id, 23 unsigned int num_clo 23 unsigned int num_clocks, const struct icc_clk_data *data); 24 void icc_clk_unregister(struct icc_provider *p 24 void icc_clk_unregister(struct icc_provider *provider); 25 25 26 #endif 26 #endif 27 27
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.