This project is mirrored from https://github.com/ARM-software/SCP-firmware.git.
Pull mirroring updated .
- 13 Dec, 2021 10 commits
-
-
Tarek El-Sherbiny authored
The secondary SCP must wait for power state transition to complete before sending the response back to the primary over i2c. This patch changes the set_state parameter to request response when the power state transition is completed. Also, a new event handling is introduced to check the response from power domain. Signed-off-by:
Tarek El-Sherbiny <tarek.el-sherbiny@arm.com> Change-Id: Ib282e85ba14b5119edd84e00cf92f9a063962ad7
-
Tarek El-Sherbiny authored
This patch defines the response flag to improve code readability. Signed-off-by:
Tarek El-Sherbiny <tarek.el-sherbiny@arm.com> Change-Id: Ib17f60cccb2fdc6cf49ab4e0f24163b2b917e4e9
-
Tarek El-Sherbiny authored
This patch adds support for the sync mode set state request. When the sync request is received by SCMI power domain it will send an event to itself to switch the context. Then it will request the new state from HAL. The SCMI PD will handle wait for the response from HAL before terminating the command by responding to the SCMI agent. Signed-off-by:
Tarek El-Sherbiny <tarek.el-sherbiny@arm.com> Change-Id: Ib2f8ab80b47654153f5eafe2818aad69147b574c
-
Tarek El-Sherbiny authored
This patch removes the call to deprecated function fwk_thread_put_event_and_wait() in system suspend and reset. Also, pd_reset() is now using the light event to reduce the overhead. Signed-off-by:
Tarek El-Sherbiny <tarek.el-sherbiny@arm.com> Change-Id: I737bfdfa658ca80246d6345f7acff60bbbe5060a
-
Tarek El-Sherbiny authored
This patch removes the call to deprecated function fwk_thread_put_event_and_wait(). Also, the power domain HAL now provides only one function to set the state. The set_state() will return after queuing the request. Modules that require a response will have to handle the deferred return status. Signed-off-by:
Tarek El-Sherbiny <tarek.el-sherbiny@arm.com> Change-Id: Ie734c2c3f1ad1bb10a5ea48ca8acb5b5d8e6a504
-
Tuvshinzaya Erdenekhuu authored
Violations of MISRAC 2012 rule 17.7 related to framework files is fixed in this patch. For some functions, the returned value is not used and therefore we prefer to leave a trace. In other cases we either use it or void it. Signed-off-by:
Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com> Change-Id: I0479136a295ce341a7fc0c5429538d67a6947345 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Co-authored-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Tuvshinzaya Erdenekhuu authored
Violations of MISRAC 2012 rule 17.7 related to module files are fixed in this patch. For some functions, the returned value is not used and therefore we prefer to leave a trace. In other cases we either use it or void it. Signed-off-by:
Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com> Change-Id: Ifbeaa20a92e3b8915e93dea7d5a7f55ff01093b7 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Co-authored-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Tuvshinzaya Erdenekhuu authored
Violations of MISRAC 2012 rule 17.7 related to juno file is fixed in this patch. For some functions, the returned value is not used and therefore we prefer to leave a trace. In other cases we either use it or void it. Signed-off-by:
Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com> Change-Id: Ife29de2cd187471e831094ae4ba699ab2d09bf3f Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Co-authored-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Tuvshinzaya Erdenekhuu authored
Violations of MISRAC 2012 rule 17.7 related to scmi files are fixed in this patch. For some functions, the returned value is not used and therefore we prefer to leave a trace. In other cases we either use it or void it. Signed-off-by:
Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com> Change-Id: Ide89ea7642a7cd83817059f0d5d0c567ce1d5a62 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Co-authored-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Nicola Mazzucato authored
For string and array manipulation in the codebase we use the functions provided by the standard library. To standardise a set of checks that can be performed on those functions, create a framework interface that provide the same functionality but available at framework level. Change-Id: I5b5c3f317e6079aa9adcca9e3359b2b1d854370b Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
- 10 Dec, 2021 1 commit
-
-
Nicola Mazzucato authored
Previous commit `98981661 ` removed the scmi_sensor header inclusion, but that breaks the build when SENSOR_EVENTS are selected. Reintroduce the header but this time guarded by its build definition. Change-Id: I1200d78bafa84329a35e61f222cfde45f490053d Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
- 09 Dec, 2021 29 commits
-
-
Anurag Koul authored
Due to a corruption issue in the trace output stream on SoC, the drive strength and slew rate of the trace output pad signals, both of clock as well as the data, need to be changed from their default values at reset in the corresponding SCC regsiters. The drive strength is bumped up to 12mA from default 8mA whilst the slew rate is changed to FAST from the default value of SLOW. Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ibc3efe0cee232d4238c5286060652eedee769ad8
-
Sahil authored
Different platform_info sds struct definition will be used for fvp and soc. Signed-off-by:
sahil <sahil@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I99de0ad839a480287a1329f4ab3a0845c9fd757b
-
Manoj Kumar authored
Support has been added for 1466 MHz and the DDR frequency has been changed from 1333MHz to 1466MHz Co-authored-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I0d32090585b5ed94906b5da677501f82e59465b5
-
Anurag Koul authored
Because of an issue with unaligned accesses with MHU SRAM, move AP-SCP MHU mailbox memory region from SRAM to AP Non-trusted RAM. Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ibd0f9cc8949b10dd1e9e67ba6e05df801832abd7
-
chandnich authored
On Morello SoC platform, SCP has to communicate with PCC over shared memory interface for system shutdown and reboot. This patch adds support for the same. Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I46ad477552f40c530605ea99fe4d30472ecb28d4
-
chandnich authored
Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ibd0d22c587472e4ef53218774424a973dc58d7d9
-
chandnich authored
This is a simple protocol for sending and receiving messages between SCP and PCC using shared memory. The buffer sizes must be defined to be identical in size. Payload sizes must be identical as well. The protocol works by having two FIFO-style buffers in shared memory, each processors TX buffer is mapped as the others RX buffer and vice versa. Since it's a simple FIFO implementation, no mutexes or other access control methods are necessary as for a given buffer, there is only one producer and one consumer. This guarantees that messages are processed in the order that they are received. Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I73bc46dd9db2eecd183b5c13e29d9e034fc76da8
-
chandnich authored
Account for tag bit storage size in the DDR and print total 'usable' DDR Size - in a more human-readable form. Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ibf216df07bb177248ab1a315b22ae8cbfbad7abf
-
chandnich authored
This patch adds the DIMM and Morello DDR PHY changes required for Morello SoC Platform. mod_dmc_bing.c file has also been modified to incorporate SoC specific changes. Co-authored-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I07956302ff70978498e70e45487cc9f22b373024
-
chandnich authored
By default, SCP would boot in server mode and configuration of the client/server mode would be done in other bootloader stages. Opmode (client/server) is now controller via SCC BOOT_GPR1 register bits and is no longer required in the SCP DMC config. Co-authored-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Change-Id: Ib1246c0b724883819f92bbf6db94e78572bf1db2
-
chandnich authored
The BOOT_GPR1 information is now passed over to TF-A via the shared sds_platform_info structure by SCP. The BOOT_GPR1 implements the configuration bits in BOOT_GPR1 SCC register. The configuration bits currently includes: - Bit 0 - Bing client/server mode configuration - Bit 1 - Reserved - Bit 2 - Bing C1 tag cache enable/disable - Bit 3 - Bing C2 tag cache enable/disable Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ida3f70bf8f5cbd050aec3a137ef29bbaa42cf31c
-
arnoldgb-arm authored
Add functionalily to calculate the PLL parameters for any given frequency as opposed to having the parameters statically defined in the PLL configuration file for each particular frequency. Signed-off-by:
Arnold Gabriel Benedict <arnoldgabriel.benedict@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I97391122a919efdb550cf8569f6f60d66b5663bc
-
Manoj Kumar authored
Add configuration data required by cdns_i2c, a SCP core module. This module is required to communicate to attached DIMM in order to query the DRAM configuration/information. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I9dae87e9db6b70bd403150d7259129d48489aa64
-
Manoj Kumar authored
Enable MCP RAM firmware build for Morello SoC. The target image is labelled as "mcp_ramfw_soc". Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I61a09113b1a567f4c208b90605e604a508e7258b
-
Manoj Kumar authored
Add configuration data for PL011 UART module which is used as a console for firmware logs. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ib32a33fd8ec5d86b140164449ff808c404a31302
-
Manoj Kumar authored
Add configuration data for SCMI agent to be used by MCP for communication with SCP. Also, add config files for mhu and smt modules. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ic2ec8d747550e59fb3e0e325cdf0ea0f46683b3e
-
Manoj Kumar authored
Add configuration data for Armv7 MPU and MCP instruction/data memory layout for linker script. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I8f05b9fee2dca6ab6e9bf794252998fbae5332da
-
Manoj Kumar authored
Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: If2e1f2cf3d9ae372e80d5dc67f85545a87cc7fb7
-
Manoj Kumar authored
Add MCP RAM firmware config data for MCP system and pik clocks. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I690b3f5edfc08365169aa8cec4ca74398e2b2408
-
Manoj Kumar authored
Enable SCP RAM firmware build for Morello SoC. The target image is labelled as "scp_ramfw_soc". Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I7a1e00ea31a45b7d3af1efbb5364a7a6ee0fd135
-
Manoj Kumar authored
Add configuration data for Morello's dmc_bing module. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Id3d05f6f5c524cca1404e9b344251546c2b07071
-
Manoj Kumar authored
Add SCP Instruction/Data memory layout required by the linker script. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I7f2b32104c40ad13015e68b4510ec558e6993ca4
-
Manoj Kumar authored
Add config data for the CLI debugger module which provides basic system investigation functionality such as memory read/write, register dumps, module initialization, etc. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Ifd2e9c640bcba41541b93c0e420bbafc369449a7
-
Manoj Kumar authored
Expose the currently supported SCMI protocol-specific messages/ attributes for PSCI and OSPM agents to the resource_perms module. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I2ae5bf0196337ca0654da944b46534cb253e73db
-
Manoj Kumar authored
Enable DVFS (frequency scaling only). Voltage scaling is not supported at the moment and will be enabled at a later stage. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I1fa437ccd8de4c88f23fc8e29156fc2e831505ec
-
Manoj Kumar authored
Configure the CCIX root port outbound region map with the ECAM, MMIO32/64, and IO regions. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I774cb3a1714aa3aabdcdb29c35188d9eef0be348
-
Manoj Kumar authored
Add configuration data for the CMN interconnect - cmn_skeena for Morello. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: Iaf5d74ac95c9213c214b92cf31bf037291344838
-
Manoj Kumar authored
Add configuration data for scmi clock and scmi management protocols. SCMI management protocol is used for facilitating SCMI communication between SCP and MCP. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I357d09daa3b174f8865d0ca7ca305387a6f2e17c
-
Manoj Kumar authored
Add configurations for ssc and system_info modules. Signed-off-by:
Manoj Kumar <manoj.kumar3@arm.com> Signed-off-by:
Anurag Koul <anurag.koul@arm.com> Change-Id: I98a73ca81c9d26bd05499215fc949866e3c54e77
-