summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUjwal Patel <ujwalp@codeaurora.org>2013-11-25 13:42:56 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:23:48 -0700
commitb63dcb150b03dd498d09a44abaf4cc82d343fc4b (patch)
treea39c0cdde55187ced6720b5edff3a868204bf137
parentf2916684d454f41ec3b3f6c101ba23e69abc5d77 (diff)
msm: mdss: cleanup MDP3 driver compilation
Enable MDP3 driver compilation only on chip-sets where MDP3 core is present. This helps reduce the size of kernel binary where MDP3 is not present. Change-Id: I357ff73f91e7ee1654a8666a78efebf68a2a8290 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> [cip@codeaurora.org: Resolve updated file locations] Signed-off-by: Clarence Ip <cip@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/Kconfig7
-rw-r--r--drivers/video/fbdev/msm/Makefile4
2 files changed, 9 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/Kconfig b/drivers/video/fbdev/msm/Kconfig
index 915aa386aea4..2fd08f89390d 100644
--- a/drivers/video/fbdev/msm/Kconfig
+++ b/drivers/video/fbdev/msm/Kconfig
@@ -995,4 +995,11 @@ config FB_MSM_MDSS_EDP_PANEL
which runs in Video mode only and is responsible for transmitting
frame buffer from host SOC to eDP display panel.
+config FB_MSM_MDSS_MDP3
+ depends on FB_MSM_MDSS
+ bool "MDP3 display controller"
+ ---help---
+ The MDP3 provides support for an older version display controller
+ included in latest display sub-system, known as MDSS.
+
endif
diff --git a/drivers/video/fbdev/msm/Makefile b/drivers/video/fbdev/msm/Makefile
index 42650a019398..aeef7e00f9ec 100644
--- a/drivers/video/fbdev/msm/Makefile
+++ b/drivers/video/fbdev/msm/Makefile
@@ -2,7 +2,7 @@ ccflags-y := -Idrivers/staging/android
mdss-mdp3-objs = mdp3.o mdp3_dma.o mdp3_ctrl.o
mdss-mdp3-objs += mdp3_ppp.o mdp3_ppp_hwio.o mdp3_ppp_data.o
-obj-$(CONFIG_FB_MSM_MDSS) += mdss-mdp3.o
+obj-$(CONFIG_FB_MSM_MDSS_MDP3) += mdss-mdp3.o
mdss-mdp-objs := mdss_mdp.o mdss_mdp_ctl.o mdss_mdp_pipe.o mdss_mdp_util.o
mdss-mdp-objs += mdss_mdp_pp.o
@@ -19,7 +19,7 @@ obj-$(CONFIG_DEBUG_FS) += mdss_debug.o
endif
dsi-v2-objs = dsi_v2.o dsi_host_v2.o dsi_io_v2.o
-obj-$(CONFIG_FB_MSM_MDSS) += dsi-v2.o
+obj-$(CONFIG_FB_MSM_MDSS_MDP3) += dsi-v2.o
mdss-dsi-objs := mdss_dsi.o mdss_dsi_host.o mdss_dsi_cmd.o
mdss-dsi-objs += mdss_dsi_panel.o