Skip to content

Commit ffef0b1

Browse files
anderssonGeorgi Djakov
authored andcommitted
interconnect: qcom: osm-l3: Add sc8180x support
Add support for the Qualcomm SC8180x platform to the OSM L3 driver. Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 13fa44c commit ffef0b1

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

drivers/interconnect/qcom/osm-l3.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <dt-bindings/interconnect/qcom,osm-l3.h>
1616

1717
#include "sc7180.h"
18+
#include "sc8180x.h"
1819
#include "sdm845.h"
1920
#include "sm8150.h"
2021
#include "sm8250.h"
@@ -113,6 +114,22 @@ static const struct qcom_icc_desc sc7180_icc_osm_l3 = {
113114
.reg_perf_state = OSM_REG_PERF_STATE,
114115
};
115116

117+
DEFINE_QNODE(sc8180x_osm_apps_l3, SC8180X_MASTER_OSM_L3_APPS, 32, SC8180X_SLAVE_OSM_L3);
118+
DEFINE_QNODE(sc8180x_osm_l3, SC8180X_SLAVE_OSM_L3, 32);
119+
120+
static const struct qcom_icc_node *sc8180x_osm_l3_nodes[] = {
121+
[MASTER_OSM_L3_APPS] = &sc8180x_osm_apps_l3,
122+
[SLAVE_OSM_L3] = &sc8180x_osm_l3,
123+
};
124+
125+
static const struct qcom_icc_desc sc8180x_icc_osm_l3 = {
126+
.nodes = sc8180x_osm_l3_nodes,
127+
.num_nodes = ARRAY_SIZE(sc8180x_osm_l3_nodes),
128+
.lut_row_size = OSM_LUT_ROW_SIZE,
129+
.reg_freq_lut = OSM_REG_FREQ_LUT,
130+
.reg_perf_state = OSM_REG_PERF_STATE,
131+
};
132+
116133
DEFINE_QNODE(sm8150_osm_apps_l3, SM8150_MASTER_OSM_L3_APPS, 32, SM8150_SLAVE_OSM_L3);
117134
DEFINE_QNODE(sm8150_osm_l3, SM8150_SLAVE_OSM_L3, 32);
118135

@@ -311,6 +328,7 @@ static const struct of_device_id osm_l3_of_match[] = {
311328
{ .compatible = "qcom,sc7180-osm-l3", .data = &sc7180_icc_osm_l3 },
312329
{ .compatible = "qcom,sdm845-osm-l3", .data = &sdm845_icc_osm_l3 },
313330
{ .compatible = "qcom,sm8150-osm-l3", .data = &sm8150_icc_osm_l3 },
331+
{ .compatible = "qcom,sc8180x-osm-l3", .data = &sc8180x_icc_osm_l3 },
314332
{ .compatible = "qcom,sm8250-epss-l3", .data = &sm8250_icc_epss_l3 },
315333
{ }
316334
};

drivers/interconnect/qcom/sc8180x.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,7 @@
168168
#define SC8180X_SLAVE_EBI_CH0_DISPLAY 158
169169
#define SC8180X_SLAVE_MNOC_SF_MEM_NOC_DISPLAY 159
170170
#define SC8180X_SLAVE_MNOC_HF_MEM_NOC_DISPLAY 160
171+
#define SC8180X_MASTER_OSM_L3_APPS 161
172+
#define SC8180X_SLAVE_OSM_L3 162
171173

172174
#endif

0 commit comments

Comments
 (0)