Skip to content

Commit f995194

Browse files
Sibi SankarGeorgi Djakov
authored andcommitted
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>
1 parent 768220b commit f995194

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

drivers/interconnect/qcom/osm-l3.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "sc7180.h"
1818
#include "sdm845.h"
19+
#include "sm8150.h"
1920

2021
#define LUT_MAX_ENTRIES 40U
2122
#define LUT_SRC GENMASK(31, 30)
@@ -96,6 +97,19 @@ static const struct qcom_icc_desc sc7180_icc_osm_l3 = {
9697
.num_nodes = ARRAY_SIZE(sc7180_osm_l3_nodes),
9798
};
9899

100+
DEFINE_QNODE(sm8150_osm_apps_l3, SM8150_MASTER_OSM_L3_APPS, 32, SM8150_SLAVE_OSM_L3);
101+
DEFINE_QNODE(sm8150_osm_l3, SM8150_SLAVE_OSM_L3, 32);
102+
103+
static struct qcom_icc_node *sm8150_osm_l3_nodes[] = {
104+
[MASTER_OSM_L3_APPS] = &sm8150_osm_apps_l3,
105+
[SLAVE_OSM_L3] = &sm8150_osm_l3,
106+
};
107+
108+
static const struct qcom_icc_desc sm8150_icc_osm_l3 = {
109+
.nodes = sm8150_osm_l3_nodes,
110+
.num_nodes = ARRAY_SIZE(sm8150_osm_l3_nodes),
111+
};
112+
99113
static int qcom_icc_set(struct icc_node *src, struct icc_node *dst)
100114
{
101115
struct qcom_osm_l3_icc_provider *qp;
@@ -258,6 +272,7 @@ static int qcom_osm_l3_probe(struct platform_device *pdev)
258272
static const struct of_device_id osm_l3_of_match[] = {
259273
{ .compatible = "qcom,sc7180-osm-l3", .data = &sc7180_icc_osm_l3 },
260274
{ .compatible = "qcom,sdm845-osm-l3", .data = &sdm845_icc_osm_l3 },
275+
{ .compatible = "qcom,sm8150-osm-l3", .data = &sm8150_icc_osm_l3 },
261276
{ }
262277
};
263278
MODULE_DEVICE_TABLE(of, osm_l3_of_match);

drivers/interconnect/qcom/sm8150.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,7 @@
148148
#define SM8150_SLAVE_VSENSE_CTRL_CFG 137
149149
#define SM8150_SNOC_CNOC_MAS 138
150150
#define SM8150_SNOC_CNOC_SLV 139
151+
#define SM8150_MASTER_OSM_L3_APPS 140
152+
#define SM8150_SLAVE_OSM_L3 141
151153

152154
#endif

0 commit comments

Comments
 (0)