From fe9ea3b26ce557fa23d972971da7480bebf08b7d Mon Sep 17 00:00:00 2001 From: Ryan QIAN Date: Tue, 9 Oct 2018 10:00:15 +0800 Subject: [PATCH] arch: arm: nxp: imxrt1064: add device support - Add SoC information for RT1064 Signed-off-by: Ryan QIAN --- .../nxp_imx/rt/Kconfig.defconfig.mimxrt1064 | 54 +++++++++++++++++++ soc/arm/nxp_imx/rt/Kconfig.soc | 21 ++++++++ 2 files changed, 75 insertions(+) create mode 100644 soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1064 diff --git a/soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1064 b/soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1064 new file mode 100644 index 00000000000..764f58d5743 --- /dev/null +++ b/soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1064 @@ -0,0 +1,54 @@ +# Kconfig - i.MX RT1064 +# +# Copyright (c) 2018, NXP +# +# SPDX-License-Identifier: Apache-2.0 +# + +if SOC_MIMXRT1064 + +config SOC + string + default "mimxrt1064" + +if CLOCK_CONTROL + +config CLOCK_CONTROL_MCUX_CCM + def_bool y + +endif # CLOCK_CONTROL + +config ARM_DIV + default 1 + +config AHB_DIV + default 0 + +config IPG_DIV + default 3 + +config GPIO + def_bool y + +if GPIO + +config GPIO_MCUX_IGPIO + def_bool y + +endif # GPIO + +if SERIAL + +config UART_MCUX_LPUART + def_bool y + +endif # SERIAL + +if ENTROPY_GENERATOR + +config ENTROPY_MCUX_TRNG + default y + +endif #ENTROPY_MCUX_TRNG + +endif # SOC_MIMXRT1064 diff --git a/soc/arm/nxp_imx/rt/Kconfig.soc b/soc/arm/nxp_imx/rt/Kconfig.soc index b77b774bf2c..db21a5205ac 100644 --- a/soc/arm/nxp_imx/rt/Kconfig.soc +++ b/soc/arm/nxp_imx/rt/Kconfig.soc @@ -82,6 +82,19 @@ config SOC_MIMXRT1062 select INIT_SYS_PLL select INIT_USB1_PLL +config SOC_MIMXRT1064 + bool "SOC_MIMXRT1064" + select HAS_MCUX + select HAS_MCUX_CCM + select HAS_MCUX_IGPIO + select HAS_MCUX_LPUART + select HAS_MCUX_TRNG + select CPU_HAS_FPU + select CPU_HAS_MPU + select INIT_ARM_PLL + select INIT_SYS_PLL + select INIT_USB1_PLL + endchoice if SOC_SERIES_IMX_RT @@ -122,6 +135,12 @@ config SOC_PART_NUMBER_MIMXRT1062CVL5A config SOC_PART_NUMBER_MIMXRT1062DVL6A bool +config SOC_PART_NUMBER_MIMXRT1064CVL5A + bool + +config SOC_PART_NUMBER_MIMXRT1064DVL6A + bool + config SOC_PART_NUMBER_IMX_RT string default "MIMXRT1021CAG4A" if SOC_PART_NUMBER_MIMXRT1021CAG4A @@ -136,6 +155,8 @@ config SOC_PART_NUMBER_IMX_RT default "MIMXRT1061DVL6A" if SOC_PART_NUMBER_MIMXRT1061DVL6A default "MIMXRT1062CVL5A" if SOC_PART_NUMBER_MIMXRT1062CVL5A default "MIMXRT1062DVL6A" if SOC_PART_NUMBER_MIMXRT1062DVL6A + default "MIMXRT1064CVL5A" if SOC_PART_NUMBER_MIMXRT1064CVL5A + default "MIMXRT1064DVL6A" if SOC_PART_NUMBER_MIMXRT1064DVL6A 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