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

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 <sivaprak@codeaurora.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Sivaprakash Murugesan and committed by
Jassi Brar
e9f901dc 9b007938

+5
+5
drivers/mailbox/qcom-apcs-ipc-mailbox.c
··· 29 29 char *clk_name; 30 30 }; 31 31 32 + static const struct qcom_apcs_ipc_data ipq6018_apcs_data = { 33 + .offset = 8, .clk_name = "qcom,apss-ipq6018-clk" 34 + }; 35 + 32 36 static const struct qcom_apcs_ipc_data ipq8074_apcs_data = { 33 37 .offset = 8, .clk_name = NULL 34 38 }; ··· 143 139 144 140 /* .data is the offset of the ipc register within the global block */ 145 141 static const struct of_device_id qcom_apcs_ipc_of_match[] = { 142 + { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, 146 143 { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data }, 147 144 { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, 148 145 { .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data },