summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGUI <[email protected]>2024-05-30 15:30:40 +0800
committerGitHub <[email protected]>2024-05-30 15:30:40 +0800
commite7cddf3a5275937b38f95afa7540fcc3fc7e5354 (patch)
tree25bb3a1597a0118585e994e29286dc4734401486 /include
parent2cbe8bdae01cdd2d8fc0c55f363a94f13fb11a47 (diff)
[Feature] Support simple power domain API (#9005)
* [Feature] Power domain for device 1.Support device power on/off. 2.Support attach/detach device. 3.Support power domain driver api. Signed-off-by: GuEe-GUI <[email protected]> * [DM/platform] Enhanced platform bus 1.Add power domain for device. 2.Support `remove` and `shutdown` bus interface. Signed-off-by: GuEe-GUI <[email protected]> --------- Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 72b61de7aa..3e48a137f6 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -1363,6 +1363,7 @@ struct rt_device
#ifdef RT_USING_OFW
void *ofw_node; /**< ofw node get from device tree */
#endif /* RT_USING_OFW */
+ void *power_domain_unit;
#endif /* RT_USING_DM */
enum rt_device_class_type type; /**< device type */