This patch adds macro for max number of panels and
modifies exynos_drm_panel_info as an array of maximum
number of panels.
BUG=chrome-os-partner:10851
TEST=used xrandr tool to switch LCD display resolution
between 1366x768 and 1280x720 on daisy.
Signed-off-by: Shirish S <s.shirish@samsung.com>
Change-Id: Ia634ddbf470515082d561e2487ed3e009764c4a8
Reviewed-on: https://gerrit.chromium.org/gerrit/26847
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Commit-Ready: Shirish S <s.shirish@samsung.com>
Tested-by: Shirish S <s.shirish@samsung.com>
#ifdef __KERNEL__
+/* FIMD Panels. */
+#define MAX_NR_PANELS 5
/**
* A structure for lcd panel information.
*
* @bpp: default bit per pixel.
*/
struct exynos_drm_fimd_pdata {
- struct exynos_drm_panel_info panel;
+ struct exynos_drm_panel_info panel[MAX_NR_PANELS];
u32 vidcon0;
u32 vidcon1;
unsigned int default_win;