firmware: scmi: Conditionally compile protocol support
authorPeng Fan <peng.fan@nxp.com>
Fri, 17 Oct 2025 09:32:30 +0000 (17:32 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 24 Oct 2025 19:47:50 +0000 (13:47 -0600)
commit251dd6bf0e89a587710fa7bfa320088617f8854e
treec646300adb4bda749aee7aa78a11fb6977ddf513
parentfae6c54d238279bf79c66ca65330425dff2c952f
firmware: scmi: Conditionally compile protocol support

Add conditional compilation for SCMI protocol support in scmi_get_protocol()
and scmi_add_protocol() based on corresponding Kconfig options. This ensures
that only the enabled protocols are compiled and accessed, and reducing binary
size.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
drivers/firmware/scmi/scmi_agent-uclass.c
include/scmi_agent-uclass.h