diff mbox series

[v3,5/5] drm/msm/dp: Add sc8180x DP controllers

Message ID 20211001180058.1021913-6-bjorn.andersson@linaro.org
State New
Headers show
Series drm/msm/dp: Support multiple DP instances and add sc8180x | expand

Commit Message

Bjorn Andersson Oct. 1, 2021, 6 p.m. UTC
The sc8180x has 2 DP and 1 eDP controllers, add support for these to the
DP driver.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

---

Changes since v2:
- None

 drivers/gpu/drm/msm/dp/dp_display.c | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.29.2

Comments

Abhinav Kumar Oct. 5, 2021, 8:20 p.m. UTC | #1
On 2021-10-01 11:00, Bjorn Andersson wrote:
> The sc8180x has 2 DP and 1 eDP controllers, add support for these to 

> the

> DP driver.

> 

> Reviewed-by: Stephen Boyd <swboyd@chromium.org>

> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>

> ---

> 

> Changes since v2:

> - None

> 

>  drivers/gpu/drm/msm/dp/dp_display.c | 7 +++++++

>  1 file changed, 7 insertions(+)

> 

> diff --git a/drivers/gpu/drm/msm/dp/dp_display.c

> b/drivers/gpu/drm/msm/dp/dp_display.c

> index ff3477474c5d..56a79aeffed4 100644

> --- a/drivers/gpu/drm/msm/dp/dp_display.c

> +++ b/drivers/gpu/drm/msm/dp/dp_display.c

> @@ -127,8 +127,15 @@ static const struct msm_dp_config sc7180_dp_cfg = 

> {

>  	.num_descs = 1,

>  };

> 

> +static const struct msm_dp_config sc8180x_dp_cfg = {

> +	.io_start = { 0xae90000, 0xae98000, 0xae9a000 },

> +	.num_descs = 3,

> +};

> +

>  static const struct of_device_id dp_dt_match[] = {

>  	{ .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_cfg },

> +	{ .compatible = "qcom,sc8180x-dp", .data = &sc8180x_dp_cfg },

> +	{ .compatible = "qcom,sc8180x-edp", .data = &sc8180x_dp_cfg },

>  	{}

>  };
diff mbox series

Patch

diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c
index ff3477474c5d..56a79aeffed4 100644
--- a/drivers/gpu/drm/msm/dp/dp_display.c
+++ b/drivers/gpu/drm/msm/dp/dp_display.c
@@ -127,8 +127,15 @@  static const struct msm_dp_config sc7180_dp_cfg = {
 	.num_descs = 1,
 };
 
+static const struct msm_dp_config sc8180x_dp_cfg = {
+	.io_start = { 0xae90000, 0xae98000, 0xae9a000 },
+	.num_descs = 3,
+};
+
 static const struct of_device_id dp_dt_match[] = {
 	{ .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_cfg },
+	{ .compatible = "qcom,sc8180x-dp", .data = &sc8180x_dp_cfg },
+	{ .compatible = "qcom,sc8180x-edp", .data = &sc8180x_dp_cfg },
 	{}
 };