From 0062372af1dab860c497a461b2399259c2f4f222 Mon Sep 17 00:00:00 2001 From: Hake Huang Date: Mon, 24 Aug 2020 17:21:04 +0800 Subject: [PATCH] adc: add soc config for adc update k8x series to support edma and pit Signed-off-by: Hake Huang --- soc/arm/nxp_kinetis/k8x/Kconfig.series | 2 ++ soc/arm/nxp_kinetis/k8x/Kconfig.soc | 36 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/soc/arm/nxp_kinetis/k8x/Kconfig.series b/soc/arm/nxp_kinetis/k8x/Kconfig.series index 5403373317a..d7cb9b2d1eb 100644 --- a/soc/arm/nxp_kinetis/k8x/Kconfig.series +++ b/soc/arm/nxp_kinetis/k8x/Kconfig.series @@ -23,5 +23,7 @@ config SOC_SERIES_KINETIS_K8X select HAS_MCUX_TRNG select HAS_OSC select HAS_MCG + select HAS_MCUX_EDMA + select HAS_MCUX_PIT help Enable support for Kinetis K8x MCU series diff --git a/soc/arm/nxp_kinetis/k8x/Kconfig.soc b/soc/arm/nxp_kinetis/k8x/Kconfig.soc index cf2e6e8e03f..286df320bc2 100644 --- a/soc/arm/nxp_kinetis/k8x/Kconfig.soc +++ b/soc/arm/nxp_kinetis/k8x/Kconfig.soc @@ -41,4 +41,40 @@ config SOC_PART_NUMBER_KINETIS_K8X number selection choice defines the default value for this string. +config K8X_CORE_CLOCK_DIVIDER + int "Freescale K8x core clock divider" + default 1 + help + This option specifies the divide value for the K8x processor core clock + from the system clock. + +config K8X_BUS_CLOCK_DIVIDER + int "Freescale K8x bus clock divider" + default 2 + help + This option specifies the divide value for the K8x bus clock from the + system clock. + +config K8X_FLEXBUS_CLOCK_DIVIDER + int "Freescale K8x FlexBus clock divider" + default 2 + help + This option specifies the divide value for the K8x FlexBus clock from the + system clock. + +config K8X_FLASH_CLOCK_DIVIDER + int "Freescale K8x flash clock divider" + default 5 + help + This option specifies the divide value for the K8x flash clock from the + system clock. + +config DMA_MCUX_EDMA + default y if HAS_MCUX_EDMA + depends on DMA + +config COUNTER_MCUX_PIT + default y if HAS_MCUX_PIT + depends on COUNTER + endif # SOC_SERIES_KINETIS_K8X