atsamd: Add support for reference clock selection to SAMD21

Add support for using the internal clocks (with USB clock recovery
mode if available) on the SAMD21.  Don't use the internal clock if the
external crystal is requested (instead use the PLL synced to the
external 32Khz signal).

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-02-21 12:32:51 -05:00
parent d452a1de48
commit da68da7a63
2 changed files with 59 additions and 28 deletions

View File

@@ -54,7 +54,6 @@ config CLOCK_FREQ
default 120000000 if MACH_SAMD51
choice
depends on MACH_SAMD51
prompt "Clock Reference"
config CLOCK_REF_INTERNAL
bool "Internal clock"