forked from renesas-rcar/arm-trusted-firmware
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rcar gen4 v2.7 v4x scmi base #21
Open
GrygiriiS
wants to merge
10
commits into
xen-troops:rcar_gen4_v2.7_v4x-scmi
Choose a base branch
from
GrygiriiS:rcar_gen4_v2.7_v4x_scmi_base
base: rcar_gen4_v2.7_v4x-scmi
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rcar gen4 v2.7 v4x scmi base #21
GrygiriiS
wants to merge
10
commits into
xen-troops:rcar_gen4_v2.7_v4x-scmi
from
GrygiriiS:rcar_gen4_v2.7_v4x_scmi_base
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Corrects the size of the SCMI response payload when querying the list of the supported protocol. This response payload size depends on the number of protocols enumerated by the response. Change-Id: Ib01eb5cec6c6656dfd7d88ccdd5a720c1deee7a3 Reported-by: Nicolas Frattaroli <[email protected]> Signed-off-by: Etienne Carriere <[email protected]> (cherry picked from commit d323f0c)
Corrects the function reporting the SCMI protocols supported by the platform to not assume 8 protocol IDs at most can be returned. Indeed the number of protocol IDs returned depends on the SCMI output buffer size. Change-Id: Idafbe02d2b25b3bcacaf25977c560c0ac5bb8d62 Signed-off-by: Etienne Carriere <[email protected]> (cherry picked from commit cad90b5)
Fix compilation error when scmi base in enabled. The following compilation error is visible: drivers/scmi-msg/base.c: In function 'discover_list_protocols': include/lib/utils_def.h:70:20: error: comparison of distinct pointer types lacks a cast [-Werror] 70 | (void)(&_x == &_y); \ | ^~ drivers/scmi-msg/base.c:154:25: note: in expansion of macro 'MIN' 154 | count = MIN(count - a2p->skip, msg->out_size - sizeof(p2a)); Change-Id: I79e60d4bc9c4f6e78a76099a36ebf4fe5212a7d1 Signed-off-by: Michal Simek <[email protected]> (cherry picked from commit 7c38934)
Pass "start_idx" to plat_scmi_clock_rates_array. This parameter is required to obtain the rate table a second time. Signed-off-by: XiaoDong Huang <[email protected]> Change-Id: I97c6751e7d34c839ced8f22bddc39fb534978cc4 (cherry picked from commit ca9d6ed)
LF-4715-1 drivers: scmi-msg: add sensor support Add scmi sensor support Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Jacky Bai <[email protected]> Change-Id: I810e270b138bf5486b32df121056bfa5103c129f (cherry picked from commit e63819f)
Existing SCMI code already has parts for support multiple agents. Extend this by providing: - plat_scmi_agent_count() function that returns the number of agents supported by a platform. - plat_scmi_agent_get_name() function that returns agent name. And ensure proper agent_count passed to the agents in SCMI_PROTOCOL_ATTRIBUTES message. Change-Id: I60374842f6fbf457c5da6459161ead301920cfd2 Signed-off-by: Volodymyr Babchuk <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Reviewed-by: Oleksii Moisieiev <[email protected]> Reviewed-by: Volodymyr Babchuk <[email protected]>
This call provides basic information about an agent. Change-Id: I857ca7f09bd85679e4743e81cd0762d865e6072a Signed-off-by: Volodymyr Babchuk <[email protected]> Reviewed-by: Oleksii Moisieiev <[email protected]> Reviewed-by: Volodymyr Babchuk <[email protected]>
Implement BASE_SET_DEVICE_PERMISSIONS and BASE_RESET_AGENT_CONFIGURATION calls. Add platform-specific callback that return number of SCMI devices, array with device permission and a function to reset a SCMI device to a default state. Change-Id: Idd0e17b95649102c5b8a46c8fb41cbee730dc7d6 Signed-off-by: Volodymyr Babchuk <[email protected]> Reviewed-by: Oleksii Moisieiev <[email protected]> Reviewed-by: Volodymyr Babchuk <[email protected]>
Add platform plat_scmi_rstd_permitted() callback to check SCMI Agent access permissions for Reset domain. Signed-off-by: Grygorii Strashko <[email protected]> Reviewed-by: Oleksii Moisieiev <[email protected]> Reviewed-by: Volodymyr Babchuk <[email protected]>
This patch adds basic SCMI server support to Renesas rcar gen4. The SCMI is controled by option SCMI_SERVER_SUPPORT and enabled by default. SCMI build options: - RCAR_SCMI_SHMEM_BASE the SCMI shmem base address - SCMI_NUM_AGENTS number of Agents (default 8) Signed-off-by: Grygorii Strashko <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add basic SCMI server support for Renesas rcar gen4 V4H platform.
The SCMI is controlled by option SCMI_SERVER_SUPPORT and enabled by default.
Linux kernel:
https://github.com/GrygiriiS/linux/tree/gen4-v5.10.147-rcar-5.2.0.rc17_scmi_pd
Linux kernel log:
Linux CFG:
Linux DT: