# HG changeset patch # User Mychaela Falconia # Date 1623261866 0 # Node ID f12872b7eb21ab66806a8640b79283d51f314ff6 # Parent 4f458e31b6e13c4b611dee8955817cc4bdb0a4d2 l1_init.c: sync with Tourmaline: L1 recovery ABB init fix diff -r 4f458e31b6e1 -r f12872b7eb21 src/cs/layer1/cfile/l1_init.c --- a/src/cs/layer1/cfile/l1_init.c Wed Jun 09 18:00:44 2021 +0000 +++ b/src/cs/layer1/cfile/l1_init.c Wed Jun 09 18:04:26 2021 +0000 @@ -722,10 +722,18 @@ Abb->TspEnLevel = SPI_NTSPEN_NEG_LEV; Abb->TspEnForm = SPI_NTSPEN_LEV_TRIG; - SPI_InitDev(Abb); /* Initialize the spi to work with ABB */ + /* + * FreeCalypso change: skip the following two non-semaphore-protected + * steps in the case of L1/DSP recovery, and limit our ABB poking to + * semaphore-protected functions. + */ + if (l1a_l1s_com.recovery_flag == FALSE) + { + SPI_InitDev(Abb); /* Initialize the spi to work with ABB */ + ABB_free_13M(); /* Set up Abb connection (CLK 13M free).*/ + } - ABB_free_13M(); /* Set up Abb connection (CLK 13M free).*/ - Abb_Status = ABB_Read_Status(); /* Aknowledge the Abb status register. */ + Abb_Status = ABB_Read_Status(); /* Aknowledge the Abb status register. */ /*------------------------------------------------------------------*/ /* Add here SW to manage Abb VRPCSTS status register informations */