Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

interconnect: qcom: Add OSM L3 support on SM8150

Add Operation State Manager (OSM) L3 interconnect provider support on
SM8150 SoCs.

Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200801123049.32398-3-sibis@codeaurora.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>

authored by

Sibi Sankar and committed by
Georgi Djakov
f9951945 768220bb

+17
+15
drivers/interconnect/qcom/osm-l3.c
··· 16 16 17 17 #include "sc7180.h" 18 18 #include "sdm845.h" 19 + #include "sm8150.h" 19 20 20 21 #define LUT_MAX_ENTRIES 40U 21 22 #define LUT_SRC GENMASK(31, 30) ··· 95 94 static const struct qcom_icc_desc sc7180_icc_osm_l3 = { 96 95 .nodes = sc7180_osm_l3_nodes, 97 96 .num_nodes = ARRAY_SIZE(sc7180_osm_l3_nodes), 97 + }; 98 + 99 + DEFINE_QNODE(sm8150_osm_apps_l3, SM8150_MASTER_OSM_L3_APPS, 32, SM8150_SLAVE_OSM_L3); 100 + DEFINE_QNODE(sm8150_osm_l3, SM8150_SLAVE_OSM_L3, 32); 101 + 102 + static struct qcom_icc_node *sm8150_osm_l3_nodes[] = { 103 + [MASTER_OSM_L3_APPS] = &sm8150_osm_apps_l3, 104 + [SLAVE_OSM_L3] = &sm8150_osm_l3, 105 + }; 106 + 107 + static const struct qcom_icc_desc sm8150_icc_osm_l3 = { 108 + .nodes = sm8150_osm_l3_nodes, 109 + .num_nodes = ARRAY_SIZE(sm8150_osm_l3_nodes), 98 110 }; 99 111 100 112 static int qcom_icc_set(struct icc_node *src, struct icc_node *dst) ··· 272 258 static const struct of_device_id osm_l3_of_match[] = { 273 259 { .compatible = "qcom,sc7180-osm-l3", .data = &sc7180_icc_osm_l3 }, 274 260 { .compatible = "qcom,sdm845-osm-l3", .data = &sdm845_icc_osm_l3 }, 261 + { .compatible = "qcom,sm8150-osm-l3", .data = &sm8150_icc_osm_l3 }, 275 262 { } 276 263 }; 277 264 MODULE_DEVICE_TABLE(of, osm_l3_of_match);
+2
drivers/interconnect/qcom/sm8150.h
··· 148 148 #define SM8150_SLAVE_VSENSE_CTRL_CFG 137 149 149 #define SM8150_SNOC_CNOC_MAS 138 150 150 #define SM8150_SNOC_CNOC_SLV 139 151 + #define SM8150_MASTER_OSM_L3_APPS 140 152 + #define SM8150_SLAVE_OSM_L3 141 151 153 152 154 #endif