[DSS APP][PDK-6378][PDK-4988]Bug Fixes
authorVivek Dhande <a0132295@ti.com>
Fri, 15 May 2020 18:33:23 +0000 (00:03 +0530)
committerSivaraj R <sivaraj@ti.com>
Mon, 18 May 2020 12:47:41 +0000 (07:47 -0500)
- Fixed a bug for running through DMSC flow
- Added input images for RGB and YUV format testing

Signed-off-by: Vivek Dhande <a0132295@ti.com>
packages/ti/drv/dss/examples/dss_colorbar_test/main_tirtos.c
packages/ti/drv/dss/examples/dss_display_test/main_tirtos.c
packages/ti/drv/dss/examples/dss_input_files/dss_input_files.rar [new file with mode: 0755]

index 69217c932d0f9568f2714e62fe53174025802616..18234c985a107c5c1c07d6f797d2a3251dc1ec76 100755 (executable)
@@ -52,6 +52,9 @@
 #include <ti/board/board.h>
 #include <ti/drv/dss/examples/utils/app_utils.h>
 #include "dss_colorbar_test.h"
+#include <ti/drv/sciclient/sciclient.h>
+#include <ti/csl/soc.h>
+#include <ti/drv/pm/pmlib.h>
 
 /* ========================================================================== */
 /*                           Macros & Typedefs                                */
@@ -112,6 +115,7 @@ int main(void)
 static Void taskFxn(UArg a0, UArg a1)
 {
     Board_initCfg boardCfg;
+    int32_t retVal = CSL_PASS;
 
     boardCfg = BOARD_INIT_PINMUX_CONFIG |
                 BOARD_INIT_UNLOCK_MMR |
@@ -129,7 +133,25 @@ static Void taskFxn(UArg a0, UArg a1)
 #endif
     App_configureSoC();
 
-    Dss_colorbarTest();
+    Sciclient_init(NULL);
+    retVal += Sciclient_pmSetModuleState(TISCI_DEV_DSS0,
+                                   TISCI_MSG_VALUE_DEVICE_SW_STATE_ON,
+                                   TISCI_MSG_FLAG_AOP,
+                                   SCICLIENT_SERVICE_WAIT_FOREVER);
+#if defined (SOC_J721E)
+    retVal += Sciclient_pmSetModuleState(TISCI_DEV_DSS_DSI0,
+                                   TISCI_MSG_VALUE_DEVICE_SW_STATE_ON,
+                                   TISCI_MSG_FLAG_AOP,
+                                   SCICLIENT_SERVICE_WAIT_FOREVER);
+    retVal += Sciclient_pmSetModuleState(TISCI_DEV_DSS_EDP0,
+                                   TISCI_MSG_VALUE_DEVICE_SW_STATE_ON,
+                                   TISCI_MSG_FLAG_AOP,
+                                   SCICLIENT_SERVICE_WAIT_FOREVER);
+#endif
+    if (retVal == CSL_PASS)
+    {
+        Dss_colorbarTest();
+    }
 
     return;
 }
index 08d36a8cdb113f181bf2d232ca00e5716a603b2d..560b45e876b9a111d5c48d744c8043773ecb7997 100755 (executable)
@@ -52,6 +52,9 @@
 #include <ti/board/board.h>
 #include <ti/drv/dss/examples/utils/app_utils.h>
 #include "dss_display_test.h"
+#include <ti/drv/sciclient/sciclient.h>
+#include <ti/csl/soc.h>
+#include <ti/drv/pm/pmlib.h>
 
 /* ========================================================================== */
 /*                           Macros & Typedefs                                */
@@ -111,6 +114,7 @@ int main(void)
 
 static Void taskFxn(UArg a0, UArg a1)
 {
+    int32_t retVal = CSL_PASS;
 #if(1U == DISP_APP_TEST_MULTISYNC)
     uint32_t regVal;
 #endif
@@ -171,7 +175,25 @@ static Void taskFxn(UArg a0, UArg a1)
 #endif
     App_configureSoC();
 
-    Dss_displayTest();
+    Sciclient_init(NULL);
+    retVal += Sciclient_pmSetModuleState(TISCI_DEV_DSS0,
+                                   TISCI_MSG_VALUE_DEVICE_SW_STATE_ON,
+                                   TISCI_MSG_FLAG_AOP,
+                                   SCICLIENT_SERVICE_WAIT_FOREVER);
+#if defined (SOC_J721E)
+    retVal += Sciclient_pmSetModuleState(TISCI_DEV_DSS_DSI0,
+                                   TISCI_MSG_VALUE_DEVICE_SW_STATE_ON,
+                                   TISCI_MSG_FLAG_AOP,
+                                   SCICLIENT_SERVICE_WAIT_FOREVER);
+    retVal += Sciclient_pmSetModuleState(TISCI_DEV_DSS_EDP0,
+                                   TISCI_MSG_VALUE_DEVICE_SW_STATE_ON,
+                                   TISCI_MSG_FLAG_AOP,
+                                   SCICLIENT_SERVICE_WAIT_FOREVER);
+#endif
+    if (retVal == CSL_PASS)
+    {
+        Dss_displayTest();
+    }
 
     return;
 }
diff --git a/packages/ti/drv/dss/examples/dss_input_files/dss_input_files.rar b/packages/ti/drv/dss/examples/dss_input_files/dss_input_files.rar
new file mode 100755 (executable)
index 0000000..98f4691
Binary files /dev/null and b/packages/ti/drv/dss/examples/dss_input_files/dss_input_files.rar differ