From e7cddf3a5275937b38f95afa7540fcc3fc7e5354 Mon Sep 17 00:00:00 2001 From: GUI <39894654+GuEe-GUI@users.noreply.github.com> Date: Thu, 30 May 2024 15:30:40 +0800 Subject: [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 <2991707448@qq.com> * [DM/platform] Enhanced platform bus 1.Add power domain for device. 2.Support `remove` and `shutdown` bus interface. Signed-off-by: GuEe-GUI <2991707448@qq.com> --------- Signed-off-by: GuEe-GUI <2991707448@qq.com> --- include/rtdef.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 */ -- cgit v1.3.1