Fix a recently introduced typo that was being masked by some bad conditional compilation
This commit is contained in:
parent
9c30888fd6
commit
0fcc0adaa2
@ -53,8 +53,6 @@
|
|||||||
|
|
||||||
#include "sam_pck.h"
|
#include "sam_pck.h"
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_ISI
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -118,8 +116,13 @@ uint32_t sam_pck_configure(enum pckid_e pckid, enum pckid_clksrc_e clksrc,
|
|||||||
/* Pick the slow clock */
|
/* Pick the slow clock */
|
||||||
|
|
||||||
regval = PMC_PCK_CSS_SLOW;
|
regval = PMC_PCK_CSS_SLOW;
|
||||||
clkin = BOARD_SCK_FREQUENCY
|
clkin = BOARD_SLOWCLK_FREQUENCY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If the source is not the slow clock, then pick either the MCK or the
|
||||||
|
* PLLACK, whichever will best realize the target frequency.
|
||||||
|
*/
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DEBUGASSERT(BOARD_MCK_FREQUENCY < BOARD_PLLA_FREQUENCY);
|
DEBUGASSERT(BOARD_MCK_FREQUENCY < BOARD_PLLA_FREQUENCY);
|
||||||
@ -254,4 +257,3 @@ void sam_pck_enable(enum pckid_e pckid, bool enable)
|
|||||||
putreg32(regval, regaddr);
|
putreg32(regval, regaddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_SAMA5_ISI */
|
|
||||||
|
Loading…
Reference in New Issue
Block a user