comparison src/g23m-aci/aci/aci_pei.c @ 70:032a561fab2b

GPF-Riviera sync: make MMI task startup wait for FCHG
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 23 Oct 2020 04:52:28 +0000
parents fa8dc04885d8
children 740a8e8fc9d7
comparison
equal deleted inserted replaced
69:77321341946c 70:032a561fab2b
153 #endif 153 #endif
154 154
155 extern const char firmware_version_str[]; 155 extern const char firmware_version_str[];
156 156
157 #if (MMI != 0) 157 #if (MMI != 0)
158 extern int r2d_is_running; 158 extern int fchg_is_running, r2d_is_running;
159 #endif 159 #endif
160 160
161 161
162 /*==== DEFINE =====================================================*/ 162 /*==== DEFINE =====================================================*/
163 163
1387 } 1387 }
1388 1388
1389 #endif /* TI_PS_HCOMM_CHANGE */ 1389 #endif /* TI_PS_HCOMM_CHANGE */
1390 1390
1391 /* FreeCalypso addition to fix R2D start race condition */ 1391 /* FreeCalypso addition to fix R2D start race condition */
1392 /* wait for FCHG too now that MFW depends on it */
1392 #if (MMI != 0) 1393 #if (MMI != 0)
1393 if (!r2d_is_running) 1394 if (!fchg_is_running || !r2d_is_running)
1394 return PEI_ERROR; 1395 return PEI_ERROR;
1395 #endif 1396 #endif
1396 1397
1397 #ifdef DTI 1398 #ifdef DTI
1398 #ifdef _SIMULATION_ 1399 #ifdef _SIMULATION_