dm: core: Add a way to skip powering down power domains
[oweals/u-boot.git] / include / dm / device.h
index a56164b19bbca6fb442d127c262e707ed5bde590..17e57bf829c51e04eba1a91c4c6414796068cc27 100644 (file)
@@ -80,18 +80,21 @@ struct driver_info;
  */
 enum {
        /* Normal remove, remove all devices */
-       DM_REMOVE_NORMAL     = 1 << 0,
+       DM_REMOVE_NORMAL        = 1 << 0,
 
        /* Remove devices with active DMA */
-       DM_REMOVE_ACTIVE_DMA = DM_FLAG_ACTIVE_DMA,
+       DM_REMOVE_ACTIVE_DMA    = DM_FLAG_ACTIVE_DMA,
 
        /* Remove devices which need some final OS preparation steps */
-       DM_REMOVE_OS_PREPARE = DM_FLAG_OS_PREPARE,
+       DM_REMOVE_OS_PREPARE    = DM_FLAG_OS_PREPARE,
 
        /* Add more use cases here */
 
        /* Remove devices with any active flag */
-       DM_REMOVE_ACTIVE_ALL = DM_REMOVE_ACTIVE_DMA | DM_REMOVE_OS_PREPARE,
+       DM_REMOVE_ACTIVE_ALL    = DM_REMOVE_ACTIVE_DMA | DM_REMOVE_OS_PREPARE,
+
+       /* Don't power down any attached power domains */
+       DM_REMOVE_NO_PD         = 1 << 1,
 };
 
 /**