diff options
author | Chris Kay <chris.kay@arm.com> | 2019-10-23 17:24:44 +0100 |
---|---|---|
committer | souvikkc <52570545+souvikkc@users.noreply.github.com> | 2019-11-06 12:21:06 +0000 |
commit | 78d253313e7b494e8eb1a041b40c0167ad113adf (patch) | |
tree | 9705ce29a962f36e2cb5cd6261325bd75e14e211 /product/rdn1e1 | |
parent | b5188d7699de5367e7a13fca8053c2bd1970e685 (diff) |
mock_psu: Add asynchronous driver support
This commit allows elements of the `mock_psu` module to emulate
asynchronous operations.
Enabling asynchronous operations forces requests to the element to be
pended for later completion, and is useful for testing interfaces that
interact with `mock_psu` which need to support this functionality.
Change-Id: Ic52221c510de8da60501a163b3f7dcacef6b0a3b
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'product/rdn1e1')
-rw-r--r-- | product/rdn1e1/scp_ramfw/config_mock_psu.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/product/rdn1e1/scp_ramfw/config_mock_psu.c b/product/rdn1e1/scp_ramfw/config_mock_psu.c index fa66ac18..317e6fe1 100644 --- a/product/rdn1e1/scp_ramfw/config_mock_psu.c +++ b/product/rdn1e1/scp_ramfw/config_mock_psu.c @@ -14,6 +14,12 @@ static const struct fwk_element element_table[] = { .name = "DVFS_GROUP0", .data = &(const struct mod_mock_psu_element_cfg){ + .async_alarm_id = FWK_ID_NONE_INIT, + .async_alarm_api_id = FWK_ID_NONE_INIT, + + .async_response_id = FWK_ID_NONE_INIT, + .async_response_api_id = FWK_ID_NONE_INIT, + .default_enabled = true, .default_voltage = 100, }, @@ -22,6 +28,12 @@ static const struct fwk_element element_table[] = { .name = "DVFS_GROUP1", .data = &(const struct mod_mock_psu_element_cfg){ + .async_alarm_id = FWK_ID_NONE_INIT, + .async_alarm_api_id = FWK_ID_NONE_INIT, + + .async_response_id = FWK_ID_NONE_INIT, + .async_response_api_id = FWK_ID_NONE_INIT, + .default_enabled = true, .default_voltage = 100, }, |