From 5b62ea0e7ab8998023661d380ffc4daf66eb7ccb Mon Sep 17 00:00:00 2001 From: Ryan QIAN Date: Mon, 3 Sep 2018 21:24:50 +0800 Subject: [PATCH] arch: arm: nxp: imxrt1060: add device support - Add SoC information for RT1060 Signed-off-by: Ryan QIAN --- .../nxp_imx/rt/Kconfig.defconfig.mimxrt1062 | 47 +++++++++++++++++++ soc/arm/nxp_imx/rt/Kconfig.soc | 40 ++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1062 diff --git a/soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1062 b/soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1062 new file mode 100644 index 00000000000..a266e580476 --- /dev/null +++ b/soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1062 @@ -0,0 +1,47 @@ +# Kconfig - i.MX RT1062 +# +# Copyright (c) 2018, NXP +# +# SPDX-License-Identifier: Apache-2.0 +# + +if SOC_MIMXRT1062 + +config SOC + string + default "mimxrt1062" + +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 + +endif # SOC_MIMXRT1062 diff --git a/soc/arm/nxp_imx/rt/Kconfig.soc b/soc/arm/nxp_imx/rt/Kconfig.soc index bf1f18bbb53..4affd3ee341 100644 --- a/soc/arm/nxp_imx/rt/Kconfig.soc +++ b/soc/arm/nxp_imx/rt/Kconfig.soc @@ -35,6 +35,30 @@ config SOC_MIMXRT1052 select INIT_SYS_PLL select INIT_USB1_PLL +config SOC_MIMXRT1061 + bool "SOC_MIMXRT1061" + select HAS_MCUX + select HAS_MCUX_CCM + select HAS_MCUX_IGPIO + select HAS_MCUX_LPUART + select CPU_HAS_FPU + select CPU_HAS_MPU + select INIT_ARM_PLL + select INIT_SYS_PLL + select INIT_USB1_PLL + +config SOC_MIMXRT1062 + bool "SOC_MIMXRT1062" + select HAS_MCUX + select HAS_MCUX_CCM + select HAS_MCUX_IGPIO + select HAS_MCUX_LPUART + 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 @@ -51,12 +75,28 @@ config SOC_PART_NUMBER_MIMXRT1052CVL5A config SOC_PART_NUMBER_MIMXRT1052DVL6A bool +config SOC_PART_NUMBER_MIMXRT1061CVL5A + bool + +config SOC_PART_NUMBER_MIMXRT1061DVL6A + bool + +config SOC_PART_NUMBER_MIMXRT1062CVL5A + bool + +config SOC_PART_NUMBER_MIMXRT1062DVL6A + bool + config SOC_PART_NUMBER_IMX_RT string default "MIMXRT1051CVL5A" if SOC_PART_NUMBER_MIMXRT1051CVL5A default "MIMXRT1051DVL6A" if SOC_PART_NUMBER_MIMXRT1051DVL6A default "MIMXRT1052CVL5A" if SOC_PART_NUMBER_MIMXRT1052CVL5A default "MIMXRT1052DVL6A" if SOC_PART_NUMBER_MIMXRT1052DVL6A + default "MIMXRT1061CVL5A" if SOC_PART_NUMBER_MIMXRT1061CVL5A + default "MIMXRT1061DVL6A" if SOC_PART_NUMBER_MIMXRT1061DVL6A + default "MIMXRT1062CVL5A" if SOC_PART_NUMBER_MIMXRT1062CVL5A + default "MIMXRT1062DVL6A" if SOC_PART_NUMBER_MIMXRT1062DVL6A 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