Fix nxstyle errors in previous commit.

This commit is contained in:
Nathan Hartman 2020-04-12 17:05:52 -04:00 committed by patacongo
parent 743dcd8acf
commit 34113810bd
2 changed files with 45 additions and 45 deletions

View File

@ -124,8 +124,8 @@ static const struct tms570_pinmux_s g_pinmux_table[] =
#define ESM_SR1_PLL1SLIP 0x400
#define ESM_SR4_PLL2SLIP 0x400
#define dcc1CNT1_CLKSRC_PLL1 0x0000a000u
#define dcc1CNT1_CLKSRC_PLL2 0x0000a001u
#define DCC1CNT1_CLKSRC_PLL1 0x0000a000u
#define DCC1CNT1_CLKSRC_PLL2 0x0000a001u
/****************************************************************************
* Name: check_frequency
@ -138,8 +138,7 @@ static uint32_t check_frequency(uint32_t cnt1_clksrc)
{
uint32_t regval = 0;
/* Setup DCC1 */
/* DCC1 Global Control register configuration */
/* Setup DCC1: Global Control register configuration */
regval = (uint32_t)0x5u | /* Disable DCC1 */
(uint32_t)((uint32_t)0x5u << 4u) | /* No Error Interrupt */
@ -193,7 +192,7 @@ static uint32_t check_frequency(uint32_t cnt1_clksrc)
}
/****************************************************************************
* Name: _errata_SSWF021_45_both_plls
* Name: _errata_sswf021_45_both_plls
*
* Description:
* This function is used to verify that PLL1 and PLL2 lock after
@ -203,7 +202,7 @@ static uint32_t check_frequency(uint32_t cnt1_clksrc)
*
****************************************************************************/
uint32_t _errata_SSWF021_45_both_plls(uint32_t count)
uint32_t _errata_sswf021_45_both_plls(uint32_t count)
{
uint32_t failcode;
uint32_t retries;
@ -279,7 +278,7 @@ uint32_t _errata_SSWF021_45_both_plls(uint32_t count)
}
else
{
failcode |= check_frequency(dcc1CNT1_CLKSRC_PLL1);
failcode |= check_frequency(DCC1CNT1_CLKSRC_PLL1);
}
/* If PLL2 valid, check the frequency */
@ -290,7 +289,7 @@ uint32_t _errata_SSWF021_45_both_plls(uint32_t count)
}
else
{
failcode |= (check_frequency(dcc1CNT1_CLKSRC_PLL2) << 1U);
failcode |= (check_frequency(DCC1CNT1_CLKSRC_PLL2) << 1U);
}
if (failcode == 0u)
@ -301,7 +300,7 @@ uint32_t _errata_SSWF021_45_both_plls(uint32_t count)
/* Disable plls */
regval = 0x00000002U | 0x00000040U;
regval = 0x00000002u | 0x00000040u;
putreg32(regval, TMS570_SYS_CSDISSET);
while ((getreg32(TMS570_SYS_CSDIS) & regval) != regval)
@ -314,7 +313,7 @@ uint32_t _errata_SSWF021_45_both_plls(uint32_t count)
/* First set VCLK2 = HCLK */
regval = clkcntrlsave & 0x000F0100U;
regval = clkcntrlsave & 0x000f0100u;
putreg32(regval, TMS570_SYS_CLKCNTL);
putreg32(clkcntrlsave, TMS570_SYS_CLKCNTL);
@ -677,9 +676,9 @@ static void tms570_clocksrc_configure(void)
/* Work Around for Errata SYS#46: Errata Description: Clock Source
* Switching Not Qualified with Clock Source Enable And Clock Source Valid
* Workaround: Always check the CSDIS register to make sure the clock source
* is turned on and check the CSVSTAT register to make sure the clock source
* is valid. Then write to GHVSRC to switch the clock.
* Workaround: Always check the CSDIS register to make sure the clock
* source is turned on and check the CSVSTAT register to make sure the
* clock source is valid. Then write to GHVSRC to switch the clock.
*/
do

View File

@ -76,10 +76,11 @@ void sam_boardinitialize(void)
* Description:
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
* function called board_late_initialize(). board_late_initialize() will
* be called immediately after up_initialize() is called and just before
* the initial application is started. This additional initialization
* phase may be used, for example, to initialize board-specific device
* drivers.
*
****************************************************************************/