Commit bd10f930 authored by Jason Yu's avatar Jason Yu Committed by Henrik Brix Andersen
Browse files

drivers: hwinfo: mcux_src_rev2: Change to use dts as dependency



Originally the driver is selected if `HAS_MCUX_SRC_V2` is
selected in SOC level kConfig.
Change to use dts to mark the driver is avaiable for some SOC.

Signed-off-by: default avatarJason Yu <zejiang.yu@nxp.com>
parent 93edbeba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
config HWINFO_MCUX_SRC_V2
	bool "NXP SRC reset cause (multicore devices)"
	default y
	depends on HAS_MCUX_SRC_V2
	depends on DT_HAS_NXP_IMX_SRC_REV2_ENABLED
	select HWINFO_HAS_DRIVER
	help
	  Enable version 2 multicore NXP i.MX mcux SRC hwinfo driver.
+12 −0
Original line number Diff line number Diff line
# Copyright 2025 NXP
# SPDX-License-Identifier: Apache-2.0

description: NXP SRC REV2 get reset cause flags

compatible: "nxp,imx-src-rev2"

include: base.yaml

properties:
  reg:
    required: true
+0 −6
Original line number Diff line number Diff line
@@ -35,12 +35,6 @@ config HAS_MCUX_SRC
	  Set if the system reset controller (SRC) module is present in the
	  SoC.

config HAS_MCUX_SRC_V2
	bool
	help
	  Set if version 2 of the system reset controller (SRC) module is
	  present in the SoC.

config HAS_MCUX_RDC
	bool
	help
+0 −1
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ config SOC_SERIES_IMXRT11XX
	select CPU_HAS_DCACHE if CPU_CORTEX_M7
	select CPU_HAS_FPU
	select CPU_HAS_FPU_DOUBLE_PRECISION if CPU_CORTEX_M7
	select HAS_MCUX_SRC_V2
	select HAS_SWO
	select HAS_PM