diff options
author | Alice Guo <alice.guo@nxp.com> | 2025-04-28 18:37:25 +0800 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2025-05-03 16:55:32 -0300 |
commit | adff089cd4d5e45399348bc92c98d035ed7cc801 (patch) | |
tree | 335d13b584c7f72117f0b3a887714064ba174896 /drivers/clk/clk_scmi.c | |
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 <alice.guo@nxp.com>
Diffstat (limited to 'drivers/clk/clk_scmi.c')
-rw-r--r-- | drivers/clk/clk_scmi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c index e42d2032d45..b8d40cc9653 100644 --- a/drivers/clk/clk_scmi.c +++ b/drivers/clk/clk_scmi.c @@ -8,6 +8,7 @@ #include <clk-uclass.h> #include <dm.h> #include <scmi_agent.h> +#include <scmi_agent-uclass.h> #include <scmi_protocols.h> #include <asm/types.h> #include <linux/clk-provider.h> @@ -191,3 +192,10 @@ U_BOOT_DRIVER(scmi_clock) = { .ops = &scmi_clk_ops, .probe = scmi_clk_probe, }; + +static struct scmi_proto_match match[] = { + { .proto_id = SCMI_PROTOCOL_ID_CLOCK }, + { /* Sentinel */ } +}; + +U_BOOT_SCMI_PROTO_DRIVER(scmi_clock, match); |