call a v16mov during gated IMAGE domain initialization if built on VC4
authorchristinaa <kristinaa@tuta.io>
Mon, 9 Jan 2017 01:27:38 +0000 (01:27 +0000)
committerchristinaa <kristinaa@tuta.io>
Mon, 9 Jan 2017 01:27:38 +0000 (01:27 +0000)
drivers/BCM2708PowerManagement.cc

index 3317140..577c6d6 100644 (file)
@@ -196,8 +196,19 @@ struct BCM2708PowerDomainImage : BCM2708PowerDomain {
        void resetPeripheralsUngated() {
                CM_PERIICTL = CM_PASSWORD | CM_PERIICTL_GATE_SET;
 
-               //IODriverLog("vector op call ...");
-               //vector_op_gated();
+#ifdef __VIDEOCORE4__
+               IODriverLog("calling v16mov gated ...");
+
+               /*
+                * don't ask me.
+                */
+               __asm volatile (
+                       "v16mov -, 0 REP32\n"
+                       "v16mov -, 0\n"
+               );
+#endif
+               
+               IODriverLog("ungating and resetting ...");
 
                CM_PERIICTL = CM_PASSWORD;
 
This page took 0.023531 seconds and 4 git commands to generate.