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:
Maureen Helm 2016-06-02 10:29:15 -05:00 committed by Kumar Gala
commit 2815687186
3 changed files with 52 additions and 0 deletions

View file

@ -26,6 +26,49 @@ endchoice
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
int
prompt "Freescale K64 core clock divider"