Commit 17bcddcd authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Merge tag 'icc-6.9-rc1' of...

Merge tag 'icc-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc into char-misc-next

Georgi writes:

interconnect changes for 6.9

This pull request contains the interconnect changes for the 6.9-rc1 merge
window. The highlights are below:

Core changes:
- Constify the of_phandle_args in xlate functions.

Driver changes:
- New interconnect driver for the MSM8909 platform.
- New interconnect driver for the SM7150 platform.
- Clean-up and removal of unused resources in drivers.
- Constify some pointers to structs.
Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>

* tag 'icc-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc:
  interconnect: qcom: Add SM7150 driver support
  dt-bindings: interconnect: Add Qualcomm SM7150 DT bindings
  interconnect: constify of_phandle_args in xlate
  dt-bindings: interconnect: qcom,rpmh: Fix bouncing @codeaurora address
  interconnect: qcom: x1e80100: constify pointer to qcom_icc_bcm
  interconnect: qcom: sa8775p: constify pointer to qcom_icc_bcm
  interconnect: qcom: sm6115: constify pointer to qcom_icc_node
  interconnect: qcom: sm8250: constify pointer to qcom_icc_node
  interconnect: qcom: sa8775p: constify pointer to qcom_icc_node
  interconnect: qcom: msm8909: constify pointer to qcom_icc_node
  interconnect: qcom: x1e80100: Remove bogus per-RSC BCMs and nodes
  dt-bindings: interconnect: Remove bogus interconnect nodes
  interconnect: qcom: sm8550: Remove bogus per-RSC BCMs and nodes
  interconnect: qcom: Add MSM8909 interconnect provider driver
  dt-bindings: interconnect: Add Qualcomm MSM8909 DT bindings
parents 37efe116 d1c16491
...@@ -23,6 +23,9 @@ properties: ...@@ -23,6 +23,9 @@ properties:
compatible: compatible:
enum: enum:
- qcom,msm8909-bimc
- qcom,msm8909-pcnoc
- qcom,msm8909-snoc
- qcom,msm8916-bimc - qcom,msm8916-bimc
- qcom,msm8916-pcnoc - qcom,msm8916-pcnoc
- qcom,msm8916-snoc - qcom,msm8916-snoc
......
...@@ -8,7 +8,7 @@ title: Qualcomm RPMh Network-On-Chip Interconnect ...@@ -8,7 +8,7 @@ title: Qualcomm RPMh Network-On-Chip Interconnect
maintainers: maintainers:
- Georgi Djakov <georgi.djakov@linaro.org> - Georgi Djakov <georgi.djakov@linaro.org>
- Odelu Kukatla <okukatla@codeaurora.org> - Odelu Kukatla <quic_okukatla@quicinc.com>
description: | description: |
RPMh interconnect providers support system bandwidth requirements through RPMh interconnect providers support system bandwidth requirements through
......
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interconnect/qcom,sm7150-rpmh.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Qualcomm RPMh Network-On-Chip Interconnect on SM7150
maintainers:
- Danila Tikhonov <danila@jiaxyga.com>
description: |
RPMh interconnect providers support system bandwidth requirements through
RPMh hardware accelerators known as Bus Clock Manager (BCM).
See also:: include/dt-bindings/interconnect/qcom,sm7150-rpmh.h
allOf:
- $ref: qcom,rpmh-common.yaml#
properties:
compatible:
enum:
- qcom,sm7150-aggre1-noc
- qcom,sm7150-aggre2-noc
- qcom,sm7150-compute-noc
- qcom,sm7150-config-noc
- qcom,sm7150-dc-noc
- qcom,sm7150-gem-noc
- qcom,sm7150-mc-virt
- qcom,sm7150-mmss-noc
- qcom,sm7150-system-noc
reg:
maxItems: 1
# Child node's properties
patternProperties:
'^interconnect-[0-9]+$':
type: object
description:
The interconnect providers do not have a separate QoS register space,
but share parent's space.
allOf:
- $ref: qcom,rpmh-common.yaml#
properties:
compatible:
enum:
- qcom,sm7150-camnoc-virt
required:
- compatible
unevaluatedProperties: false
required:
- compatible
- reg
unevaluatedProperties: false
examples:
- |
mc_virt: interconnect@1380000 {
compatible = "qcom,sm7150-mc-virt";
reg = <0x01380000 0x40000>;
#interconnect-cells = <2>;
qcom,bcm-voters = <&apps_bcm_voter>;
};
system_noc: interconnect@1620000 {
compatible = "qcom,sm7150-system-noc";
reg = <0x01620000 0x40000>;
#interconnect-cells = <2>;
qcom,bcm-voters = <&apps_bcm_voter>;
camnoc_virt: interconnect-0 {
compatible = "qcom,sm7150-camnoc-virt";
#interconnect-cells = <2>;
qcom,bcm-voters = <&apps_bcm_voter>;
};
};
...@@ -343,7 +343,7 @@ EXPORT_SYMBOL_GPL(icc_std_aggregate); ...@@ -343,7 +343,7 @@ EXPORT_SYMBOL_GPL(icc_std_aggregate);
* an array of icc nodes specified in the icc_onecell_data struct when * an array of icc nodes specified in the icc_onecell_data struct when
* registering the provider. * registering the provider.
*/ */
struct icc_node *of_icc_xlate_onecell(struct of_phandle_args *spec, struct icc_node *of_icc_xlate_onecell(const struct of_phandle_args *spec,
void *data) void *data)
{ {
struct icc_onecell_data *icc_data = data; struct icc_onecell_data *icc_data = data;
...@@ -368,7 +368,7 @@ EXPORT_SYMBOL_GPL(of_icc_xlate_onecell); ...@@ -368,7 +368,7 @@ EXPORT_SYMBOL_GPL(of_icc_xlate_onecell);
* Returns a valid pointer to struct icc_node_data on success or ERR_PTR() * Returns a valid pointer to struct icc_node_data on success or ERR_PTR()
* on failure. * on failure.
*/ */
struct icc_node_data *of_icc_get_from_provider(struct of_phandle_args *spec) struct icc_node_data *of_icc_get_from_provider(const struct of_phandle_args *spec)
{ {
struct icc_node *node = ERR_PTR(-EPROBE_DEFER); struct icc_node *node = ERR_PTR(-EPROBE_DEFER);
struct icc_node_data *data = NULL; struct icc_node_data *data = NULL;
......
...@@ -8,6 +8,15 @@ config INTERCONNECT_QCOM ...@@ -8,6 +8,15 @@ config INTERCONNECT_QCOM
config INTERCONNECT_QCOM_BCM_VOTER config INTERCONNECT_QCOM_BCM_VOTER
tristate tristate
config INTERCONNECT_QCOM_MSM8909
tristate "Qualcomm MSM8909 interconnect driver"
depends on INTERCONNECT_QCOM
depends on QCOM_SMD_RPM
select INTERCONNECT_QCOM_SMD_RPM
help
This is a driver for the Qualcomm Network-on-Chip on msm8909-based
platforms.
config INTERCONNECT_QCOM_MSM8916 config INTERCONNECT_QCOM_MSM8916
tristate "Qualcomm MSM8916 interconnect driver" tristate "Qualcomm MSM8916 interconnect driver"
depends on INTERCONNECT_QCOM depends on INTERCONNECT_QCOM
...@@ -209,6 +218,15 @@ config INTERCONNECT_QCOM_SM6350 ...@@ -209,6 +218,15 @@ config INTERCONNECT_QCOM_SM6350
This is a driver for the Qualcomm Network-on-Chip on sm6350-based This is a driver for the Qualcomm Network-on-Chip on sm6350-based
platforms. platforms.
config INTERCONNECT_QCOM_SM7150
tristate "Qualcomm SM7150 interconnect driver"
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
select INTERCONNECT_QCOM_RPMH
select INTERCONNECT_QCOM_BCM_VOTER
help
This is a driver for the Qualcomm Network-on-Chip on sm7150-based
platforms.
config INTERCONNECT_QCOM_SM8150 config INTERCONNECT_QCOM_SM8150
tristate "Qualcomm SM8150 interconnect driver" tristate "Qualcomm SM8150 interconnect driver"
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
......
...@@ -4,6 +4,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM) += interconnect_qcom.o ...@@ -4,6 +4,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM) += interconnect_qcom.o
interconnect_qcom-y := icc-common.o interconnect_qcom-y := icc-common.o
icc-bcm-voter-objs := bcm-voter.o icc-bcm-voter-objs := bcm-voter.o
qnoc-msm8909-objs := msm8909.o
qnoc-msm8916-objs := msm8916.o qnoc-msm8916-objs := msm8916.o
qnoc-msm8939-objs := msm8939.o qnoc-msm8939-objs := msm8939.o
qnoc-msm8974-objs := msm8974.o qnoc-msm8974-objs := msm8974.o
...@@ -26,6 +27,7 @@ qnoc-sdx65-objs := sdx65.o ...@@ -26,6 +27,7 @@ qnoc-sdx65-objs := sdx65.o
qnoc-sdx75-objs := sdx75.o qnoc-sdx75-objs := sdx75.o
qnoc-sm6115-objs := sm6115.o qnoc-sm6115-objs := sm6115.o
qnoc-sm6350-objs := sm6350.o qnoc-sm6350-objs := sm6350.o
qnoc-sm7150-objs := sm7150.o
qnoc-sm8150-objs := sm8150.o qnoc-sm8150-objs := sm8150.o
qnoc-sm8250-objs := sm8250.o qnoc-sm8250-objs := sm8250.o
qnoc-sm8350-objs := sm8350.o qnoc-sm8350-objs := sm8350.o
...@@ -36,6 +38,7 @@ qnoc-x1e80100-objs := x1e80100.o ...@@ -36,6 +38,7 @@ qnoc-x1e80100-objs := x1e80100.o
icc-smd-rpm-objs := smd-rpm.o icc-rpm.o icc-rpm-clocks.o icc-smd-rpm-objs := smd-rpm.o icc-rpm.o icc-rpm-clocks.o
obj-$(CONFIG_INTERCONNECT_QCOM_BCM_VOTER) += icc-bcm-voter.o obj-$(CONFIG_INTERCONNECT_QCOM_BCM_VOTER) += icc-bcm-voter.o
obj-$(CONFIG_INTERCONNECT_QCOM_MSM8909) += qnoc-msm8909.o
obj-$(CONFIG_INTERCONNECT_QCOM_MSM8916) += qnoc-msm8916.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8916) += qnoc-msm8916.o
obj-$(CONFIG_INTERCONNECT_QCOM_MSM8939) += qnoc-msm8939.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8939) += qnoc-msm8939.o
obj-$(CONFIG_INTERCONNECT_QCOM_MSM8974) += qnoc-msm8974.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8974) += qnoc-msm8974.o
...@@ -58,6 +61,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_SDX65) += qnoc-sdx65.o ...@@ -58,6 +61,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_SDX65) += qnoc-sdx65.o
obj-$(CONFIG_INTERCONNECT_QCOM_SDX75) += qnoc-sdx75.o obj-$(CONFIG_INTERCONNECT_QCOM_SDX75) += qnoc-sdx75.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM6115) += qnoc-sm6115.o obj-$(CONFIG_INTERCONNECT_QCOM_SM6115) += qnoc-sm6115.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM6350) += qnoc-sm6350.o obj-$(CONFIG_INTERCONNECT_QCOM_SM6350) += qnoc-sm6350.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM7150) += qnoc-sm7150.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM8150) += qnoc-sm8150.o obj-$(CONFIG_INTERCONNECT_QCOM_SM8150) += qnoc-sm8150.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM8250) += qnoc-sm8250.o obj-$(CONFIG_INTERCONNECT_QCOM_SM8250) += qnoc-sm8250.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM8350) += qnoc-sm8350.o obj-$(CONFIG_INTERCONNECT_QCOM_SM8350) += qnoc-sm8350.o
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
#include "icc-common.h" #include "icc-common.h"
struct icc_node_data *qcom_icc_xlate_extended(struct of_phandle_args *spec, void *data) struct icc_node_data *qcom_icc_xlate_extended(const struct of_phandle_args *spec,
void *data)
{ {
struct icc_node_data *ndata; struct icc_node_data *ndata;
struct icc_node *node; struct icc_node *node;
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <linux/interconnect-provider.h> #include <linux/interconnect-provider.h>
struct icc_node_data *qcom_icc_xlate_extended(struct of_phandle_args *spec, void *data); struct icc_node_data *qcom_icc_xlate_extended(const struct of_phandle_args *spec,
void *data);
#endif #endif
This diff is collapsed.
...@@ -2092,11 +2092,11 @@ static struct qcom_icc_bcm bcm_sn10 = { ...@@ -2092,11 +2092,11 @@ static struct qcom_icc_bcm bcm_sn10 = {
.nodes = { &xs_qdss_stm }, .nodes = { &xs_qdss_stm },
}; };
static struct qcom_icc_bcm *aggre1_noc_bcms[] = { static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
&bcm_sn3, &bcm_sn3,
}; };
static struct qcom_icc_node *aggre1_noc_nodes[] = { static struct qcom_icc_node * const aggre1_noc_nodes[] = {
[MASTER_QUP_3] = &qxm_qup3, [MASTER_QUP_3] = &qxm_qup3,
[MASTER_EMAC] = &xm_emac_0, [MASTER_EMAC] = &xm_emac_0,
[MASTER_EMAC_1] = &xm_emac_1, [MASTER_EMAC_1] = &xm_emac_1,
...@@ -2115,12 +2115,12 @@ static const struct qcom_icc_desc sa8775p_aggre1_noc = { ...@@ -2115,12 +2115,12 @@ static const struct qcom_icc_desc sa8775p_aggre1_noc = {
.num_bcms = ARRAY_SIZE(aggre1_noc_bcms), .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
}; };
static struct qcom_icc_bcm *aggre2_noc_bcms[] = { static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
&bcm_ce0, &bcm_ce0,
&bcm_sn4, &bcm_sn4,
}; };
static struct qcom_icc_node *aggre2_noc_nodes[] = { static struct qcom_icc_node * const aggre2_noc_nodes[] = {
[MASTER_QDSS_BAM] = &qhm_qdss_bam, [MASTER_QDSS_BAM] = &qhm_qdss_bam,
[MASTER_QUP_0] = &qhm_qup0, [MASTER_QUP_0] = &qhm_qup0,
[MASTER_QUP_1] = &qhm_qup1, [MASTER_QUP_1] = &qhm_qup1,
...@@ -2142,13 +2142,13 @@ static const struct qcom_icc_desc sa8775p_aggre2_noc = { ...@@ -2142,13 +2142,13 @@ static const struct qcom_icc_desc sa8775p_aggre2_noc = {
.num_bcms = ARRAY_SIZE(aggre2_noc_bcms), .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
}; };
static struct qcom_icc_bcm *clk_virt_bcms[] = { static struct qcom_icc_bcm * const clk_virt_bcms[] = {
&bcm_qup0, &bcm_qup0,
&bcm_qup1, &bcm_qup1,
&bcm_qup2, &bcm_qup2,
}; };
static struct qcom_icc_node *clk_virt_nodes[] = { static struct qcom_icc_node * const clk_virt_nodes[] = {
[MASTER_QUP_CORE_0] = &qup0_core_master, [MASTER_QUP_CORE_0] = &qup0_core_master,
[MASTER_QUP_CORE_1] = &qup1_core_master, [MASTER_QUP_CORE_1] = &qup1_core_master,
[MASTER_QUP_CORE_2] = &qup2_core_master, [MASTER_QUP_CORE_2] = &qup2_core_master,
...@@ -2166,7 +2166,7 @@ static const struct qcom_icc_desc sa8775p_clk_virt = { ...@@ -2166,7 +2166,7 @@ static const struct qcom_icc_desc sa8775p_clk_virt = {
.num_bcms = ARRAY_SIZE(clk_virt_bcms), .num_bcms = ARRAY_SIZE(clk_virt_bcms),
}; };
static struct qcom_icc_bcm *config_noc_bcms[] = { static struct qcom_icc_bcm * const config_noc_bcms[] = {
&bcm_cn0, &bcm_cn0,
&bcm_cn1, &bcm_cn1,
&bcm_cn2, &bcm_cn2,
...@@ -2175,7 +2175,7 @@ static struct qcom_icc_bcm *config_noc_bcms[] = { ...@@ -2175,7 +2175,7 @@ static struct qcom_icc_bcm *config_noc_bcms[] = {
&bcm_sn10, &bcm_sn10,
}; };
static struct qcom_icc_node *config_noc_nodes[] = { static struct qcom_icc_node * const config_noc_nodes[] = {
[MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc, [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
[MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie, [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
[SLAVE_AHB2PHY_0] = &qhs_ahb2phy0, [SLAVE_AHB2PHY_0] = &qhs_ahb2phy0,
...@@ -2271,10 +2271,10 @@ static const struct qcom_icc_desc sa8775p_config_noc = { ...@@ -2271,10 +2271,10 @@ static const struct qcom_icc_desc sa8775p_config_noc = {
.num_bcms = ARRAY_SIZE(config_noc_bcms), .num_bcms = ARRAY_SIZE(config_noc_bcms),
}; };
static struct qcom_icc_bcm *dc_noc_bcms[] = { static struct qcom_icc_bcm * const dc_noc_bcms[] = {
}; };
static struct qcom_icc_node *dc_noc_nodes[] = { static struct qcom_icc_node * const dc_noc_nodes[] = {
[MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc, [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
[SLAVE_LLCC_CFG] = &qhs_llcc, [SLAVE_LLCC_CFG] = &qhs_llcc,
[SLAVE_GEM_NOC_CFG] = &qns_gemnoc, [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
...@@ -2287,12 +2287,12 @@ static const struct qcom_icc_desc sa8775p_dc_noc = { ...@@ -2287,12 +2287,12 @@ static const struct qcom_icc_desc sa8775p_dc_noc = {
.num_bcms = ARRAY_SIZE(dc_noc_bcms), .num_bcms = ARRAY_SIZE(dc_noc_bcms),
}; };
static struct qcom_icc_bcm *gem_noc_bcms[] = { static struct qcom_icc_bcm * const gem_noc_bcms[] = {
&bcm_sh0, &bcm_sh0,
&bcm_sh2, &bcm_sh2,
}; };
static struct qcom_icc_node *gem_noc_nodes[] = { static struct qcom_icc_node * const gem_noc_nodes[] = {
[MASTER_GPU_TCU] = &alm_gpu_tcu, [MASTER_GPU_TCU] = &alm_gpu_tcu,
[MASTER_PCIE_TCU] = &alm_pcie_tcu, [MASTER_PCIE_TCU] = &alm_pcie_tcu,
[MASTER_SYS_TCU] = &alm_sys_tcu, [MASTER_SYS_TCU] = &alm_sys_tcu,
...@@ -2323,12 +2323,12 @@ static const struct qcom_icc_desc sa8775p_gem_noc = { ...@@ -2323,12 +2323,12 @@ static const struct qcom_icc_desc sa8775p_gem_noc = {
.num_bcms = ARRAY_SIZE(gem_noc_bcms), .num_bcms = ARRAY_SIZE(gem_noc_bcms),
}; };
static struct qcom_icc_bcm *gpdsp_anoc_bcms[] = { static struct qcom_icc_bcm * const gpdsp_anoc_bcms[] = {
&bcm_gna0, &bcm_gna0,
&bcm_gnb0, &bcm_gnb0,
}; };
static struct qcom_icc_node *gpdsp_anoc_nodes[] = { static struct qcom_icc_node * const gpdsp_anoc_nodes[] = {
[MASTER_DSP0] = &qxm_dsp0, [MASTER_DSP0] = &qxm_dsp0,
[MASTER_DSP1] = &qxm_dsp1, [MASTER_DSP1] = &qxm_dsp1,
[SLAVE_GP_DSP_SAIL_NOC] = &qns_gp_dsp_sail_noc, [SLAVE_GP_DSP_SAIL_NOC] = &qns_gp_dsp_sail_noc,
...@@ -2341,11 +2341,11 @@ static const struct qcom_icc_desc sa8775p_gpdsp_anoc = { ...@@ -2341,11 +2341,11 @@ static const struct qcom_icc_desc sa8775p_gpdsp_anoc = {
.num_bcms = ARRAY_SIZE(gpdsp_anoc_bcms), .num_bcms = ARRAY_SIZE(gpdsp_anoc_bcms),
}; };
static struct qcom_icc_bcm *lpass_ag_noc_bcms[] = { static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
&bcm_sn9, &bcm_sn9,
}; };
static struct qcom_icc_node *lpass_ag_noc_nodes[] = { static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
[MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc, [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
[MASTER_LPASS_PROC] = &qxm_lpass_dsp, [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
[SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core, [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
...@@ -2364,12 +2364,12 @@ static const struct qcom_icc_desc sa8775p_lpass_ag_noc = { ...@@ -2364,12 +2364,12 @@ static const struct qcom_icc_desc sa8775p_lpass_ag_noc = {
.num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms), .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
}; };
static struct qcom_icc_bcm *mc_virt_bcms[] = { static struct qcom_icc_bcm * const mc_virt_bcms[] = {
&bcm_acv, &bcm_acv,
&bcm_mc0, &bcm_mc0,
}; };
static struct qcom_icc_node *mc_virt_nodes[] = { static struct qcom_icc_node * const mc_virt_nodes[] = {
[MASTER_LLCC] = &llcc_mc, [MASTER_LLCC] = &llcc_mc,
[SLAVE_EBI1] = &ebi, [SLAVE_EBI1] = &ebi,
}; };
...@@ -2381,12 +2381,12 @@ static const struct qcom_icc_desc sa8775p_mc_virt = { ...@@ -2381,12 +2381,12 @@ static const struct qcom_icc_desc sa8775p_mc_virt = {
.num_bcms = ARRAY_SIZE(mc_virt_bcms), .num_bcms = ARRAY_SIZE(mc_virt_bcms),
}; };
static struct qcom_icc_bcm *mmss_noc_bcms[] = { static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
&bcm_mm0, &bcm_mm0,
&bcm_mm1, &bcm_mm1,
}; };
static struct qcom_icc_node *mmss_noc_nodes[] = { static struct qcom_icc_node * const mmss_noc_nodes[] = {
[MASTER_CAMNOC_HF] = &qnm_camnoc_hf, [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
[MASTER_CAMNOC_ICP] = &qnm_camnoc_icp, [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
[MASTER_CAMNOC_SF] = &qnm_camnoc_sf, [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
...@@ -2413,12 +2413,12 @@ static const struct qcom_icc_desc sa8775p_mmss_noc = { ...@@ -2413,12 +2413,12 @@ static const struct qcom_icc_desc sa8775p_mmss_noc = {
.num_bcms = ARRAY_SIZE(mmss_noc_bcms), .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
}; };
static struct qcom_icc_bcm *nspa_noc_bcms[] = { static struct qcom_icc_bcm * const nspa_noc_bcms[] = {
&bcm_nsa0, &bcm_nsa0,
&bcm_nsa1, &bcm_nsa1,
}; };
static struct qcom_icc_node *nspa_noc_nodes[] = { static struct qcom_icc_node * const nspa_noc_nodes[] = {
[MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config, [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
[MASTER_CDSP_PROC] = &qxm_nsp, [MASTER_CDSP_PROC] = &qxm_nsp,
[SLAVE_HCP_A] = &qns_hcp, [SLAVE_HCP_A] = &qns_hcp,
...@@ -2433,12 +2433,12 @@ static const struct qcom_icc_desc sa8775p_nspa_noc = { ...@@ -2433,12 +2433,12 @@ static const struct qcom_icc_desc sa8775p_nspa_noc = {
.num_bcms = ARRAY_SIZE(nspa_noc_bcms), .num_bcms = ARRAY_SIZE(nspa_noc_bcms),
}; };
static struct qcom_icc_bcm *nspb_noc_bcms[] = { static struct qcom_icc_bcm * const nspb_noc_bcms[] = {
&bcm_nsb0, &bcm_nsb0,
&bcm_nsb1, &bcm_nsb1,
}; };
static struct qcom_icc_node *nspb_noc_nodes[] = { static struct qcom_icc_node * const nspb_noc_nodes[] = {
[MASTER_CDSPB_NOC_CFG] = &qhm_nspb_noc_config, [MASTER_CDSPB_NOC_CFG] = &qhm_nspb_noc_config,
[MASTER_CDSP_PROC_B] = &qxm_nspb, [MASTER_CDSP_PROC_B] = &qxm_nspb,
[SLAVE_CDSPB_MEM_NOC] = &qns_nspb_gemnoc, [SLAVE_CDSPB_MEM_NOC] = &qns_nspb_gemnoc,
...@@ -2453,11 +2453,11 @@ static const struct qcom_icc_desc sa8775p_nspb_noc = { ...@@ -2453,11 +2453,11 @@ static const struct qcom_icc_desc sa8775p_nspb_noc = {
.num_bcms = ARRAY_SIZE(nspb_noc_bcms), .num_bcms = ARRAY_SIZE(nspb_noc_bcms),
}; };
static struct qcom_icc_bcm *pcie_anoc_bcms[] = { static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
&bcm_pci0, &bcm_pci0,
}; };
static struct qcom_icc_node *pcie_anoc_nodes[] = { static struct qcom_icc_node * const pcie_anoc_nodes[] = {
[MASTER_PCIE_0] = &xm_pcie3_0, [MASTER_PCIE_0] = &xm_pcie3_0,
[MASTER_PCIE_1] = &xm_pcie3_1, [MASTER_PCIE_1] = &xm_pcie3_1,
[SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc, [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
...@@ -2470,7 +2470,7 @@ static const struct qcom_icc_desc sa8775p_pcie_anoc = { ...@@ -2470,7 +2470,7 @@ static const struct qcom_icc_desc sa8775p_pcie_anoc = {
.num_bcms = ARRAY_SIZE(pcie_anoc_bcms), .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
}; };
static struct qcom_icc_bcm *system_noc_bcms[] = { static struct qcom_icc_bcm * const system_noc_bcms[] = {
&bcm_sn0, &bcm_sn0,
&bcm_sn1, &bcm_sn1,
&bcm_sn3, &bcm_sn3,
...@@ -2478,7 +2478,7 @@ static struct qcom_icc_bcm *system_noc_bcms[] = { ...@@ -2478,7 +2478,7 @@ static struct qcom_icc_bcm *system_noc_bcms[] = {
&bcm_sn9, &bcm_sn9,
}; };
static struct qcom_icc_node *system_noc_nodes[] = { static struct qcom_icc_node * const system_noc_nodes[] = {
[MASTER_GIC_AHB] = &qhm_gic, [MASTER_GIC_AHB] = &qhm_gic,
[MASTER_A1NOC_SNOC] = &qnm_aggre1_noc, [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
[MASTER_A2NOC_SNOC] = &qnm_aggre2_noc, [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
......
...@@ -1193,7 +1193,7 @@ static struct qcom_icc_node slv_anoc_snoc = { ...@@ -1193,7 +1193,7 @@ static struct qcom_icc_node slv_anoc_snoc = {
.links = slv_anoc_snoc_links, .links = slv_anoc_snoc_links,
}; };
static struct qcom_icc_node *bimc_nodes[] = { static struct qcom_icc_node * const bimc_nodes[] = {
[MASTER_AMPSS_M0] = &apps_proc, [MASTER_AMPSS_M0] = &apps_proc,
[MASTER_SNOC_BIMC_RT] = &mas_snoc_bimc_rt, [MASTER_SNOC_BIMC_RT] = &mas_snoc_bimc_rt,
[MASTER_SNOC_BIMC_NRT] = &mas_snoc_bimc_nrt, [MASTER_SNOC_BIMC_NRT] = &mas_snoc_bimc_nrt,
...@@ -1223,7 +1223,7 @@ static const struct qcom_icc_desc sm6115_bimc = { ...@@ -1223,7 +1223,7 @@ static const struct qcom_icc_desc sm6115_bimc = {
.ab_coeff = 153, .ab_coeff = 153,
}; };
static struct qcom_icc_node *config_noc_nodes[] = { static struct qcom_icc_node * const config_noc_nodes[] = {
[SNOC_CNOC_MAS] = &mas_snoc_cnoc, [SNOC_CNOC_MAS] = &mas_snoc_cnoc,
[MASTER_QDSS_DAP] = &xm_dap, [MASTER_QDSS_DAP] = &xm_dap,
[SLAVE_AHB2PHY_USB] = &qhs_ahb2phy_usb, [SLAVE_AHB2PHY_USB] = &qhs_ahb2phy_usb,
...@@ -1294,7 +1294,7 @@ static const struct qcom_icc_desc sm6115_config_noc = { ...@@ -1294,7 +1294,7 @@ static const struct qcom_icc_desc sm6115_config_noc = {
.keep_alive = true, .keep_alive = true,
}; };
static struct qcom_icc_node *sys_noc_nodes[] = { static struct qcom_icc_node * const sys_noc_nodes[] = {
[MASTER_CRYPTO_CORE0] = &crypto_c0, [MASTER_CRYPTO_CORE0] = &crypto_c0,
[MASTER_SNOC_CFG] = &qhm_snoc_cfg, [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
[MASTER_TIC] = &qhm_tic, [MASTER_TIC] = &qhm_tic,
...@@ -1339,7 +1339,7 @@ static const struct qcom_icc_desc sm6115_sys_noc = { ...@@ -1339,7 +1339,7 @@ static const struct qcom_icc_desc sm6115_sys_noc = {
.keep_alive = true, .keep_alive = true,
}; };
static struct qcom_icc_node *clk_virt_nodes[] = { static struct qcom_icc_node * const clk_virt_nodes[] = {
[MASTER_QUP_CORE_0] = &qup0_core_master, [MASTER_QUP_CORE_0] = &qup0_core_master,
[SLAVE_QUP_CORE_0] = &qup0_core_slave, [SLAVE_QUP_CORE_0] = &qup0_core_slave,
}; };
...@@ -1353,7 +1353,7 @@ static const struct qcom_icc_desc sm6115_clk_virt = { ...@@ -1353,7 +1353,7 @@ static const struct qcom_icc_desc sm6115_clk_virt = {
.keep_alive = true, .keep_alive = true,
}; };
static struct qcom_icc_node *mmnrt_virt_nodes[] = { static struct qcom_icc_node * const mmnrt_virt_nodes[] = {
[MASTER_CAMNOC_SF] = &qnm_camera_nrt, [MASTER_CAMNOC_SF] = &qnm_camera_nrt,
[MASTER_VIDEO_P0] = &qxm_venus0, [MASTER_VIDEO_P0] = &qxm_venus0,
[MASTER_VIDEO_PROC] = &qxm_venus_cpu, [MASTER_VIDEO_PROC] = &qxm_venus_cpu,
...@@ -1370,7 +1370,7 @@ static const struct qcom_icc_desc sm6115_mmnrt_virt = { ...@@ -1370,7 +1370,7 @@ static const struct qcom_icc_desc sm6115_mmnrt_virt = {
.ab_coeff = 142, .ab_coeff = 142,
}; };
static struct qcom_icc_node *mmrt_virt_nodes[] = { static struct qcom_icc_node * const mmrt_virt_nodes[] = {
[MASTER_CAMNOC_HF] = &qnm_camera_rt, [MASTER_CAMNOC_HF] = &qnm_camera_rt,
[MASTER_MDP_PORT0] = &qxm_mdp0, [MASTER_MDP_PORT0] = &qxm_mdp0,
[SLAVE_SNOC_BIMC_RT] = &slv_snoc_bimc_rt, [SLAVE_SNOC_BIMC_RT] = &slv_snoc_bimc_rt,
......
This diff is collapsed.
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Qualcomm #define SM7150 interconnect IDs
*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
*/
#ifndef __DRIVERS_INTERCONNECT_QCOM_SM7150_H
#define __DRIVERS_INTERCONNECT_QCOM_SM7150_H
#define SM7150_A1NOC_SNOC_MAS 0
#define SM7150_A1NOC_SNOC_SLV 1
#define SM7150_A2NOC_SNOC_MAS 2
#define SM7150_A2NOC_SNOC_SLV 3
#define SM7150_MASTER_A1NOC_CFG 4
#define SM7150_MASTER_A2NOC_CFG 5
#define SM7150_MASTER_AMPSS_M0 6
#define SM7150_MASTER_CAMNOC_HF0 7
#define SM7150_MASTER_CAMNOC_HF0_UNCOMP 8
#define SM7150_MASTER_CAMNOC_NRT 9
#define SM7150_MASTER_CAMNOC_NRT_UNCOMP 10
#define SM7150_MASTER_CAMNOC_RT 11
#define SM7150_MASTER_CAMNOC_RT_UNCOMP 12
#define SM7150_MASTER_CAMNOC_SF 13
#define SM7150_MASTER_CAMNOC_SF_UNCOMP 14
#define SM7150_MASTER_CNOC_A2NOC 15
#define SM7150_MASTER_CNOC_DC_NOC 16
#define SM7150_MASTER_CNOC_MNOC_CFG 17
#define SM7150_MASTER_COMPUTE_NOC 18
#define SM7150_MASTER_CRYPTO_CORE_0 19
#define SM7150_MASTER_EMMC 20
#define SM7150_MASTER_GEM_NOC_CFG 21
#define SM7150_MASTER_GEM_NOC_PCIE_SNOC 22
#define SM7150_MASTER_GEM_NOC_SNOC 23
#define SM7150_MASTER_GIC 24
#define SM7150_MASTER_GRAPHICS_3D 25
#define SM7150_MASTER_IPA 26
#define SM7150_MASTER_LLCC 27
#define SM7150_MASTER_MDP_PORT0 28
#define SM7150_MASTER_MDP_PORT1 29
#define SM7150_MASTER_MNOC_HF_MEM_NOC 30
#define SM7150_MASTER_MNOC_SF_MEM_NOC 31
#define SM7150_MASTER_NPU 32
#define SM7150_MASTER_PCIE 33
#define SM7150_MASTER_PIMEM 34
#define SM7150_MASTER_QDSS_BAM 35
#define SM7150_MASTER_QDSS_DAP 36
#define SM7150_MASTER_QDSS_ETR 37
#define SM7150_MASTER_QUP_0 38
#define SM7150_MASTER_QUP_1 39
#define SM7150_MASTER_ROTATOR 40
#define SM7150_MASTER_SDCC_2 41
#define SM7150_MASTER_SDCC_4 42
#define SM7150_MASTER_SNOC_CFG 43
#define SM7150_MASTER_SNOC_GC_MEM_NOC 44
#define SM7150_MASTER_SNOC_SF_MEM_NOC 45
#define SM7150_MASTER_SPDM 46
#define SM7150_MASTER_SYS_TCU 47
#define SM7150_MASTER_TSIF 48
#define SM7150_MASTER_UFS_MEM 49
#define SM7150_MASTER_USB3 50
#define SM7150_MASTER_VIDEO_P0 51
#define SM7150_MASTER_VIDEO_P1 52
#define SM7150_MASTER_VIDEO_PROC 53
#define SM7150_SLAVE_A1NOC_CFG 54
#define SM7150_SLAVE_A2NOC_CFG 55
#define SM7150_SLAVE_AHB2PHY_NORTH 56
#define SM7150_SLAVE_AHB2PHY_SOUTH 57
#define SM7150_SLAVE_AHB2PHY_WEST 58
#define SM7150_SLAVE_ANOC_PCIE_GEM_NOC 59
#define SM7150_SLAVE_AOP 60
#define SM7150_SLAVE_AOSS 61
#define SM7150_SLAVE_APPSS 62
#define SM7150_SLAVE_CAMERA_CFG 63
#define SM7150_SLAVE_CAMERA_NRT_THROTTLE_CFG 64
#define SM7150_SLAVE_CAMERA_RT_THROTTLE_CFG 65
#define SM7150_SLAVE_CAMNOC_UNCOMP 66
#define SM7150_SLAVE_CDSP_CFG 67
#define SM7150_SLAVE_CDSP_GEM_NOC 68
#define SM7150_SLAVE_CLK_CTL 69
#define SM7150_SLAVE_CNOC_A2NOC 70
#define SM7150_SLAVE_CNOC_DDRSS 71
#define SM7150_SLAVE_CNOC_MNOC_CFG 72
#define SM7150_SLAVE_CRYPTO_0_CFG 73
#define SM7150_SLAVE_DISPLAY_CFG 74
#define SM7150_SLAVE_DISPLAY_THROTTLE_CFG 75
#define SM7150_SLAVE_EBI_CH0 76
#define SM7150_SLAVE_EMMC_CFG 77
#define SM7150_SLAVE_GEM_NOC_CFG 78
#define SM7150_SLAVE_GEM_NOC_SNOC 79
#define SM7150_SLAVE_GLM 80
#define SM7150_SLAVE_GRAPHICS_3D_CFG 81
#define SM7150_SLAVE_IMEM_CFG 82
#define SM7150_SLAVE_IPA_CFG 83
#define SM7150_SLAVE_LLCC 84
#define SM7150_SLAVE_LLCC_CFG 85
#define SM7150_SLAVE_MNOC_HF_MEM_NOC 86
#define SM7150_SLAVE_MNOC_SF_MEM_NOC 87
#define SM7150_SLAVE_MSS_PROC_MS_MPU_CFG 88
#define SM7150_SLAVE_OCIMEM 89
#define SM7150_SLAVE_PCIE_CFG 90
#define SM7150_SLAVE_PDM 91
#define SM7150_SLAVE_PIMEM 92
#define SM7150_SLAVE_PIMEM_CFG 93
#define SM7150_SLAVE_PRNG 94
#define SM7150_SLAVE_QDSS_CFG 95
#define SM7150_SLAVE_QDSS_STM 96
#define SM7150_SLAVE_QUP_0 97
#define SM7150_SLAVE_QUP_1 98
#define SM7150_SLAVE_RBCPR_CX_CFG 99
#define SM7150_SLAVE_RBCPR_MX_CFG 100
#define SM7150_SLAVE_SDCC_2 101
#define SM7150_SLAVE_SDCC_4 102
#define SM7150_SLAVE_SERVICE_A1NOC 103
#define SM7150_SLAVE_SERVICE_A2NOC 104
#define SM7150_SLAVE_SERVICE_CNOC 105
#define SM7150_SLAVE_SERVICE_GEM_NOC 106
#define SM7150_SLAVE_SERVICE_MNOC 107
#define SM7150_SLAVE_SERVICE_SNOC 108
#define SM7150_SLAVE_SNOC_CFG 109
#define SM7150_SLAVE_SNOC_GEM_NOC_GC 110
#define SM7150_SLAVE_SNOC_GEM_NOC_SF 111
#define SM7150_SLAVE_SPDM_WRAPPER 112
#define SM7150_SLAVE_TCSR 113
#define SM7150_SLAVE_TCU 114
#define SM7150_SLAVE_TLMM_NORTH 115
#define SM7150_SLAVE_TLMM_SOUTH 116
#define SM7150_SLAVE_TLMM_WEST 117
#define SM7150_SLAVE_TSIF 118
#define SM7150_SLAVE_UFS_MEM_CFG 119
#define SM7150_SLAVE_USB3 120
#define SM7150_SLAVE_VENUS_CFG 121
#define SM7150_SLAVE_VENUS_CVP_THROTTLE_CFG 122
#define SM7150_SLAVE_VENUS_THROTTLE_CFG 123
#define SM7150_SLAVE_VSENSE_CTRL_CFG 124
#define SM7150_SNOC_CNOC_MAS 125
#define SM7150_SNOC_CNOC_SLV 126
#endif
...@@ -1673,7 +1673,7 @@ static struct qcom_icc_bcm * const qup_virt_bcms[] = { ...@@ -1673,7 +1673,7 @@ static struct qcom_icc_bcm * const qup_virt_bcms[] = {
&bcm_qup0, &bcm_qup0,
}; };
static struct qcom_icc_node *qup_virt_nodes[] = { static struct qcom_icc_node * const qup_virt_nodes[] = {
[MASTER_QUP_CORE_0] = &qup0_core_master, [MASTER_QUP_CORE_0] = &qup0_core_master,
[MASTER_QUP_CORE_1] = &qup1_core_master, [MASTER_QUP_CORE_1] = &qup1_core_master,
[MASTER_QUP_CORE_2] = &qup2_core_master, [MASTER_QUP_CORE_2] = &qup2_core_master,
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -82,7 +82,7 @@ static int exynos_generic_icc_set(struct icc_node *src, struct icc_node *dst) ...@@ -82,7 +82,7 @@ static int exynos_generic_icc_set(struct icc_node *src, struct icc_node *dst)
return 0; return 0;
} }
static struct icc_node *exynos_generic_icc_xlate(struct of_phandle_args *spec, static struct icc_node *exynos_generic_icc_xlate(const struct of_phandle_args *spec,
void *data) void *data)
{ {
struct exynos_icc_priv *priv = data; struct exynos_icc_priv *priv = data;
......
...@@ -755,7 +755,7 @@ const char *const tegra_mc_error_names[8] = { ...@@ -755,7 +755,7 @@ const char *const tegra_mc_error_names[8] = {
[6] = "SMMU translation error", [6] = "SMMU translation error",
}; };
struct icc_node *tegra_mc_icc_xlate(struct of_phandle_args *spec, void *data) struct icc_node *tegra_mc_icc_xlate(const struct of_phandle_args *spec, void *data)
{ {
struct tegra_mc *mc = icc_provider_to_tegra_mc(data); struct tegra_mc *mc = icc_provider_to_tegra_mc(data);
struct icc_node *node; struct icc_node *node;
......
...@@ -1285,7 +1285,7 @@ to_tegra_emc_provider(struct icc_provider *provider) ...@@ -1285,7 +1285,7 @@ to_tegra_emc_provider(struct icc_provider *provider)
} }
static struct icc_node_data * static struct icc_node_data *
emc_of_icc_xlate_extended(struct of_phandle_args *spec, void *data) emc_of_icc_xlate_extended(const struct of_phandle_args *spec, void *data)
{ {
struct icc_provider *provider = data; struct icc_provider *provider = data;
struct icc_node_data *ndata; struct icc_node_data *ndata;
......
...@@ -1170,7 +1170,7 @@ static int tegra124_mc_icc_aggreate(struct icc_node *node, u32 tag, u32 avg_bw, ...@@ -1170,7 +1170,7 @@ static int tegra124_mc_icc_aggreate(struct icc_node *node, u32 tag, u32 avg_bw,
} }
static struct icc_node_data * static struct icc_node_data *
tegra124_mc_of_icc_xlate_extended(struct of_phandle_args *spec, void *data) tegra124_mc_of_icc_xlate_extended(const struct of_phandle_args *spec, void *data)
{ {
struct tegra_mc *mc = icc_provider_to_tegra_mc(data); struct tegra_mc *mc = icc_provider_to_tegra_mc(data);
const struct tegra_mc_client *client; const struct tegra_mc_client *client;
......
...@@ -236,7 +236,7 @@ static int tegra_emc_icc_set_bw(struct icc_node *src, struct icc_node *dst) ...@@ -236,7 +236,7 @@ static int tegra_emc_icc_set_bw(struct icc_node *src, struct icc_node *dst)
} }
static struct icc_node * static struct icc_node *
tegra_emc_of_icc_xlate(struct of_phandle_args *spec, void *data) tegra_emc_of_icc_xlate(const struct of_phandle_args *spec, void *data)
{ {
struct icc_provider *provider = data; struct icc_provider *provider = data;
struct icc_node *node; struct icc_node *node;
......
...@@ -950,7 +950,7 @@ to_tegra_emc_provider(struct icc_provider *provider) ...@@ -950,7 +950,7 @@ to_tegra_emc_provider(struct icc_provider *provider)
} }
static struct icc_node_data * static struct icc_node_data *
emc_of_icc_xlate_extended(struct of_phandle_args *spec, void *data) emc_of_icc_xlate_extended(const struct of_phandle_args *spec, void *data)
{ {
struct icc_provider *provider = data; struct icc_provider *provider = data;
struct icc_node_data *ndata; struct icc_node_data *ndata;
......
...@@ -390,7 +390,7 @@ static int tegra20_mc_icc_aggreate(struct icc_node *node, u32 tag, u32 avg_bw, ...@@ -390,7 +390,7 @@ static int tegra20_mc_icc_aggreate(struct icc_node *node, u32 tag, u32 avg_bw,
} }
static struct icc_node_data * static struct icc_node_data *
tegra20_mc_of_icc_xlate_extended(struct of_phandle_args *spec, void *data) tegra20_mc_of_icc_xlate_extended(const struct of_phandle_args *spec, void *data)
{ {
struct tegra_mc *mc = icc_provider_to_tegra_mc(data); struct tegra_mc *mc = icc_provider_to_tegra_mc(data);
unsigned int i, idx = spec->args[0]; unsigned int i, idx = spec->args[0];
......
...@@ -1468,7 +1468,7 @@ to_tegra_emc_provider(struct icc_provider *provider) ...@@ -1468,7 +1468,7 @@ to_tegra_emc_provider(struct icc_provider *provider)
} }
static struct icc_node_data * static struct icc_node_data *
emc_of_icc_xlate_extended(struct of_phandle_args *spec, void *data) emc_of_icc_xlate_extended(const struct of_phandle_args *spec, void *data)
{ {
struct icc_provider *provider = data; struct icc_provider *provider = data;
struct icc_node_data *ndata; struct icc_node_data *ndata;
......
...@@ -1332,7 +1332,7 @@ static int tegra30_mc_icc_aggreate(struct icc_node *node, u32 tag, u32 avg_bw, ...@@ -1332,7 +1332,7 @@ static int tegra30_mc_icc_aggreate(struct icc_node *node, u32 tag, u32 avg_bw,
} }
static struct icc_node_data * static struct icc_node_data *
tegra30_mc_of_icc_xlate_extended(struct of_phandle_args *spec, void *data) tegra30_mc_of_icc_xlate_extended(const struct of_phandle_args *spec, void *data)
{ {
struct tegra_mc *mc = icc_provider_to_tegra_mc(data); struct tegra_mc *mc = icc_provider_to_tegra_mc(data);
const struct tegra_mc_client *client; const struct tegra_mc_client *client;
......
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
/*
* Qualcomm MSM8909 interconnect IDs
*/
#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_MSM8909_H
#define __DT_BINDINGS_INTERCONNECT_QCOM_MSM8909_H
/* BIMC fabric */
#define MAS_APPS_PROC 0
#define MAS_OXILI 1
#define MAS_SNOC_BIMC_0 2
#define MAS_SNOC_BIMC_1 3
#define MAS_TCU_0 4
#define MAS_TCU_1 5
#define SLV_EBI 6
#define SLV_BIMC_SNOC 7
/* PCNOC fabric */
#define MAS_AUDIO 0
#define MAS_SPDM 1
#define MAS_DEHR 2
#define MAS_QPIC 3
#define MAS_BLSP_1 4
#define MAS_USB_HS 5
#define MAS_CRYPTO 6
#define MAS_SDCC_1 7
#define MAS_SDCC_2 8
#define MAS_SNOC_PCNOC 9
#define PCNOC_M_0 10
#define PCNOC_M_1 11
#define PCNOC_INT_0 12
#define PCNOC_INT_1 13
#define PCNOC_S_0 14
#define PCNOC_S_1 15
#define PCNOC_S_2 16
#define PCNOC_S_3 17
#define PCNOC_S_4 18
#define PCNOC_S_5 19
#define PCNOC_S_7 20
#define SLV_TCSR 21
#define SLV_SDCC_1 22
#define SLV_BLSP_1 23
#define SLV_CRYPTO_0_CFG 24
#define SLV_MESSAGE_RAM 25
#define SLV_PDM 26
#define SLV_PRNG 27
#define SLV_USB_HS 28
#define SLV_QPIC 29
#define SLV_SPDM 30
#define SLV_SDCC_2 31
#define SLV_AUDIO 32
#define SLV_DEHR_CFG 33
#define SLV_SNOC_CFG 34
#define SLV_QDSS_CFG 35
#define SLV_USB_PHY 36
#define SLV_CAMERA_SS_CFG 37
#define SLV_DISP_SS_CFG 38
#define SLV_VENUS_CFG 39
#define SLV_TLMM 40
#define SLV_GPU_CFG 41
#define SLV_IMEM_CFG 42
#define SLV_BIMC_CFG 43
#define SLV_PMIC_ARB 44
#define SLV_TCU 45
#define SLV_PCNOC_SNOC 46
/* SNOC fabric */
#define MAS_QDSS_BAM 0
#define MAS_BIMC_SNOC 1
#define MAS_MDP 2
#define MAS_PCNOC_SNOC 3
#define MAS_VENUS 4
#define MAS_VFE 5
#define MAS_QDSS_ETR 6
#define MM_INT_0 7
#define MM_INT_1 8
#define MM_INT_2 9
#define MM_INT_BIMC 10
#define QDSS_INT 11
#define SNOC_INT_0 12
#define SNOC_INT_1 13
#define SNOC_INT_BIMC 14
#define SLV_KPSS_AHB 15
#define SLV_SNOC_BIMC_0 16
#define SLV_SNOC_BIMC_1 17
#define SLV_IMEM 18
#define SLV_SNOC_PCNOC 19
#define SLV_QDSS_STM 20
#define SLV_CATS_0 21
#define SLV_CATS_1 22
#endif /* __DT_BINDINGS_INTERCONNECT_QCOM_MSM8909_H */
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
/*
* Qualcomm SM7150 interconnect IDs
*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
*/
#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_SM7150_H
#define __DT_BINDINGS_INTERCONNECT_QCOM_SM7150_H
#define MASTER_A1NOC_CFG 0
#define MASTER_QUP_0 1
#define MASTER_TSIF 2
#define MASTER_EMMC 3
#define MASTER_SDCC_2 4
#define MASTER_SDCC_4 5
#define MASTER_UFS_MEM 6
#define A1NOC_SNOC_SLV 7
#define SLAVE_SERVICE_A1NOC 8
#define MASTER_A2NOC_CFG 0
#define MASTER_QDSS_BAM 1
#define MASTER_QUP_1 2
#define MASTER_CNOC_A2NOC 3
#define MASTER_CRYPTO_CORE_0 4
#define MASTER_IPA 5
#define MASTER_PCIE 6
#define MASTER_QDSS_ETR 7
#define MASTER_USB3 8
#define A2NOC_SNOC_SLV 9
#define SLAVE_ANOC_PCIE_GEM_NOC 10
#define SLAVE_SERVICE_A2NOC 11
#define MASTER_CAMNOC_HF0_UNCOMP 0
#define MASTER_CAMNOC_RT_UNCOMP 1
#define MASTER_CAMNOC_SF_UNCOMP 2
#define MASTER_CAMNOC_NRT_UNCOMP 3
#define SLAVE_CAMNOC_UNCOMP 4
#define MASTER_NPU 0
#define SLAVE_CDSP_GEM_NOC 1
#define MASTER_SPDM 0
#define SNOC_CNOC_MAS 1
#define MASTER_QDSS_DAP 2
#define SLAVE_A1NOC_CFG 3
#define SLAVE_A2NOC_CFG 4
#define SLAVE_AHB2PHY_NORTH 5
#define SLAVE_AHB2PHY_SOUTH 6
#define SLAVE_AHB2PHY_WEST 7
#define SLAVE_AOP 8
#define SLAVE_AOSS 9
#define SLAVE_CAMERA_CFG 10
#define SLAVE_CAMERA_NRT_THROTTLE_CFG 11
#define SLAVE_CAMERA_RT_THROTTLE_CFG 12
#define SLAVE_CLK_CTL 13
#define SLAVE_CDSP_CFG 14
#define SLAVE_RBCPR_CX_CFG 15
#define SLAVE_RBCPR_MX_CFG 16
#define SLAVE_CRYPTO_0_CFG 17
#define SLAVE_CNOC_DDRSS 18
#define SLAVE_DISPLAY_CFG 19
#define SLAVE_DISPLAY_THROTTLE_CFG 20
#define SLAVE_EMMC_CFG 21
#define SLAVE_GLM 22
#define SLAVE_GRAPHICS_3D_CFG 23
#define SLAVE_IMEM_CFG 24
#define SLAVE_IPA_CFG 25
#define SLAVE_CNOC_MNOC_CFG 26
#define SLAVE_PCIE_CFG 27
#define SLAVE_PDM 28
#define SLAVE_PIMEM_CFG 29
#define SLAVE_PRNG 30
#define SLAVE_QDSS_CFG 31
#define SLAVE_QUP_0 32
#define SLAVE_QUP_1 33
#define SLAVE_SDCC_2 34
#define SLAVE_SDCC_4 35
#define SLAVE_SNOC_CFG 36
#define SLAVE_SPDM_WRAPPER 37
#define SLAVE_TCSR 38
#define SLAVE_TLMM_NORTH 39
#define SLAVE_TLMM_SOUTH 40
#define SLAVE_TLMM_WEST 41
#define SLAVE_TSIF 42
#define SLAVE_UFS_MEM_CFG 43
#define SLAVE_USB3 44
#define SLAVE_VENUS_CFG 45
#define SLAVE_VENUS_CVP_THROTTLE_CFG 46
#define SLAVE_VENUS_THROTTLE_CFG 47
#define SLAVE_VSENSE_CTRL_CFG 48
#define SLAVE_CNOC_A2NOC 49
#define SLAVE_SERVICE_CNOC 50
#define MASTER_CNOC_DC_NOC 0
#define SLAVE_GEM_NOC_CFG 1
#define SLAVE_LLCC_CFG 2
#define MASTER_AMPSS_M0 0
#define MASTER_SYS_TCU 1
#define MASTER_GEM_NOC_CFG 2
#define MASTER_COMPUTE_NOC 3
#define MASTER_MNOC_HF_MEM_NOC 4
#define MASTER_MNOC_SF_MEM_NOC 5
#define MASTER_GEM_NOC_PCIE_SNOC 6
#define MASTER_SNOC_GC_MEM_NOC 7
#define MASTER_SNOC_SF_MEM_NOC 8
#define MASTER_GRAPHICS_3D 9
#define SLAVE_MSS_PROC_MS_MPU_CFG 10
#define SLAVE_GEM_NOC_SNOC 11
#define SLAVE_LLCC 12
#define SLAVE_SERVICE_GEM_NOC 13
#define MASTER_LLCC 0
#define SLAVE_EBI_CH0 1
#define MASTER_CNOC_MNOC_CFG 0
#define MASTER_CAMNOC_HF0 1
#define MASTER_CAMNOC_NRT 2
#define MASTER_CAMNOC_RT 3
#define MASTER_CAMNOC_SF 4
#define MASTER_MDP_PORT0 5
#define MASTER_MDP_PORT1 6
#define MASTER_ROTATOR 7
#define MASTER_VIDEO_P0 8
#define MASTER_VIDEO_P1 9
#define MASTER_VIDEO_PROC 10
#define SLAVE_MNOC_SF_MEM_NOC 11
#define SLAVE_MNOC_HF_MEM_NOC 12
#define SLAVE_SERVICE_MNOC 13
#define MASTER_SNOC_CFG 0
#define A1NOC_SNOC_MAS 1
#define A2NOC_SNOC_MAS 2
#define MASTER_GEM_NOC_SNOC 3
#define MASTER_PIMEM 4
#define MASTER_GIC 5
#define SLAVE_APPSS 6
#define SNOC_CNOC_SLV 7
#define SLAVE_SNOC_GEM_NOC_GC 8
#define SLAVE_SNOC_GEM_NOC_SF 9
#define SLAVE_OCIMEM 10
#define SLAVE_PIMEM 11
#define SLAVE_SERVICE_SNOC 12
#define SLAVE_QDSS_STM 13
#define SLAVE_TCU 14
#endif
...@@ -112,11 +112,6 @@ ...@@ -112,11 +112,6 @@
#define SLAVE_GEM_NOC_CNOC 12 #define SLAVE_GEM_NOC_CNOC 12
#define SLAVE_LLCC 13 #define SLAVE_LLCC 13
#define SLAVE_MEM_NOC_PCIE_SNOC 14 #define SLAVE_MEM_NOC_PCIE_SNOC 14
#define MASTER_MNOC_HF_MEM_NOC_DISP 15
#define MASTER_ANOC_PCIE_GEM_NOC_DISP 16
#define SLAVE_LLCC_DISP 17
#define MASTER_ANOC_PCIE_GEM_NOC_PCIE 18
#define SLAVE_LLCC_PCIE 19
#define MASTER_LPIAON_NOC 0 #define MASTER_LPIAON_NOC 0
#define SLAVE_LPASS_GEM_NOC 1 #define SLAVE_LPASS_GEM_NOC 1
...@@ -129,10 +124,6 @@ ...@@ -129,10 +124,6 @@
#define MASTER_LLCC 0 #define MASTER_LLCC 0
#define SLAVE_EBI1 1 #define SLAVE_EBI1 1
#define MASTER_LLCC_DISP 2
#define SLAVE_EBI1_DISP 3
#define MASTER_LLCC_PCIE 4
#define SLAVE_EBI1_PCIE 5
#define MASTER_AV1_ENC 0 #define MASTER_AV1_ENC 0
#define MASTER_CAMNOC_HF 1 #define MASTER_CAMNOC_HF 1
...@@ -147,8 +138,6 @@ ...@@ -147,8 +138,6 @@
#define SLAVE_MNOC_HF_MEM_NOC 10 #define SLAVE_MNOC_HF_MEM_NOC 10
#define SLAVE_MNOC_SF_MEM_NOC 11 #define SLAVE_MNOC_SF_MEM_NOC 11
#define SLAVE_SERVICE_MNOC 12 #define SLAVE_SERVICE_MNOC 12
#define MASTER_MDP_DISP 13
#define SLAVE_MNOC_HF_MEM_NOC_DISP 14
#define MASTER_CDSP_PROC 0 #define MASTER_CDSP_PROC 0
#define SLAVE_CDSP_MEM_NOC 1 #define SLAVE_CDSP_MEM_NOC 1
...@@ -156,18 +145,11 @@ ...@@ -156,18 +145,11 @@
#define MASTER_PCIE_NORTH 0 #define MASTER_PCIE_NORTH 0
#define MASTER_PCIE_SOUTH 1 #define MASTER_PCIE_SOUTH 1
#define SLAVE_ANOC_PCIE_GEM_NOC 2 #define SLAVE_ANOC_PCIE_GEM_NOC 2
#define MASTER_PCIE_NORTH_PCIE 3
#define MASTER_PCIE_SOUTH_PCIE 4
#define SLAVE_ANOC_PCIE_GEM_NOC_PCIE 5
#define MASTER_PCIE_3 0 #define MASTER_PCIE_3 0
#define MASTER_PCIE_4 1 #define MASTER_PCIE_4 1
#define MASTER_PCIE_5 2 #define MASTER_PCIE_5 2
#define SLAVE_PCIE_NORTH 3 #define SLAVE_PCIE_NORTH 3
#define MASTER_PCIE_3_PCIE 4
#define MASTER_PCIE_4_PCIE 5
#define MASTER_PCIE_5_PCIE 6
#define SLAVE_PCIE_NORTH_PCIE 7
#define MASTER_PCIE_0 0 #define MASTER_PCIE_0 0
#define MASTER_PCIE_1 1 #define MASTER_PCIE_1 1
...@@ -175,12 +157,6 @@ ...@@ -175,12 +157,6 @@
#define MASTER_PCIE_6A 3 #define MASTER_PCIE_6A 3
#define MASTER_PCIE_6B 4 #define MASTER_PCIE_6B 4
#define SLAVE_PCIE_SOUTH 5 #define SLAVE_PCIE_SOUTH 5
#define MASTER_PCIE_0_PCIE 6
#define MASTER_PCIE_1_PCIE 7
#define MASTER_PCIE_2_PCIE 8
#define MASTER_PCIE_6A_PCIE 9
#define MASTER_PCIE_6B_PCIE 10
#define SLAVE_PCIE_SOUTH_PCIE 11
#define MASTER_A1NOC_SNOC 0 #define MASTER_A1NOC_SNOC 0
#define MASTER_A2NOC_SNOC 1 #define MASTER_A2NOC_SNOC 1
......
...@@ -36,7 +36,7 @@ struct icc_onecell_data { ...@@ -36,7 +36,7 @@ struct icc_onecell_data {
struct icc_node *nodes[] __counted_by(num_nodes); struct icc_node *nodes[] __counted_by(num_nodes);
}; };
struct icc_node *of_icc_xlate_onecell(struct of_phandle_args *spec, struct icc_node *of_icc_xlate_onecell(const struct of_phandle_args *spec,
void *data); void *data);
/** /**
...@@ -65,8 +65,9 @@ struct icc_provider { ...@@ -65,8 +65,9 @@ struct icc_provider {
u32 peak_bw, u32 *agg_avg, u32 *agg_peak); u32 peak_bw, u32 *agg_avg, u32 *agg_peak);
void (*pre_aggregate)(struct icc_node *node); void (*pre_aggregate)(struct icc_node *node);
int (*get_bw)(struct icc_node *node, u32 *avg, u32 *peak); int (*get_bw)(struct icc_node *node, u32 *avg, u32 *peak);
struct icc_node* (*xlate)(struct of_phandle_args *spec, void *data); struct icc_node* (*xlate)(const struct of_phandle_args *spec, void *data);
struct icc_node_data* (*xlate_extended)(struct of_phandle_args *spec, void *data); struct icc_node_data* (*xlate_extended)(const struct of_phandle_args *spec,
void *data);
struct device *dev; struct device *dev;
int users; int users;
bool inter_set; bool inter_set;
...@@ -124,7 +125,7 @@ int icc_nodes_remove(struct icc_provider *provider); ...@@ -124,7 +125,7 @@ int icc_nodes_remove(struct icc_provider *provider);
void icc_provider_init(struct icc_provider *provider); void icc_provider_init(struct icc_provider *provider);
int icc_provider_register(struct icc_provider *provider); int icc_provider_register(struct icc_provider *provider);
void icc_provider_deregister(struct icc_provider *provider); void icc_provider_deregister(struct icc_provider *provider);
struct icc_node_data *of_icc_get_from_provider(struct of_phandle_args *spec); struct icc_node_data *of_icc_get_from_provider(const struct of_phandle_args *spec);
void icc_sync_state(struct device *dev); void icc_sync_state(struct device *dev);
#else #else
...@@ -171,7 +172,7 @@ static inline int icc_provider_register(struct icc_provider *provider) ...@@ -171,7 +172,7 @@ static inline int icc_provider_register(struct icc_provider *provider)
static inline void icc_provider_deregister(struct icc_provider *provider) { } static inline void icc_provider_deregister(struct icc_provider *provider) { }
static inline struct icc_node_data *of_icc_get_from_provider(struct of_phandle_args *spec) static inline struct icc_node_data *of_icc_get_from_provider(const struct of_phandle_args *spec)
{ {
return ERR_PTR(-ENOTSUPP); return ERR_PTR(-ENOTSUPP);
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment