aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-15rcar/module: add rcar dvfs module and config dataNicolas Royer
Change-Id: I6118b0ca36937fb02fb8101a152071f4cbfb74a8 Signed-off-by: Tsutomu Muroya <tsutomu.muroya.jy@bp.renesas.com> Signed-off-by: Nicolas Royer <nroyer@baylibre.com>
2020-10-15rcar/module: add rcar clock module and config dataNicolas Royer
Change-Id: I942313cc1e17053597df7c5543758defd768eff4 Signed-off-by: Tsutomu Muroya <tsutomu.muroya.jy@bp.renesas.com> Signed-off-by: Nicolas Royer <nroyer@baylibre.com>
2020-10-15rcar/module: add rcar scif module and config dataNicolas Royer
Change-Id: I1e4b7df885634f599f652e88ea06b42a9a1d7ae1 Signed-off-by: Tsutomu Muroya <tsutomu.muroya.jy@bp.renesas.com> Signed-off-by: Nicolas Royer <nroyer@baylibre.com>
2020-10-15tools: add rcar platform supportNicolas Royer
Add support for rcar to the various tools scripts. Change-Id: If5f4add3f9120ecda437ef6e2e86b6277446450e Signed-off-by: Nicolas Royer <nroyer@baylibre.com>
2020-10-12Update cppcheck_suppress_list.txttarek-arm
2020-10-12Update cppcheck_suppress_list.txttarek-arm
2020-10-12Update cppcheck_suppress_list.txttarek-arm
2020-10-12Rcar: Disable CPP checking for Rcar platform.Jim Quigley
This patch disables CI cppcheck for the Rcar product. Change-Id: Ic9cbd4b2512bd0eb7bf79a5b3794fc8341307ea7 Signed-off-by: Jim Quigley <jim.quigley@arm.com>
2020-10-08tc0/pl011: Do not subscribe to power domain notification for pl011Usama Arif
The SYSTOP power domain is already ON in RAM firmware, therefore do not wait for notification. Change-Id: I9b2dc28fa2736169ce9f2dcec2e5986e5a994da5 Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-10-07module: power domain: add a missing returnVincent Guittot
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
2020-10-07juno/xrp7724: Log out of margin in place of propagating errorNicola Mazzucato
Currently when the voltage measured on the rail after a set voltage operation is out of margin an error is returned. Upon this error, no further action is taken. This causes the framework to log an error, while this is rather a driver expectation. Manual testings have also shown that the threshold is probably too tight as in some circumstances the deviation from the target reaches 30-35 mV. Since no action is taken after the margin comparison, simply log the fact from the driver itself and return FWK_SUCCESS, as the event has been processed correctly. Change-Id: I6db0950a9376bec4b29f1d2d08a31e669f76f9c9 Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
2020-10-07dvfs: Fix set_rate frequency multiplierNicola Mazzucato
The recent change of frequency unit from Hz to kHz has left one set_rate call with the previous units, resulting in a failed frequency change. Align the remaining set_rate with the correct frequency unit. Change-Id: I850e4433fe9b9f56a3167461afca482e3f1dcf88 Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
2020-10-07fwk_mm: Restore trap on allocation failureNicola Mazzucato
The recent change to the standard library memory allocator has removed the trapping mechanism that prevented the function to return a NULL pointer. As some callers make the assumption that the pointer returned is always !NULL, this may cause a NULL pointer dereference. Reintroduce the trapping instead of returning a NULL pointer. Furthermore, add a new fwk_mm_alloc_notrap() function to be used specifically by fwk_io_vprintf() which handles the case for a null pointer. Change-Id: I1e2b77a3cd6ea31a9c97c2d4752ad6b63302b43a Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
2020-10-07mod_scmi_perf: Fix mispelling of _SCMI_Nicola Mazzucato
Fix some mispelling of SCMI (it is not SMCI). Change-Id: Ib2a6eb5ecfe6592236a583c2dded2aadae4ce4af Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
2020-10-07Update mod_scmi_voltage_domain.cjimqui01
Remove unused variables.
2020-10-07module: Voltage Domain driver and related SCMIv3 protocol driverEtienne Carriere
Introduces a basic Voltage Domain driver and a SCMI voltage domain protocol driver. SCMI voltage domain protocol is introduced in SCMI specification v3. Module voltage_domain is a generic HAL for voltage domains, aka power supply regulators drivers. Based on module configuration, the module binds each element to the voltage domain backend driver thru a generic driver interface: - set & get config, using SCMI voltage domain configuration format. - set & get voltage level, in microvolt (uV) Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
2020-10-07fwk: Some checks in event handling should be for DEBUG builds onlyJim Quigley
We can remove some of the data checking in the event handler for release builds, saving a few cycles. Change-Id: Ie77a35de5cacdc9f13fa690e75a9d5d12999d4e8 Signed-off-by: Jim Quigley <jim.quigley@arm.com>
2020-10-07fwk: Avoid duplicate calls in event frameworkJim Quigley
If we know whether or not the therad is running in an interrupt context we don't need to check this again, saving a few cycles. Change-Id: I91e32ae0ec8c6f5dc5114f760fc764920c70e371 Signed-off-by: Jim Quigley <jim.quigley@arm.com>
2020-10-06module: dvfs: fix get_opp_for_voltageVincent Guittot
get_opp_for_voltage() should use voltage instead of level where looking for an OPP. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
2020-10-02docs: Fix multiple `\retval` commands errorsChris Kay
More recent versions of Doxygen now complain when multiple `\retval` commands are found with the same return value. This commit fixes these issues, replacing them instead with a single `\retval` containing a list of possible reasons the function might return the value. Change-Id: I8d1a09de92ffb0f6c9c662b2c28c999f52dd7d1d Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-10-02docs: Fix unbalanced Doxygen groupsChris Kay
This commit fixes a number of places where Doxygen groups commands have been mismatched. Change-Id: If2e18c5e45a9a5d16a5c1f48fdaa975189957400 Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-10-02docs: Replace `\ref` with `::`Chris Kay
The code-base is currently fairly inconsistent with its usage of the `::` prefix and the `\ref`. This commit replaces any instances of `\ref` with `::`. Change-Id: I02c1b6e2caf0f333388f44ac51ede060aa0568c3 Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-10-02docs: Normalize Doxygen paragraph indentationChris Kay
Doxygen continutation line intendation across the code-base is currently inconsistent in spite of the code-style documentation specifying a two-tab indent on continuation lines. Change-Id: I0944d749042972797bde1997f02afd98d4028c1a Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-10-02docs: Prefer `\` to `@` in Doxygen commentsChris Kay
This commit replaces any instances of `@`-style Doxygen commands with their `\`-style equivalents. This is done for consistency across the codebase. The `\sa` Doxygen command has been added to the Clang-Format configuration to prevent it from reflowing see-also comments, which often exceed the column limit due to referring to long URLs. Change-Id: Ia4ebe8bd310293da9e2af55fe253f0762807e88a Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-10-02docs: Ensure Doxygen return values use referencesChris Kay
At present a lot of the code-base uses `\retval` commands to framework status codes but does not explicitly link to them. In some cases it's necessary to explicitly link to these status codes to have Doxygen generate a link to the relevant enumeration, and we can do this by prefixing the name with `::`. This style is already used in much of the code-base, so should not conflict with any existing styles. Change-Id: Ifc78eb425981bee3a01c791757a41a61c20e636c Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-09-28tc0: Memory and interrupt map changes for tc0Usama Arif
These are part of architecture changes introduced in tc0. Change-Id: I92a52849db7016569cfcab8b0deea0963a596322 Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-09-28tc0: use UART0 from RoS AP memory mapUsama Arif
The SCP UART is no longer available after platform architecture changes. The #define base addresses are also changed to UINT32_T to support large additions. Change-Id: I71b2d74cb18bd3ef48fdf5f6dae5dbee4844ad46 Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-09-28tc0: Add a second scmi and mhuv2 channelUsama Arif
There are now 2 mhuv2 channels available in tc0, channel 0 and 1. This gives 2 scmi OSPM agents. This is part of architecture changes in tc0. Change-Id: I372183cc4994a5bd0388bf348f7d3670ecbb7c3b Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-09-28tc0: Change memory configurationUsama Arif
Previously tc0 had a seperate ITC and DTC RAM. Now there is just a single RAM present. This is part of architecture changes to tc0. Change-Id: I4c366eba943135b1cdbdb9e07d785b132ac11d97 Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-09-28tc0: Change processor from Cortex-M7 to Cortex-M3Usama Arif
This is part of architecture changes introduced to platform. Change-Id: I62dbdb6724e512c65d11332edc59f188e31de7a0 Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-09-25tc0: apply clang-format to platformUsama Arif
Any new patches apply clang-format to them. This patch will allow consistency to entire platform. Change-Id: I295b0e00eeb22affb97062a5fa243d0dafdd5654 Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-09-21fwk: Remove all FWK_LOG_TRACE code when LOG_LEVEL=TRACE not setJim Quigley
The logging framework does not remove the FWK_LOG_x code completely when LEVEL_x is not set. This can lead to embedded code or macro's being executed unnecessarily impacting performance. Change-Id: I741b383cb74b2cf27740640769ea8f0fcd08fa2e Signed-off-by: Jim Quigley <jim.quigley@arm.com>
2020-09-18product/tc0: Add pd_id for pl011 moduleUsama Arif
This is needed due to recently introduced changes in mod_pl011 that perform safety check to see if the device is powered on or off. The pl011 config is split into ROM and RAM firmware as only RAM firmware has power domain. Change-Id: I877b8b3963e5a605acd8af0d771b9b61909fafaf Signed-off-by: Usama Arif <usama.arif@arm.com>
2020-09-15morello: add scmi resource permission module configAnurag Koul
Change-Id: Idd19ca56f5a80cfef7aa4f8bd6b58b4e5f75fdff Signed-off-by: Anurag Koul <anurag.koul@arm.com>
2020-09-15morello/scp_ramfw_fvp: add support for dvfs & scmi perfAnurag Koul
Enable DVFS (frequency scaling only) for AP cores for Morello FVP platform. Change-Id: I3dbad248d4dc96ccf0dba132a7e9e325d9c3b4b2 Signed-off-by: Anurag Koul <anurag.koul@arm.com>
2020-09-15ci: Add morello platformAnurag Koul
Build morello firmware with gcc and armclang compiler for release and debug modes. Change-Id: Idf289c89b6f7e4567537d88111623b295984ff42 Signed-off-by: Anurag Koul <anurag.koul@arm.com>
2020-09-15morello: enable cli debug over scp uartAnurag Koul
Enable UART debug and disable log buffering in release mode. Change-Id: I46348685431b3e28b69f616c95a65ba3a01a9206 Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/mcp_romfw: enable mcp romfw image buildAnurag Koul
Change-Id: Ife7e94f1e47f19ae4779d8f868c7907af4341f34 Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/mcp_romfw: add mcp_romfw config filesAnurag Koul
Change-Id: I0d1c55647c9f3759490a86dfe105d86d55dd8753 Signed-off-by: Anurag Koul <anurag.koul@arm.com>
2020-09-15morello/scp_romfw: enable scp romfw image buildAnurag Koul
Change-Id: I862e118e48ec578589174d4a0dcaa80686324a10 Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/module: add morello_rom moduleAnurag Koul
This module performs first level of firmware capsule image parsing - fetches the RAM firmware, copies it to the appropriate memory locations, and passes on the control to it. Change-Id: I8c7828a46ac11f77ec207743bd03bf8e2287b777 Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/scp_romfw: add scp_romfw config filesAnurag Koul
Change-Id: I860182e537cd10f8cb08ca781fe13ec13fc19bc0 Signed-off-by: Anurag Koul <anurag.koul@arm.com>
2020-09-15morello/mcp_ramfw_fvp: enable mcp ramfw image buildAnurag Koul
Change-Id: Ia125e31e4118377449a4219b415cbf733b6a5892 Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/module: add morello_mcp_system moduleAnurag Koul
Add a new module, "morello_mcp_system", which is the main system module for MCP, and runs after all the other modules have run. Change-Id: I8182d12eeaa765049ea3054f43ea56b053432ddd Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/mcp_ramfw_fvp: add mhu & scmi related configsAnurag Koul
Change-Id: I0366bfb94d4b82ccb1ec1198520c31d8747a310c Signed-off-by: Anurag Koul <anurag.koul@arm.com>
2020-09-15morello/module: add scmi_agent moduleAnurag Koul
Add a new module, scmi_agent, to be used by MCP for SCMI communication with SCP. Change-Id: I6c63542e640bdba577a8458b4050efcf3f2e89fe Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/module: add scmi_management moduleAnurag Koul
Add a protocol type module for facilitating SCMI communication between MCP and SCP. Signed-off-by: Anurag Koul <anurag.koul@arm.com> Change-Id: Ie62493f90af6b29674b45a74f3e1dbe3e8f0c5ca
2020-09-15morello/module: add morello_smt moduleAnurag Koul
This patch adds a module, morello_smt, based on core smt module but modified to support smt master interface APIs until SCMI agent support is added in the core module. Signed-off-by: Anurag Koul <anurag.koul@arm.com> Change-Id: I861ae553b994d4cd2cdd7e0cc81f65a2fcf47dc4
2020-09-15morello: add morello_mhu moduleAnurag Koul
This patch adds a module, morello_mhu, which is based on core mhu module but is modified to work for Morello platform until SCMI agent support is added. Change-Id: I653f515d513011c10e1131b30ee0ba33fd1ef3ff Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
2020-09-15morello/mcp_ramfw_fvp: add config files for mcp ramfwAnurag Koul
Change-Id: Ib2d83545a4ab1f484b83a384e2483aa526785118 Signed-off-by: Anurag Koul <anurag.koul@arm.com>