display: Enable venus support for new target.

New target needs support for VENUS color format in display hal.

Change-Id: I72137a3be87f3001e0455a1451c93bd00f4128a3
diff --git a/common.mk b/common.mk
index 78b48dd..ecc2302 100644
--- a/common.mk
+++ b/common.mk
@@ -25,7 +25,7 @@
     common_flags += -D__ARM_HAVE_NEON
 endif
 
-ifeq ($(TARGET_BOARD_PLATFORM), msm8974)
+ifeq ($(call is-board-platform-in-list, msm8974 msm8226), true)
     common_flags += -DVENUS_COLOR_FORMAT
 endif
 
diff --git a/liboverlay/overlayUtils.h b/liboverlay/overlayUtils.h
index 695c50c..a6b27b5 100644
--- a/liboverlay/overlayUtils.h
+++ b/liboverlay/overlayUtils.h
@@ -45,11 +45,6 @@
 #include <utils/Log.h>
 #include "gralloc_priv.h" //for interlace
 
-// Older platforms do not support Venus.
-#ifndef VENUS_COLOR_FORMAT
-#define MDP_Y_CBCR_H2V2_VENUS (MDP_IMGTYPE_LIMIT2 + 1)
-#endif
-
 /*
 *
 * Collection of utilities functions/structs/enums etc...