event: Correct dependencies on the EVENT framework
[platform/kernel/u-boot.git] / drivers / core / Kconfig
index 0dc442b..6fc8854 100644 (file)
@@ -14,7 +14,7 @@ config SPL_DM
        help
          Enable driver model in SPL. You will need to provide a
          suitable malloc() implementation. If you are not using the
-         full malloc() enabled by CONFIG_SYS_SPL_MALLOC_START,
+         full malloc() enabled by CFG_SYS_SPL_MALLOC_START,
          consider using CONFIG_SPL_SYS_MALLOC_SIMPLE. In that case you
          must provide CONFIG_SPL_SYS_MALLOC_F_LEN to set the size.
          In most cases driver model will only allocate a few uclasses
@@ -27,7 +27,7 @@ config TPL_DM
        help
          Enable driver model in TPL. You will need to provide a
          suitable malloc() implementation. If you are not using the
-         full malloc() enabled by CONFIG_SYS_SPL_MALLOC_START,
+         full malloc() enabled by CFG_SYS_SPL_MALLOC_START,
          consider using CONFIG_TPL_SYS_MALLOC_SIMPLE. In that case you
          must provide CONFIG_SPL_SYS_MALLOC_F_LEN to set the size.
          In most cases driver model will only allocate a few uclasses
@@ -42,7 +42,7 @@ config VPL_DM
        help
          Enable driver model in VPL. You will need to provide a
          suitable malloc() implementation. If you are not using the
-         full malloc() enabled by CONFIG_SYS_SPL_MALLOC_START,
+         full malloc() enabled by CFG_SYS_SPL_MALLOC_START,
          consider using CONFIG_SPL_SYS_MALLOC_SIMPLE.
 
 config DM_WARN
@@ -109,13 +109,14 @@ config DM_DEVICE_REMOVE
          causes USB host controllers to not be stopped when booting the OS.
 
 config DM_EVENT
-       bool "Support events with driver model"
-       depends on DM && EVENT
-       default y if SANDBOX
+       bool
+       depends on DM
+       select EVENT
        help
          This enables support for generating events related to driver model
          operations, such as prbing or removing a device. Subsystems can
-         register a 'spy' function that is called when the event occurs.
+         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"
@@ -350,6 +351,20 @@ config SPL_OF_TRANSLATE
          used for the address translation. This function is faster and
          smaller in size than fdt_translate_address().
 
+config TPL_OF_TRANSLATE
+       bool "Translate addresses using fdt_translate_address in TPL"
+       depends on TPL_DM && TPL_OF_CONTROL
+       help
+         If this option is enabled, the reg property will be translated
+         using the fdt_translate_address() function. This is necessary
+         on some platforms (e.g. MVEBU) using complex "ranges"
+         properties in many nodes. As this translation is not handled
+         correctly in the default simple_bus_translate() function.
+
+         If this option is not enabled, simple_bus_translate() will be
+         used for the address translation. This function is faster and
+         smaller in size than fdt_translate_address()
+
 config VPL_OF_TRANSLATE
        bool "Translate addresses using fdt_translate_address in SPL"
        depends on SPL_DM && VPL_OF_CONTROL