# HG changeset patch # User Mychaela Falconia # Date 1590348869 0 # Node ID 2863e5e4af4f0842d5d65b8f1f0df5ee09595b70 # Parent a18bf8df5fab30ddc90fa2b18fad4e2a23013fb8 sim.c: speed enhancement change from Magnetite diff -r a18bf8df5fab -r 2863e5e4af4f src/cs/drivers/drv_app/sim/sim.c --- a/src/cs/drivers/drv_app/sim/sim.c Sat May 23 07:21:43 2020 +0000 +++ b/src/cs/drivers/drv_app/sim/sim.c Sun May 24 19:34:29 2020 +0000 @@ -36,11 +36,15 @@ #include "armio/armio.h" #include "ind_os.h" #include "abb/abb.h" //controls level shifter of ABB +#include "ffs/ffs_api.h" /* FreeCalypso addition */ //current voltage mode 3V or 5V, or 1.8V SYS_UWORD8 CurrentVolt; +/* FreeCalypso addition */ +SYS_UWORD8 SIM_allow_speed_enhancement = 1; + #ifdef SIM_DEBUG_TRACE @@ -915,6 +919,9 @@ SIM_PORT *p; volatile SYS_UWORD32 dum; + /* FreeCalypso addition */ + ffs_file_read("/etc/SIM_spenh", &SIM_allow_speed_enhancement, 1); + // Initialize registers p = &(Sim[0]); p->c = (SIM_CONTROLLER *) SIM_CMD; @@ -2440,8 +2447,7 @@ return (0); } -#if 0 // Dmitriy: removed by TI patch - if (TA1 >= 0x94) //speed enhancement + if (TA1 >= 0x94 && SIM_allow_speed_enhancement) { // JYT 26/9/2003 to check correct behavior of the SIM Driver vs the PPS. //#ifdef NOTTOLOADBECAUSENOTTESTED @@ -2456,7 +2462,6 @@ } //#endif } -#endif if ((TA1 == 0x11) || (TA1 == 0x01)) {