diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2023-10-11 19:06:56 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-13 16:59:23 -0400 |
commit | a70a897e3165b0f88ef3f851e66b68482a2926ed (patch) | |
tree | 454eff8ebd0b0e9f9752424a76a875f7a3e35437 /arch/sandbox/include/asm | |
parent | 689204be9744db24fc8031229946f045fae02c07 (diff) |
firmware: scmi: support dummy channels for sandbox agent
In sandbox scmi agent, channels are not used at all. But in this patch,
dummy channels are supported in order to test protocol-specific channels.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Diffstat (limited to 'arch/sandbox/include/asm')
-rw-r--r-- | arch/sandbox/include/asm/scmi_test.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/scmi_test.h b/arch/sandbox/include/asm/scmi_test.h index c72ec1e1cb..75cb462a55 100644 --- a/arch/sandbox/include/asm/scmi_test.h +++ b/arch/sandbox/include/asm/scmi_test.h @@ -89,6 +89,14 @@ struct sandbox_scmi_devices { #ifdef CONFIG_SCMI_FIRMWARE /** + * sandbox_scmi_channel_id - Get the channel id + * @dev: Reference to the SCMI protocol device + * + * Return: Channel id + */ +unsigned int sandbox_scmi_channel_id(struct udevice *dev); + +/** * sandbox_scmi_service_ctx - Get the simulated SCMI services context * @return: Reference to backend simulated resources state */ @@ -101,6 +109,11 @@ struct sandbox_scmi_service *sandbox_scmi_service_ctx(void); */ struct sandbox_scmi_devices *sandbox_scmi_devices_ctx(struct udevice *dev); #else +inline unsigned int sandbox_scmi_channel_id(struct udevice *dev); +{ + return 0; +} + static inline struct sandbox_scmi_service *sandbox_scmi_service_ctx(void) { return NULL; |