Kinetis: Use optional BOARD_OSC_CR and BOARD_OSC_DIV in clock configuration

This commit is contained in:
David Sidrane 2017-05-05 07:18:39 -06:00 committed by Gregory Nutt
parent 29ef635e89
commit b6a8db1b39

View File

@ -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 */