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

interconnect: qcom: osm-l3: Add sc8180x support

Add support for the Qualcomm SC8180x platform to the OSM L3 driver.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210725025834.3941777-2-bjorn.andersson@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Bjorn Andersson and committed by
Georgi Djakov
ffef0b13 13fa44c0

+20
+18
drivers/interconnect/qcom/osm-l3.c
··· 15 15 #include <dt-bindings/interconnect/qcom,osm-l3.h> 16 16 17 17 #include "sc7180.h" 18 + #include "sc8180x.h" 18 19 #include "sdm845.h" 19 20 #include "sm8150.h" 20 21 #include "sm8250.h" ··· 109 108 static const struct qcom_icc_desc sc7180_icc_osm_l3 = { 110 109 .nodes = sc7180_osm_l3_nodes, 111 110 .num_nodes = ARRAY_SIZE(sc7180_osm_l3_nodes), 111 + .lut_row_size = OSM_LUT_ROW_SIZE, 112 + .reg_freq_lut = OSM_REG_FREQ_LUT, 113 + .reg_perf_state = OSM_REG_PERF_STATE, 114 + }; 115 + 116 + DEFINE_QNODE(sc8180x_osm_apps_l3, SC8180X_MASTER_OSM_L3_APPS, 32, SC8180X_SLAVE_OSM_L3); 117 + DEFINE_QNODE(sc8180x_osm_l3, SC8180X_SLAVE_OSM_L3, 32); 118 + 119 + static const struct qcom_icc_node *sc8180x_osm_l3_nodes[] = { 120 + [MASTER_OSM_L3_APPS] = &sc8180x_osm_apps_l3, 121 + [SLAVE_OSM_L3] = &sc8180x_osm_l3, 122 + }; 123 + 124 + static const struct qcom_icc_desc sc8180x_icc_osm_l3 = { 125 + .nodes = sc8180x_osm_l3_nodes, 126 + .num_nodes = ARRAY_SIZE(sc8180x_osm_l3_nodes), 112 127 .lut_row_size = OSM_LUT_ROW_SIZE, 113 128 .reg_freq_lut = OSM_REG_FREQ_LUT, 114 129 .reg_perf_state = OSM_REG_PERF_STATE, ··· 328 311 { .compatible = "qcom,sc7180-osm-l3", .data = &sc7180_icc_osm_l3 }, 329 312 { .compatible = "qcom,sdm845-osm-l3", .data = &sdm845_icc_osm_l3 }, 330 313 { .compatible = "qcom,sm8150-osm-l3", .data = &sm8150_icc_osm_l3 }, 314 + { .compatible = "qcom,sc8180x-osm-l3", .data = &sc8180x_icc_osm_l3 }, 331 315 { .compatible = "qcom,sm8250-epss-l3", .data = &sm8250_icc_epss_l3 }, 332 316 { } 333 317 };
+2
drivers/interconnect/qcom/sc8180x.h
··· 168 168 #define SC8180X_SLAVE_EBI_CH0_DISPLAY 158 169 169 #define SC8180X_SLAVE_MNOC_SF_MEM_NOC_DISPLAY 159 170 170 #define SC8180X_SLAVE_MNOC_HF_MEM_NOC_DISPLAY 160 171 + #define SC8180X_MASTER_OSM_L3_APPS 161 172 + #define SC8180X_SLAVE_OSM_L3 162 171 173 172 174 #endif