diff options
author | Anatolij Gustschin <agust@denx.de> | 2020-02-17 12:36:43 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-03-02 19:47:38 -0700 |
commit | 5349e255ff913971d8b812eb363da62eace169bc (patch) | |
tree | 3b4a909fff3b367bdea965a2a9bf5198cbd8091b /include | |
parent | 8aad16916d04e3db0d1652cb96e840e209e19252 (diff) |
dm: core: Add a flag for power domain control on device removal
In various cases a power domain must stay enabled after device
removal when booting OS (i.e. serial debug console or display).
Add a flag to selectively skip switching off a power domain.
Fixes: 52edfed65de9 ("dm: core: device: switch off power domain after device removal")
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Guillaume La Roque <glaroque@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/dm/device.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index ab806d0b7e9..a56164b19bb 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -68,6 +68,12 @@ struct driver_info; #define DM_FLAG_PLATDATA_VALID (1 << 12) /* + * Device is removed without switching off its power domain. This might + * be required, i. e. for serial console (debug) output when booting OS. + */ +#define DM_FLAG_REMOVE_WITH_PD_ON (1 << 13) + +/* * One or multiple of these flags are passed to device_remove() so that * a selective device removal as specified by the remove-stage and the * driver flags can be done. |