dev: gcdb: add st7789H2 command mode panel file

Add changes to:
1. add panel header file to support SPI display on
st77889H2 panel
2. add SPI display init and power function
3. remove MIPI display macro to support SPI display.

Change-Id: I6b0af4832cd069b0dc90976715eedb220074e2fd
Signed-off-by: Wenjun Zhang <wjzhan@codeaurora.org>
diff --git a/platform/msm_shared/include/msm_panel.h b/platform/msm_shared/include/msm_panel.h
index f458328..6ca84ac 100644
--- a/platform/msm_shared/include/msm_panel.h
+++ b/platform/msm_shared/include/msm_panel.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -53,6 +53,7 @@
 #define LVDS_PANEL		11	/* LVDS */
 #define EDP_PANEL		12	/* EDP */
 #define QPIC_PANEL		13	/* QPIC */
+#define SPI_PANEL		14
 
 #define DISPLAY_UNKNOWN		0
 #define DISPLAY_1		1
@@ -92,6 +93,21 @@
 	uint32_t rev;
 };
 
+struct mdss_spi_cmd {
+	int size;
+	char *payload;
+	int wait;
+	uint8_t cmds_post_tg;
+};
+
+struct spi_panel_info {
+	int num_of_panel_cmds;
+	struct mdss_spi_cmd *panel_cmds;
+	uint8_t *signature_addr;
+	uint8_t *signature;
+	uint8_t *signature_len;
+};
+
 struct hdmi_panel_info {
 	uint32_t h_back_porch;
 	uint32_t h_front_porch;
@@ -411,6 +427,7 @@
 	struct lvds_panel_info lvds;
 	struct hdmi_panel_info hdmi;
 	struct edp_panel_info edp;
+	struct spi_panel_info spi;
 	struct dsi2HDMI_panel_info adv7533;
 	bool has_bridge_chip;