dev: gcdb: Add memory write command on spi post_on for GC9305
For GC9305 panel, need to send the memory write command(0x2C)
before sending pixel data, add memory write command into SPI
display post_on to keep panel continue to receive pixel data.
Change-Id: Ia2d9b3458a5d2e03f117f7f97e34403820bc1c29
diff --git a/dev/gcdb/display/include/panel_gc9305_qvga_spi_cmd.h b/dev/gcdb/display/include/panel_gc9305_qvga_spi_cmd.h
index 4c05ced..01f5839 100644
--- a/dev/gcdb/display/include/panel_gc9305_qvga_spi_cmd.h
+++ b/dev/gcdb/display/include/panel_gc9305_qvga_spi_cmd.h
@@ -195,6 +195,10 @@
0x2c,
};
+static char gc9305_qvga_cmd_on_cmd32[] = {
+ 0x2c,
+};
+
static struct mdss_spi_cmd gc9305_qvga_cmd_on_command[] = {
{0x01, gc9305_qvga_cmd_on_cmd0, 0x00, 0},
{0x01, gc9305_qvga_cmd_on_cmd1, 0x00, 0},
@@ -227,10 +231,11 @@
{0x07, gc9305_qvga_cmd_on_cmd28, 0x00, 0},
{0x01, gc9305_qvga_cmd_on_cmd29, 0x78, 1},
{0x01, gc9305_qvga_cmd_on_cmd30, 0x32, 1},
- {0x01, gc9305_qvga_cmd_on_cmd31, 0x00, 0}
+ {0x01, gc9305_qvga_cmd_on_cmd31, 0x00, 0},
+ {0x01, gc9305_qvga_cmd_on_cmd32, 0x00, 1}
};
-#define GC9305_QVGA_CMD_ON_COMMAND 32
+#define GC9305_QVGA_CMD_ON_COMMAND 33
static char gc9305_qvga_cmdoff_cmd0[] = {