soc: imx_rt: Enable IMX.RT General Power Controller Driver

GPC driver is used for power management operations on RT series SoCs.
Enable inclusion of the driver into the build.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2021-12-14 10:26:06 -06:00 committed by Anas Nashif
commit f5ebc30087
4 changed files with 17 additions and 12 deletions

View file

@ -136,6 +136,11 @@ config HAS_MCUX_GPT
help help
Set if the general purpose timer (GPT) module is present in the SoC. Set if the general purpose timer (GPT) module is present in the SoC.
config HAS_MCUX_GPC
bool
help
Set if the general power controller (GPC) module is present in the SoC.
config HAS_MCUX_SNVS config HAS_MCUX_SNVS
bool bool
help help

View file

@ -95,6 +95,10 @@ config WDT_MCUX_IMX_WDOG
default y default y
depends on WATCHDOG depends on WATCHDOG
config PM_MCUX_GPC
default y if HAS_MCUX_GPC
depends on SOC_SERIES_IMX_RT11XX && PM
if CODE_SEMC if CODE_SEMC
config FLASH_SIZE config FLASH_SIZE
@ -198,17 +202,6 @@ config TEST_EXTRA_STACKSIZE
default 1024 default 1024
endif # MBEDTLS endif # MBEDTLS
if MCUX_GPT_TIMER
# set the tick per sec as a divider of the GPT clock source
config SYS_CLOCK_TICKS_PER_SEC
default 8192
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 32786
endif #MCUX_GPT_TIMER
source "soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt*" source "soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt*"
endif # SOC_SERIES_IMX_RT endif # SOC_SERIES_IMX_RT

View file

@ -295,6 +295,7 @@ config SOC_MIMXRT1176_CM7
select HAS_MCUX_USDHC1 select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2 select HAS_MCUX_USDHC2
select HAS_MCUX_ENET select HAS_MCUX_ENET
select HAS_MCUX_GPC
config SOC_MIMXRT1176_CM4 config SOC_MIMXRT1176_CM4
bool "SOC_MIMXRT1176_CM4" bool "SOC_MIMXRT1176_CM4"
@ -319,6 +320,7 @@ config SOC_MIMXRT1176_CM4
select HAS_MCUX_USDHC1 select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2 select HAS_MCUX_USDHC2
select HAS_MCUX_ENET select HAS_MCUX_ENET
select HAS_MCUX_GPC
config SOC_MIMXRT1166_CM7 config SOC_MIMXRT1166_CM7
bool "SOC_MIMXRT1166_CM7" bool "SOC_MIMXRT1166_CM7"
@ -350,6 +352,7 @@ config SOC_MIMXRT1166_CM7
select HAS_MCUX_USDHC1 select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2 select HAS_MCUX_USDHC2
select HAS_MCUX_ENET select HAS_MCUX_ENET
select HAS_MCUX_GPC
config SOC_MIMXRT1166_CM4 config SOC_MIMXRT1166_CM4
@ -375,6 +378,7 @@ config SOC_MIMXRT1166_CM4
select HAS_MCUX_USDHC1 select HAS_MCUX_USDHC1
select HAS_MCUX_USDHC2 select HAS_MCUX_USDHC2
select HAS_MCUX_ENET select HAS_MCUX_ENET
select HAS_MCUX_GPC
endchoice endchoice
@ -598,6 +602,9 @@ config BYPASS_LDO_LPSR
config ADJUST_LDO config ADJUST_LDO
bool "Adjust LDO setting" bool "Adjust LDO setting"
config PM_MCUX_GPC
bool "MCUX general power controller driver"
menuconfig NXP_IMX_RT_BOOT_HEADER menuconfig NXP_IMX_RT_BOOT_HEADER
bool "Enable the boot header" bool "Enable the boot header"
depends on !BOOTLOADER_MCUBOOT depends on !BOOTLOADER_MCUBOOT

View file

@ -98,7 +98,7 @@ manifest:
groups: groups:
- hal - hal
- name: hal_nxp - name: hal_nxp
revision: 66db7c2a57ec1adfd3574169346ed3af9bf17c0b revision: 36ef159c6b3aaf023e89b48cce7cdc34899ae650
path: modules/hal/nxp path: modules/hal/nxp
groups: groups:
- hal - hal