2016-04-03 11:35:35 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
2016-07-20 05:09:07 +08:00
|
|
|
# Copyright (c) 2016, Freescale Semiconductor, Inc.
|
2016-04-03 11:35:35 +08:00
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-04-03 11:35:35 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
config SOC_FAMILY_KINETIS
|
|
|
|
bool
|
2018-04-27 01:59:58 +08:00
|
|
|
select HAS_SEGGER_RTT
|
2016-04-03 11:35:35 +08:00
|
|
|
# omit prompt to signify a "hidden" option
|
|
|
|
|
|
|
|
if SOC_FAMILY_KINETIS
|
|
|
|
config SOC_FAMILY
|
|
|
|
string
|
|
|
|
default "nxp_kinetis"
|
|
|
|
|
2018-09-04 04:47:02 +08:00
|
|
|
source "soc/arm/nxp_kinetis/*/Kconfig.soc"
|
2016-06-02 23:29:15 +08:00
|
|
|
|
|
|
|
config SOC_PART_NUMBER
|
|
|
|
string
|
|
|
|
default SOC_PART_NUMBER_KINETIS_K6X if SOC_SERIES_KINETIS_K6X
|
2017-01-18 06:49:16 +08:00
|
|
|
default SOC_PART_NUMBER_KINETIS_KWX if SOC_SERIES_KINETIS_KWX
|
2017-04-01 07:07:45 +08:00
|
|
|
default SOC_PART_NUMBER_KINETIS_KL2X if SOC_SERIES_KINETIS_KL2X
|
2016-06-02 23:29:15 +08:00
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
This string holds the full part number of the SoC. It is a hidden option
|
|
|
|
that you should not set directly. The part number selection choice defines
|
|
|
|
the default value for this string.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
config HAS_OSC
|
|
|
|
bool
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Set if the oscillator (OSC) module is present in the SoC.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
config HAS_MCG
|
|
|
|
bool
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Set if the multipurpose clock generator (MCG) module is present in the SoC.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
if HAS_OSC
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Oscillator Mode Selection"
|
|
|
|
default OSC_EXTERNAL
|
|
|
|
|
|
|
|
config OSC_EXTERNAL
|
|
|
|
bool "External reference clock"
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Set this option to use the oscillator in external reference clock mode.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
config OSC_LOW_POWER
|
|
|
|
bool "Low power oscillator"
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Set this option to use the oscillator in low-power mode.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
config OSC_HIGH_GAIN
|
|
|
|
bool "High gain oscillator"
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Set this option to use the oscillator in high-gain mode.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config OSC_XTAL0_FREQ
|
|
|
|
int "External oscillator frequency"
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Set the external oscillator frequency in Hz. This should be set by the
|
|
|
|
board's defconfig.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
endif # HAS_OSC
|
|
|
|
|
|
|
|
if HAS_MCG
|
|
|
|
|
|
|
|
config MCG_PRDIV0
|
|
|
|
hex "PLL external reference divider"
|
|
|
|
range 0 0x18
|
|
|
|
default 0
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Selects the amount to divide down the external reference clock for the PLL.
|
|
|
|
The resulting frequency must be in the range of 2 MHz to 4 MHz.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
config MCG_VDIV0
|
|
|
|
hex "VCO 0 divider"
|
|
|
|
range 0 0x1F
|
|
|
|
default 0
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Selects the amount to divide the VCO output of the PLL. The VDIV 0 bits
|
|
|
|
establish the multiplication factor (M) applied to the reference clock
|
|
|
|
frequency.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
|
|
|
config MCG_FCRDIV
|
|
|
|
int "Fast internal reference clock divider"
|
|
|
|
range 0 7
|
|
|
|
default 1
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Selects the amount to divide down the fast internal reference clock. The
|
|
|
|
resulting frequency must be in the range 31.25 kHz to 4 MHz.
|
2016-07-20 05:09:07 +08:00
|
|
|
|
2017-01-18 06:49:16 +08:00
|
|
|
config MCG_FRDIV
|
|
|
|
int "FLL external reference divider"
|
|
|
|
range 0 7
|
|
|
|
default 0
|
|
|
|
help
|
2017-03-01 16:58:34 +08:00
|
|
|
Selects the amount to divide down the external reference clock for the
|
|
|
|
FLL. The resulting frequency must be in the range 31.25 kHz to 39.0625
|
|
|
|
kHz.
|
2017-01-18 06:49:16 +08:00
|
|
|
|
2016-07-20 05:09:07 +08:00
|
|
|
endif # HAS_MCG
|
2018-05-10 23:17:19 +08:00
|
|
|
endif # SOC_FAMILY_KINETIS
|