Skip to content

Commit e9f901d

Browse files
Sivaprakash MurugesanJassiBrar
authored andcommitted
mailbox: qcom: Add ipq6018 apcs compatible
The Qualcomm ipq6018 has apcs block, add compatible for the same. Also, the ipq6018 apcs provides a clock functionality similar to msm8916 but the clock driver is different. Create a child device based on the apcs compatible for the clock controller functionality. Signed-off-by: Sivaprakash Murugesan <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 9b00793 commit e9f901d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/mailbox/qcom-apcs-ipc-mailbox.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ struct qcom_apcs_ipc_data {
2929
char *clk_name;
3030
};
3131

32+
static const struct qcom_apcs_ipc_data ipq6018_apcs_data = {
33+
.offset = 8, .clk_name = "qcom,apss-ipq6018-clk"
34+
};
35+
3236
static const struct qcom_apcs_ipc_data ipq8074_apcs_data = {
3337
.offset = 8, .clk_name = NULL
3438
};
@@ -139,6 +143,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev)
139143

140144
/* .data is the offset of the ipc register within the global block */
141145
static const struct of_device_id qcom_apcs_ipc_of_match[] = {
146+
{ .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
142147
{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data },
143148
{ .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
144149
{ .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data },

0 commit comments

Comments
 (0)