diff options
| author | Alice Guo <[email protected]> | 2025-04-28 18:37:25 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2025-05-03 16:55:32 -0300 |
| commit | adff089cd4d5e45399348bc92c98d035ed7cc801 (patch) | |
| tree | 335d13b584c7f72117f0b3a887714064ba174896 /drivers/reset | |
| parent | b4f3fab643324d41ff0074ebed49713ddd4009eb (diff) | |
firmware: scmi: use scmi_proto_driver_get() function to get SCMI protocol driver
If there is a SoC specific SCMI protocol driver, using
scmi_proto_driver_get() function can avoid to add SoC specific code to
scmi_agent-uclass.c.
Signed-off-by: Alice Guo <[email protected]>
Diffstat (limited to 'drivers/reset')
| -rw-r--r-- | drivers/reset/reset-scmi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index 6dc1fcb3365..f92a9e35579 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -9,6 +9,7 @@ #include <errno.h> #include <reset-uclass.h> #include <scmi_agent.h> +#include <scmi_agent-uclass.h> #include <scmi_protocols.h> #include <asm/types.h> @@ -81,3 +82,10 @@ U_BOOT_DRIVER(scmi_reset_domain) = { .ops = &scmi_reset_domain_ops, .probe = scmi_reset_probe, }; + +static struct scmi_proto_match match[] = { + { .proto_id = SCMI_PROTOCOL_ID_RESET_DOMAIN }, + { /* Sentinel */ } +}; + +U_BOOT_SCMI_PROTO_DRIVER(scmi_reset_domain, match); |
