nxp_kinetis: Add Kconfig options to select the SoC part number
The KSDK device header files require a preprocessor macro that defines the part number string (e.g., MK64FN1M0VMD12). Create a hidden Kconfig option to hold the part number string, and hidden Kconfig options that the board Kconfig will use to select the specific part number. Change-Id: I612e785026261e425b47b5b7fae0c65b4f94b30b Signed-off-by: Maureen Helm <maureen.helm@nxp.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
00365c188c
commit
2815687186
3 changed files with 52 additions and 0 deletions
|
@ -26,3 +26,11 @@ config SOC_FAMILY
|
||||||
endif
|
endif
|
||||||
|
|
||||||
source "arch/arm/soc/nxp_kinetis/*/Kconfig.soc"
|
source "arch/arm/soc/nxp_kinetis/*/Kconfig.soc"
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER
|
||||||
|
string
|
||||||
|
default SOC_PART_NUMBER_KINETIS_K6X if SOC_SERIES_KINETIS_K6X
|
||||||
|
help
|
||||||
|
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.
|
||||||
|
|
|
@ -26,6 +26,49 @@ endchoice
|
||||||
|
|
||||||
if SOC_SERIES_KINETIS_K6X
|
if SOC_SERIES_KINETIS_K6X
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FN1M0CAJ12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FN1M0VDC12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FN1M0VLL12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FN1M0VLQ12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FN1M0VMD12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FX512VDC12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FX512VLL12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FX512VLQ12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_MK64FX512VMD12
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_PART_NUMBER_KINETIS_K6X
|
||||||
|
string
|
||||||
|
default "MK64FN1M0CAJ12" if SOC_PART_NUMBER_MK64FN1M0CAJ12
|
||||||
|
default "MK64FN1M0VDC12" if SOC_PART_NUMBER_MK64FN1M0VDC12
|
||||||
|
default "MK64FN1M0VLL12" if SOC_PART_NUMBER_MK64FN1M0VLL12
|
||||||
|
default "MK64FN1M0VLQ12" if SOC_PART_NUMBER_MK64FN1M0VLQ12
|
||||||
|
default "MK64FN1M0VMD12" if SOC_PART_NUMBER_MK64FN1M0VMD12
|
||||||
|
default "MK64FX512VDC12" if SOC_PART_NUMBER_MK64FX512VDC12
|
||||||
|
default "MK64FX512VLL12" if SOC_PART_NUMBER_MK64FX512VLL12
|
||||||
|
default "MK64FX512VLQ12" if SOC_PART_NUMBER_MK64FX512VLQ12
|
||||||
|
default "MK64FX512VMD12" if SOC_PART_NUMBER_MK64FX512VMD12
|
||||||
|
help
|
||||||
|
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.
|
||||||
|
|
||||||
config K64_CORE_CLOCK_DIVIDER
|
config K64_CORE_CLOCK_DIVIDER
|
||||||
int
|
int
|
||||||
prompt "Freescale K64 core clock divider"
|
prompt "Freescale K64 core clock divider"
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
config BOARD_FRDM_K64F
|
config BOARD_FRDM_K64F
|
||||||
bool "Freescale FRDM-K64F"
|
bool "Freescale FRDM-K64F"
|
||||||
depends on SOC_SERIES_KINETIS_K6X
|
depends on SOC_SERIES_KINETIS_K6X
|
||||||
|
select SOC_PART_NUMBER_MK64FN1M0VLL12
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue