dm: core: remove redundant if statement
[platform/kernel/u-boot.git] / drivers / core / Kconfig
index e8ba20c..3b95b53 100644 (file)
@@ -57,13 +57,21 @@ config DM_DEVICE_REMOVE
        default y
        help
          We can save some code space by dropping support for removing a
-         device. This is not normally required in SPL, so by default this
-         option is disabled for SPL.
+         device.
 
          Note that this may have undesirable results in the USB subsystem as
          it causes unplugged devices to linger around in the dm-tree, and it
          causes USB host controllers to not be stopped when booting the OS.
 
+config SPL_DM_DEVICE_REMOVE
+       bool "Support device removal in SPL"
+       depends on SPL_DM
+       default n
+       help
+         We can save some code space by dropping support for removing a
+         device. This is not normally required in SPL, so by default this
+         option is disabled for SPL.
+
 config DM_STDIO
        bool "Support stdio registration"
        depends on DM
@@ -84,7 +92,7 @@ config DM_SEQ_ALIAS
 
 config SPL_DM_SEQ_ALIAS
        bool "Support numbered aliases in device tree in SPL"
-       depends on DM
+       depends on SPL_DM
        default n
        help
          Most boards will have a '/aliases' node containing the path to
@@ -217,6 +225,15 @@ config SPL_OF_TRANSLATE
          used for the address translation. This function is faster and
          smaller in size than fdt_translate_address().
 
+config TRANSLATION_OFFSET
+       bool "Platforms specific translation offset"
+       depends on DM && OF_CONTROL
+       help
+         Some platforms need a special address translation. Those
+         platforms (e.g. mvebu in SPL) can configure a translation
+         offset by enabling this option and setting the translation_offset
+         variable in the GD in their platform- / board-specific code.
+
 config OF_ISA_BUS
        bool
        depends on OF_TRANSLATE
@@ -224,7 +241,7 @@ config OF_ISA_BUS
          Is this option is enabled then support for the ISA bus will
          be included for addresses read from DT. This is something that
          should be known to be required or not based upon the board
-         being targetted, and whether or not it makes use of an ISA bus.
+         being targeted, and whether or not it makes use of an ISA bus.
 
          The bus is matched based upon its node name equalling "isa". The
          busses #address-cells should equal 2, with the first cell being