sdm: Add support for flip panel mount in drm DAL
- Define 180 rotation in drm interface
- Read panel rotation from connector info and
populate panel orientation for sdm
Change-Id: Iaf8417f4eb8d3b8dc6f95f783bcb447cad230c64
CRs-fixed: 2051379
diff --git a/libdrmutils/drm_interface.h b/libdrmutils/drm_interface.h
index 46ab782..71767e7 100644
--- a/libdrmutils/drm_interface.h
+++ b/libdrmutils/drm_interface.h
@@ -218,6 +218,7 @@
enum struct DRMRotation {
FLIP_H = 0x1,
FLIP_V = 0x2,
+ ROT_180 = FLIP_H | FLIP_V,
ROT_90 = 0x4,
};
@@ -358,6 +359,7 @@
int wmin;
int hmin;
bool roi_merge;
+ DRMRotation panel_orientation;
};
/* Identifier token for a display */