Add an option to allow DM_EVENT in SPL.
Signed-off-by: Markus Schneider-Pargmann <[email protected]>
---
drivers/core/Kconfig | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index ae0c34667723..22b72d6b766c 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -117,6 +117,16 @@ config DM_EVENT
register a 'spy' function that is called when the event occurs. Such
subsystems must select this option.
+config SPL_DM_EVENT
+ bool
+ depends on SPL_DM
+ select SPL_EVENT
+ help
+ This enables support for generating events related to driver model
+ operations in SPL, such as probing or removing a device. Subsystems
+ can register a 'spy' function that is called when the event occurs.
+ Such subsystems must select this option.
+
config SPL_DM_DEVICE_REMOVE
bool "Support device removal in SPL"
depends on SPL_DM
--
2.56.0