]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/msm/dsi: Add dsi_cfg for APQ8064
authorArchit Taneja <architt@codeaurora.org>
Mon, 12 Oct 2015 05:46:48 +0000 (11:16 +0530)
committerRob Clark <robdclark@gmail.com>
Mon, 14 Dec 2015 15:40:40 +0000 (10:40 -0500)
Add a dsi_cfg entry for APQ8064. Since this is the first DSIv2 chip to
be supported, add a list of bus clocks that are required by the DSIv2
block.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_cfg.c
drivers/gpu/drm/msm/dsi/dsi_cfg.h

index c40044f8a6c030806f2651cf3d6db3b0df150042..2a827d8093a2a0864d018c0320f2f4b7d1935e4b 100644 (file)
 
 #include "dsi_cfg.h"
 
-/* DSI v2 has not been supported by now */
-static const struct msm_dsi_config dsi_v2_cfg = {
+static const char * const dsi_v2_bus_clk_names[] = {
+       "core_mmss_clk", "iface_clk", "bus_clk",
+};
+
+static const struct msm_dsi_config apq8064_dsi_cfg = {
        .io_offset = 0,
+       .reg_cfg = {
+               .num = 3,
+               .regs = {
+                       {"vdda", 1200000, 1200000, 100000, 100},
+                       {"avdd", 3000000, 3000000, 110000, 100},
+                       {"vddio", 1800000, 1800000, 100000, 100},
+               },
+       },
+       .bus_clk_names = dsi_v2_bus_clk_names,
+       .num_bus_clks = ARRAY_SIZE(dsi_v2_bus_clk_names),
 };
 
 static const char * const dsi_6g_bus_clk_names[] = {
@@ -75,7 +88,7 @@ static const struct msm_dsi_config msm8994_dsi_cfg = {
 };
 
 static const struct msm_dsi_cfg_handler dsi_cfg_handlers[] = {
-       {MSM_DSI_VER_MAJOR_V2, U32_MAX, &dsi_v2_cfg},
+       {MSM_DSI_VER_MAJOR_V2, MSM_DSI_V2_VER_MINOR_8064, &apq8064_dsi_cfg},
        {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V1_0,
                                                &msm8974_apq8084_dsi_cfg},
        {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V1_1,
index 5a36836dd6fc93d1123ade99eb35897ee4ca51d6..a68c836744a3d1f223447905b380b5299d5f4d1d 100644 (file)
@@ -25,6 +25,8 @@
 #define MSM_DSI_6G_VER_MINOR_V1_3      0x10030000
 #define MSM_DSI_6G_VER_MINOR_V1_3_1    0x10030001
 
+#define MSM_DSI_V2_VER_MINOR_8064      0x0
+
 #define DSI_6G_REG_SHIFT       4
 
 struct msm_dsi_config {