Kinetis: Use optional BOARD_OSC_CR and BOARD_OSC_DIV in clock configuration
This commit is contained in:
parent
29ef635e89
commit
b6a8db1b39
@ -49,6 +49,7 @@
|
||||
#include "chip/kinetis_pmc.h"
|
||||
#include "chip/kinetis_llwu.h"
|
||||
#include "chip/kinetis_pinmux.h"
|
||||
#include "chip/kinetis_osc.h"
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@ -199,6 +200,18 @@ void kinetis_pllconfig(void)
|
||||
#endif
|
||||
uint8_t regval8;
|
||||
|
||||
#if defined(BOARD_OSC_CR)
|
||||
/* Use complete BOARD_OSC_CR settings */
|
||||
|
||||
putreg8(BOARD_OSC_CR, KINETIS_OSC_CR);
|
||||
#endif
|
||||
|
||||
#if defined(BOARD_OSC_DIV)
|
||||
/* Use complete BOARD_OSC_DIV settings */
|
||||
|
||||
putreg8(BOARD_OSC_DIV, KINETIS_OSC_DIV);
|
||||
#endif
|
||||
|
||||
#if defined(BOARD_MCG_C2)
|
||||
|
||||
/* Use complete BOARD_MCG_C2 settings */
|
||||
|
Loading…
Reference in New Issue
Block a user