comparison src/cs/layer1/cfile/l1_init.c @ 699:f12872b7eb21

l1_init.c: sync with Tourmaline: L1 recovery ABB init fix
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 09 Jun 2021 18:04:26 +0000
parents 11e279107681
children
comparison
equal deleted inserted replaced
698:4f458e31b6e1 699:f12872b7eb21
720 Abb->DevId = ABB; 720 Abb->DevId = ABB;
721 Abb->ClkEdge = SPI_CLK_EDG_RISE; 721 Abb->ClkEdge = SPI_CLK_EDG_RISE;
722 Abb->TspEnLevel = SPI_NTSPEN_NEG_LEV; 722 Abb->TspEnLevel = SPI_NTSPEN_NEG_LEV;
723 Abb->TspEnForm = SPI_NTSPEN_LEV_TRIG; 723 Abb->TspEnForm = SPI_NTSPEN_LEV_TRIG;
724 724
725 SPI_InitDev(Abb); /* Initialize the spi to work with ABB */ 725 /*
726 726 * FreeCalypso change: skip the following two non-semaphore-protected
727 ABB_free_13M(); /* Set up Abb connection (CLK 13M free).*/ 727 * steps in the case of L1/DSP recovery, and limit our ABB poking to
728 Abb_Status = ABB_Read_Status(); /* Aknowledge the Abb status register. */ 728 * semaphore-protected functions.
729 */
730 if (l1a_l1s_com.recovery_flag == FALSE)
731 {
732 SPI_InitDev(Abb); /* Initialize the spi to work with ABB */
733 ABB_free_13M(); /* Set up Abb connection (CLK 13M free).*/
734 }
735
736 Abb_Status = ABB_Read_Status(); /* Aknowledge the Abb status register. */
729 737
730 /*------------------------------------------------------------------*/ 738 /*------------------------------------------------------------------*/
731 /* Add here SW to manage Abb VRPCSTS status register informations */ 739 /* Add here SW to manage Abb VRPCSTS status register informations */
732 /*------------------------------------------------------------------*/ 740 /*------------------------------------------------------------------*/
733 741