diff options
| author | Georgi Djakov <djakov@kernel.org> | 2022-07-15 17:55:48 +0300 | 
|---|---|---|
| committer | Georgi Djakov <djakov@kernel.org> | 2022-07-15 17:55:48 +0300 | 
| commit | 33f033dc30d92a00b2b0f0f67a8ad46fde269bf3 (patch) | |
| tree | c4ee4c95afaaac4d813679a9125f600c4486b0be /include/linux/interconnect.h | |
| parent | 2be9e847070939c50d745e68815e673960586ac2 (diff) | |
| parent | 9760660e866d643817c3bf21e6dc20837a1052c4 (diff) | |
Merge branch 'icc-imx8mp' into icc-next
This patchset is to support i.MX8MP NoC settings, i.MX8MP NoC initial
value after power up is invalid, need set a valid value after related
power domain up.
This patchset also includes two patch[1,2] during my development to enable
the ICC feature for i.MX8MP.
I not include ddrc DVFS in this patchset, ths patchset is only to
support NoC value mode/priority/ext_control being set to a valid value
that suggested by i.MX Chip Design Team. The value is same as NXP
downstream one inside Arm Trusted Firmware:
https://source.codeaurora.org/external/imx/imx-atf/tree/plat/imx/imx8m/i/gpc.c?h=lf_v2.4#n97
Link: https://lore.kernel.org/r/20220703091132.1412063-1-peng.fan@oss.nxp.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'include/linux/interconnect.h')
| -rw-r--r-- | include/linux/interconnect.h | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/include/linux/interconnect.h b/include/linux/interconnect.h index f685777b875e..2b0e784ba771 100644 --- a/include/linux/interconnect.h +++ b/include/linux/interconnect.h @@ -44,6 +44,7 @@ struct icc_path *icc_get(struct device *dev, const int src_id,  			 const int dst_id);  struct icc_path *of_icc_get(struct device *dev, const char *name);  struct icc_path *devm_of_icc_get(struct device *dev, const char *name); +int devm_of_icc_bulk_get(struct device *dev, int num_paths, struct icc_bulk_data *paths);  struct icc_path *of_icc_get_by_index(struct device *dev, int idx);  void icc_put(struct icc_path *path);  int icc_enable(struct icc_path *path); @@ -116,6 +117,12 @@ static inline int of_icc_bulk_get(struct device *dev, int num_paths, struct icc_  	return 0;  } +static inline int devm_of_icc_bulk_get(struct device *dev, int num_paths, +				       struct icc_bulk_data *paths) +{ +	return 0; +} +  static inline void icc_bulk_put(int num_paths, struct icc_bulk_data *paths)  {  } | 
