Skip to content

Commit 463f2ea

Browse files
superna9999Georgi Djakov
authored andcommitted
interconnect: qcom: sm8650: add the MASTER_APSS_NOC
Add the MASTER_APSS_NOC interconnect node of the system NoC and the associated QoS configuration. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/20250415-topic-sm8650-upstream-icc-apss-noc-v1-2-9e6bea3943d8@linaro.org Signed-off-by: Georgi Djakov <[email protected]>
1 parent c5c9677 commit 463f2ea

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

drivers/interconnect/qcom/sm8650.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,24 @@ static struct qcom_icc_node qnm_aggre2_noc = {
847847
.links = { SM8650_SLAVE_SNOC_GEM_NOC_SF },
848848
};
849849

850+
static struct qcom_icc_qosbox qnm_apss_noc_qos = {
851+
.num_ports = 1,
852+
.port_offsets = { 0x1c000 },
853+
.prio = 2,
854+
.urg_fwd = 0,
855+
.prio_fwd_disable = 1,
856+
};
857+
858+
static struct qcom_icc_node qnm_apss_noc = {
859+
.name = "qnm_apss_noc",
860+
.id = SM8650_MASTER_APSS_NOC,
861+
.channels = 1,
862+
.buswidth = 4,
863+
.qosbox = &qnm_apss_noc_qos,
864+
.num_links = 1,
865+
.links = { SM8650_SLAVE_SNOC_GEM_NOC_SF },
866+
};
867+
850868
static struct qcom_icc_node qns_a1noc_snoc = {
851869
.name = "qns_a1noc_snoc",
852870
.id = SM8650_SLAVE_A1NOC_SNOC,
@@ -1946,6 +1964,7 @@ static struct qcom_icc_node * const system_noc_nodes[] = {
19461964
[MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
19471965
[MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
19481966
[SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
1967+
[MASTER_APSS_NOC] = &qnm_apss_noc,
19491968
};
19501969

19511970
static const struct qcom_icc_desc sm8650_system_noc = {

drivers/interconnect/qcom/sm8650.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,6 @@
139139
#define SM8650_SLAVE_USB3_0 127
140140
#define SM8650_SLAVE_VENUS_CFG 128
141141
#define SM8650_SLAVE_VSENSE_CTRL_CFG 129
142+
#define SM8650_MASTER_APSS_NOC 130
142143

143144
#endif

0 commit comments

Comments
 (0)