]> git.baikalelectronics.ru Git - arm-tf.git/log
arm-tf.git
3 years agorefactor(ufs): adds a function for sending command
anans [Fri, 11 Mar 2022 14:37:39 +0000 (20:07 +0530)]
refactor(ufs): adds a function for sending command

new function for sending commands and reuses that function in the
driver, this can also be used to have retries for specific
commands in the future

Signed-off-by: anans <anans@google.com>
Change-Id: Ie01f36ff8e2df072db4d97929d293b80ed24f04b

3 years agoMerge "fix(brcm): allow build to specify mbedTLS absolute path" into integration
Joanna Farley [Fri, 11 Mar 2022 09:31:16 +0000 (10:31 +0100)]
Merge "fix(brcm): allow build to specify mbedTLS absolute path" into integration

3 years agoMerge "fix(fvp): op-tee sp manifest doesn't map gicd" into integration
Olivier Deprez [Thu, 10 Mar 2022 17:47:09 +0000 (18:47 +0100)]
Merge "fix(fvp): op-tee sp manifest doesn't map gicd" into integration

3 years agoMerge "fix(fvp): FCONF Trace Not Shown" into integration
Madhukar Pappireddy [Thu, 10 Mar 2022 17:24:14 +0000 (18:24 +0100)]
Merge "fix(fvp):  FCONF Trace Not Shown" into integration

3 years agoMerge changes from topic "uart_segregation" into integration
Madhukar Pappireddy [Thu, 10 Mar 2022 15:36:29 +0000 (16:36 +0100)]
Merge changes from topic "uart_segregation" into integration

* changes:
  feat(sgi): add page table translation entry for secure uart
  feat(sgi): route TF-A logs via secure uart
  feat(sgi): deviate from arm css common uart related definitions

3 years agofix(brcm): allow build to specify mbedTLS absolute path
Manish V Badarkhe [Wed, 9 Mar 2022 21:49:59 +0000 (21:49 +0000)]
fix(brcm): allow build to specify mbedTLS absolute path

Updated makefile so that build can accept absolute mbedTLS path.

Change-Id: Ife73266a01d7ed938aafc5e370240023237ebf61
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
3 years agofix(fvp): FCONF Trace Not Shown
Juan Pablo Conde [Tue, 1 Feb 2022 20:19:58 +0000 (15:19 -0500)]
fix(fvp):  FCONF Trace Not Shown

Updating call order for arm_console_boot_init() and arm_bl31_early_platform_setup().

Signed-off-by:  Juan Pablo Conde <juanpablo.conde@arm.com>
Change-Id: If932fff2ee4282a0aacf8751fa81e7665b886467

3 years agoMerge "fix(brcm): fix the build failure with mbedTLS config" into integration
Joanna Farley [Thu, 10 Mar 2022 09:14:49 +0000 (10:14 +0100)]
Merge "fix(brcm): fix the build failure with mbedTLS config" into integration

3 years agoMerge "fix(gpt_rme): rework delegating/undelegating sequence" into integration
Soby Mathew [Wed, 9 Mar 2022 19:47:08 +0000 (20:47 +0100)]
Merge "fix(gpt_rme): rework delegating/undelegating sequence" into integration

3 years agofix(brcm): fix the build failure with mbedTLS config
Manish V Badarkhe [Wed, 9 Mar 2022 14:12:34 +0000 (14:12 +0000)]
fix(brcm): fix the build failure with mbedTLS config

Patch [1] introduces a mechanism to provide the platform
specified mbedTLS config file, but that result in build failure
for Broadcom platform.
This build failure is due to the absence of the mbedTLS configuration
file i.e. brcm_mbedtls_config.h in the TF-A source code repository.
"fatal error: brcm_mbedtls_config.h: No such file or directory"

This problem was resolved by removing the 'brcm_mbedtls_config.h' entry
from the broadcom platform makefile, allowing this platform to use
the default mbedtls_config.h file.

[1]: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/13726

Signed-off-by: Manish V Badarkhe <manish.badarkhe@arm.com>
Change-Id: I7cc2efc049aefd3ebce1ae513df9b265fe31ded6

3 years agofeat(sgi): add page table translation entry for secure uart
Rohit Mathew [Mon, 13 Dec 2021 15:33:04 +0000 (15:33 +0000)]
feat(sgi): add page table translation entry for secure uart

Add page table translation entry for secure uart so that logs from
secure partition can be routed via the same.

Signed-off-by: Rohit Mathew <rohit.mathew@arm.com>
Change-Id: I8574b31d5d138d9f94972deb903124f8c5b70ce4

3 years agofeat(sgi): route TF-A logs via secure uart
Rohit Mathew [Mon, 13 Dec 2021 15:40:25 +0000 (15:40 +0000)]
feat(sgi): route TF-A logs via secure uart

Route the boot, runtime and crash stage logs via secure UART port
instead of the existing use of non-secure UART. This aligns with the
security state the PE is in when logs are put out. In addition to this,
this allows consolidation of the UART related macros across all the
variants of the Neoverse reference design platforms.

Signed-off-by: Rohit Mathew <rohit.mathew@arm.com>
Change-Id: I8896ae05eaedf06dead520659375af0329f31015

3 years agofeat(sgi): deviate from arm css common uart related definitions
Rohit Mathew [Mon, 13 Dec 2021 13:50:15 +0000 (13:50 +0000)]
feat(sgi): deviate from arm css common uart related definitions

The Neoverse reference design platforms will migrate to use different
set of secure and non-secure UART ports. This implies that the board
specific macros defined in the common Arm platform code will no longer
be usable for Neoverse reference design platforms.

In preparation for migrating to a different set of UART ports, add a
Neoverse reference design platform specific copy of the board
definitions. The value of these definitions will be changed in
subsequent patches.

Signed-off-by: Rohit Mathew <rohit.mathew@arm.com>
Change-Id: I39170848ecd81a7c1bbd3689bd905e45f9435f5c

3 years agofix(gpt_rme): rework delegating/undelegating sequence
Robert Wakim [Thu, 21 Oct 2021 14:39:56 +0000 (15:39 +0100)]
fix(gpt_rme): rework delegating/undelegating sequence

The previous delegating/undelegating sequence was incorrect as per the
specification DDI0615, "Architecture Reference Manual Supplement, The
Realm  Management Extension (RME), for Armv9-A" Sections A1.1.1 and
A1.1.2

Off topic:
 - cleaning the gpt_is_gpi_valid and gpt_check_pass_overlap

Change-Id: Idb64d0a2e6204f1708951137062847938ab5e0ac
Signed-off-by: Robert Wakim <robert.wakim@arm.com>
3 years agoMerge changes I713f6e93,Iac4fbf4d,I43d02c77,Iadecd544,Ib31f9c4a, ... into integration
Madhukar Pappireddy [Wed, 9 Mar 2022 14:17:24 +0000 (15:17 +0100)]
Merge changes I713f6e93,Iac4fbf4d,I43d02c77,Iadecd544,Ib31f9c4a, ... into integration

* changes:
  build(intel): enable access to on-chip ram in BL31 for N5X
  fix(intel): make FPGA memory configurations platform specific
  fix(intel): fix ECC Double Bit Error handling
  build(intel): define a macro for SIMICS build
  build(intel): add N5X as a new Intel platform
  build(intel): initial commit for crypto driver

3 years agofix(fvp): op-tee sp manifest doesn't map gicd
Olivier Deprez [Tue, 25 May 2021 09:56:01 +0000 (11:56 +0200)]
fix(fvp): op-tee sp manifest doesn't map gicd

Following I2d274fa897171807e39b0ce9c8a28824ff424534:
Remove GICD registers S2 mapping from OP-TEE partition when it runs in a
secure partition on top of Hafnium.
The partition is not meant to access the GIC directly but use the
Hafnium provided interfaces.

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I1a38101f6ae9911662828734a3c9572642123f32

3 years agobuild(intel): enable access to on-chip ram in BL31 for N5X
Boon Khai Ng [Fri, 21 May 2021 14:56:37 +0000 (22:56 +0800)]
build(intel): enable access to on-chip ram in BL31 for N5X

This adds the ncore ccu access and enable access to the
on-chip ram for N5X device in BL31.

Signed-off-by: Boon Khai Ng <boon.khai.ng@intel.com>
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: I713f6e93d33b6e91705547477ca32cfba5c8c13d

3 years agofix(intel): make FPGA memory configurations platform specific
Sieu Mun Tang [Mon, 28 Feb 2022 07:24:59 +0000 (15:24 +0800)]
fix(intel): make FPGA memory configurations platform specific

Define FPGA_CONFIG_SIZE and FPGA_CONFIG_ADDR in
platform-specific header. This is due to different
allocated sizes between platforms.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: Iac4fbf4d4940cdf31834a9d4332f9292870dee76

3 years agofix(intel): fix ECC Double Bit Error handling
Sieu Mun Tang [Mon, 7 Mar 2022 04:13:04 +0000 (12:13 +0800)]
fix(intel): fix ECC Double Bit Error handling

SError and Abort are handled in Linux (EL1) instead of
EL3. This patch adds some functionality that complements the
use cases by Linux as follows:

- Provide SMC for ECC DBE notification to EL3
- Determine type of reset needed and service the request in
  place of Linux

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: I43d02c77f28004a31770be53599a5a42de412211

3 years agobuild(intel): define a macro for SIMICS build
Abdul Halim, Muhammad Hadi Asyrafi [Mon, 29 Jun 2020 04:15:27 +0000 (12:15 +0800)]
build(intel): define a macro for SIMICS build

SIMICS builds have different UART configurations compared
to hardware build. Hence, this patch defines a macro to
differentiate between both.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: Iadecd5445e06611486ac3c6a214a6d0dc8ccd27b

3 years agobuild(intel): add N5X as a new Intel platform
Sieu Mun Tang [Mon, 7 Mar 2022 04:04:59 +0000 (12:04 +0800)]
build(intel): add N5X as a new Intel platform

This commit adds a new Intel platform called N5X.
This preliminary patch only have Bl31 support.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: Ib31f9c4a5a0dabdce81c1d5b0d4776188add7195

3 years agobuild(intel): initial commit for crypto driver
Sieu Mun Tang [Wed, 2 Mar 2022 03:04:09 +0000 (11:04 +0800)]
build(intel): initial commit for crypto driver

This patch adds driver for Intel FPGA's Crypto Services.
These services are provided by Intel platform
Secure Device Manager(SDM) and are made accessible by
processor components (ie ATF).
Below is the list of enabled features:
- Send SDM certificates
- Efuse provision data dump
- Encryption/decryption service
- Hardware IP random number generator

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: If7604cd1cacf27a38a9a29ec6b85b07385e1ea26

3 years agoMerge "fix(errata): workaround for Cortex-A710 2282622" into integration
Bipin Ravi [Tue, 8 Mar 2022 23:05:22 +0000 (00:05 +0100)]
Merge "fix(errata): workaround for  Cortex-A710 2282622" into integration

3 years agofix(errata): workaround for Cortex-A710 2282622
johpow01 [Tue, 1 Mar 2022 00:34:04 +0000 (18:34 -0600)]
fix(errata): workaround for  Cortex-A710 2282622

Cortex-A710 erratum 2282622 is a Cat B erratum that applies to revisions
r0p0, r1p0, and r2p0, and is fixed in r2p1. The workaround is to set
CPUACTLR2_EL1[0] to 1, which will force PLDW/PFRM ST to behave like
PLD/PRFM LD and not cause invalidations to other PE caches.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN1775101

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: Ic48409822536e9eacc003300036a1f0489593020

3 years agoMerge "docs(security): security advisory for CVE-2022-23960" into integration
Madhukar Pappireddy [Tue, 8 Mar 2022 20:58:48 +0000 (21:58 +0100)]
Merge "docs(security): security advisory for CVE-2022-23960" into integration

3 years agodocs(security): security advisory for CVE-2022-23960
Bipin Ravi [Sat, 26 Feb 2022 01:12:10 +0000 (19:12 -0600)]
docs(security): security advisory for CVE-2022-23960

Signed-off-by: Bipin Ravi <bipin.ravi@arm.com>
Change-Id: I17b0847ff71e4a291bf7ba41fd71fe08c400b5e8

3 years agoMerge changes I18d47384,Icc3c7424,I73f20d82,I07325644,Iff10ad26, ... into integration
Madhukar Pappireddy [Tue, 8 Mar 2022 15:29:49 +0000 (16:29 +0100)]
Merge changes I18d47384,Icc3c7424,I73f20d82,I07325644,Iff10ad26, ... into integration

* changes:
  fix(zynqmp): query node status to power up APU
  feat(zynqmp): pm_api_clock_get_num_clocks cleanup
  feat(zynqmp): add feature check support
  fix(zynqmp): use common interface for eemi apis
  feat(zynqmp): add support to get info of xilfpga
  feat(zynqmp): pass ioctl calls to firmware

3 years agoMerge "fix(st-pmic): add static const to pmic_ops" into integration
Madhukar Pappireddy [Tue, 8 Mar 2022 15:03:01 +0000 (16:03 +0100)]
Merge "fix(st-pmic): add static const to pmic_ops" into integration

3 years agofix(st-pmic): add static const to pmic_ops
Yann Gautier [Wed, 9 Feb 2022 16:35:45 +0000 (17:35 +0100)]
fix(st-pmic): add static const to pmic_ops

The static was found by sparse tool:
drivers/st/pmic/stm32mp_pmic.c:456:18: warning: symbol 'pmic_ops'
 was not declared. Should it be static?
The const was also missing.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: Ibb5cfaf67ac980bf0af27712a95dbef05b617c25

3 years agoMerge "refactor(mbedtls): allow platform to specify their config file" into integration
Bipin Ravi [Mon, 7 Mar 2022 20:40:26 +0000 (21:40 +0100)]
Merge "refactor(mbedtls): allow platform to specify their config file" into integration

3 years agoMerge "docs(maintainers): add maintained files for MediaTek SoCs" into integration
Madhukar Pappireddy [Mon, 7 Mar 2022 17:46:39 +0000 (18:46 +0100)]
Merge "docs(maintainers): add maintained files for MediaTek SoCs" into integration

3 years agoMerge "fix(versal): fix the incorrect log message" into integration
Madhukar Pappireddy [Mon, 7 Mar 2022 15:05:21 +0000 (16:05 +0100)]
Merge "fix(versal): fix the incorrect log message" into integration

3 years agofix(versal): fix the incorrect log message
Venkatesh Yadav Abbarapu [Thu, 3 Mar 2022 08:58:36 +0000 (01:58 -0700)]
fix(versal): fix the incorrect log message

When the atf-handoff-params are updated we are returning
FSBL_HANDOFF_SUCCESS, but the return condition is wrongly
updated and added a error log which is incorrect.
Fixing the incorrect log message.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Change-Id: I44ebbb861831b86afcb87f09ddb2e23614393c28

3 years agoMerge "fix(st-clock): initialize pllcfg table" into integration
Madhukar Pappireddy [Sun, 6 Mar 2022 00:24:17 +0000 (01:24 +0100)]
Merge "fix(st-clock): initialize pllcfg table" into integration

3 years agoMerge changes from topic "st-uart-baudrate" into integration
Madhukar Pappireddy [Sun, 6 Mar 2022 00:23:23 +0000 (01:23 +0100)]
Merge changes from topic "st-uart-baudrate" into integration

* changes:
  refactor(st): configure UART baudrate
  docs(stm32mp1): document some compilation flags
  feat(st-uart): manage oversampling by 8
  fix(st-uart): correctly fill BRR register

3 years agorefactor(st): configure UART baudrate
Yann Gautier [Wed, 2 Mar 2022 13:31:55 +0000 (14:31 +0100)]
refactor(st): configure UART baudrate

Add the possibility to configure console UART baudrate, it can be passed
as a command line parameter with STM32MP_UART_BAUDRATE. The default value
remains 115200.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: I000df70c10b2b4dac1449556596f9820c36cf243

3 years agodocs(stm32mp1): document some compilation flags
Yann Gautier [Thu, 3 Mar 2022 17:22:46 +0000 (18:22 +0100)]
docs(stm32mp1): document some compilation flags

Add missing serial boot devices flags.
Add optional compilation flags, and their defauld values.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I507f7110bcd7b9af136a6fc6b8af342b084c8dbc

3 years agofeat(st-uart): manage oversampling by 8
Yann Gautier [Mon, 28 Feb 2022 17:28:06 +0000 (18:28 +0100)]
feat(st-uart): manage oversampling by 8

UART oversampling by 8 allows higher baud rates for UART. This is
required when (UART freq / baudrate) <= 16. In this case the OVER8 bit
needs to be enabled in CR1 register. And the BRR register management is
different:
USARTDIV = (2 * UART freq / baudrate) (with div round nearest)
BRR[15:4] = USARTDIV[15:4]
BRR[3] = 0
BRR[2:0] = USARTDIV[3:0] >> 1

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: Ia3fbeeb73a36a4dc485c7ba428c531e65b6f6c09

3 years agofix(st-uart): correctly fill BRR register
Yann Gautier [Mon, 28 Feb 2022 16:29:49 +0000 (17:29 +0100)]
fix(st-uart): correctly fill BRR register

To get the nearest divisor for BRR register, we use:
Divisor =  (Uart clock + (baudrate / 2)) / baudrate
But lsl was wrongly used instead of lsr to have the division by 2.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: Iedcc3ccdb4cf8268012e82a66df2a9ec48fc1d79

3 years agofix(st-clock): initialize pllcfg table
Yann Gautier [Fri, 4 Mar 2022 10:08:47 +0000 (11:08 +0100)]
fix(st-clock): initialize pllcfg table

The issue was found by Coverity:
CID 376582:    (UNINIT)
    Using uninitialized value "*pllcfg[_PLL4]" when calling
    "stm32mp1_check_pll_conf".
CID 376582:    (UNINIT)
    Using uninitialized value "*pllcfg[_PLL3]" when calling
    "stm32mp1_check_pll_conf".

Check PLL configs are valid before using pllcfg.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I49de849eaf451d0c165a8eb8555112a0a4140bbc

3 years agoMerge "feat(ff-a): forward FFA_VERSION from SPMD to SPMC" into integration
Olivier Deprez [Fri, 4 Mar 2022 12:22:45 +0000 (13:22 +0100)]
Merge "feat(ff-a): forward FFA_VERSION from SPMD to SPMC" into integration

3 years agodocs(maintainers): add maintained files for MediaTek SoCs
Rex-BC Chen [Fri, 4 Mar 2022 03:50:43 +0000 (11:50 +0800)]
docs(maintainers): add maintained files for MediaTek SoCs

Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Change-Id: I2d71b2fef2f2aee507a6e7c4b9b9d8175446a0ca

3 years agoMerge "feat(mt8186): disable 26MHz clock while suspending" into integration
Manish Pandey [Thu, 3 Mar 2022 12:57:27 +0000 (13:57 +0100)]
Merge "feat(mt8186): disable 26MHz clock while suspending" into integration

3 years agofix(zynqmp): query node status to power up APU
Ravi Patel [Thu, 15 Apr 2021 12:55:19 +0000 (05:55 -0700)]
fix(zynqmp): query node status to power up APU

If APU is in suspending state and if wakeup request comes then
PMUFW returns error which is not handled at ATF side.

To fix this, get the APU node status before calling wakeup and
return error if found in suspending state.

Here, we can not handle the error code of pm_req_wakeup() from PMUFW
because ATF is already calling pm_client_wakeup() before calling
pm_req_wakeup().

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: I18d47384e46e22ae49e804093ad0641b7a6349e2

3 years agofeat(zynqmp): pm_api_clock_get_num_clocks cleanup
Michal Simek [Wed, 2 Feb 2022 08:15:31 +0000 (09:15 +0100)]
feat(zynqmp): pm_api_clock_get_num_clocks cleanup

There is no reason to have even one additional useless line that's why
remove it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: Icc3c74249dfe64173aa5c88fb0f9ffe7576fc2aa

3 years agofeat(zynqmp): add feature check support
Ronak Jain [Tue, 21 Dec 2021 09:39:59 +0000 (01:39 -0800)]
feat(zynqmp): add feature check support

This API returns version of supported APIs.

Here, there are three cases to check API version by using feature
check implementation.

1. Completely implemented in TF-A: I mean the EEMI APIs which are
completely implemented in the TF-A only. So check those IDs and
return appropriate version for the same. Right now, it is base
version.

2. Completely implemented in firmware: I mean the EEMI APIs which are
completely implemented in the firmware only. Here, TF-A only passes
Linux request to the firmware to get the version of supported API. So
check those IDs and send request to firmware to get the version and
return to Linux if the version is supported or return the error code
if the feature is not supported.

3. Partially implemented (Implemented in TF-A and firmware both):
First check dependent EEMI API version with the expected version in
the TF-A. If the dependent EEMI API is supported in firmware then
return its version and check with the expected version in the TF-A.
If the version matches then check for the actual requested EEMI API
version. If the version is supported then return version of API
implemented in TF-A.

Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: I73f20d8222c518df1cda7879548b408b130b5b2e

3 years agofix(zynqmp): use common interface for eemi apis
Ronak Jain [Fri, 21 Jan 2022 07:11:18 +0000 (23:11 -0800)]
fix(zynqmp): use common interface for eemi apis

Currently all EEMI API has its own implementation in TF-A which is
redundant. Most EEMI API implementation in TF-A does same work. It
prepares payload received from kernel, sends payload to firmware,
receives response from firmware and send response back to kernel.

So use common interface for EEMI APIs which has similar functionality.
This will optimize TF-A code.

Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: I07325644a1fae80211f2588d5807c21973f6d48f

3 years agofeat(zynqmp): add support to get info of xilfpga
Nava kishore Manne [Thu, 13 Jan 2022 07:59:36 +0000 (13:29 +0530)]
feat(zynqmp): add support to get info of xilfpga

Adds support to get the xilfpga library version and feature list info.

Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com>
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: Iff10ad2628a6a90230c18dc3aebf9dde89f53ecd

3 years agofeat(zynqmp): pass ioctl calls to firmware
Rajan Vaja [Tue, 12 Oct 2021 10:30:09 +0000 (03:30 -0700)]
feat(zynqmp): pass ioctl calls to firmware

Firmware supports new IOCTL for different purposes. To avoid
maintaining new IOCTL IDs in ATF, pass IOCTL call to firmware
for IOCTL IDs implemented in firmware.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: Ie14697c8da9581b0f695f4d33f05161ece558385

3 years agoMerge "feat(zynqmp): increase the max xlat tables when debug build is enabled" into...
Madhukar Pappireddy [Wed, 2 Mar 2022 18:28:13 +0000 (19:28 +0100)]
Merge "feat(zynqmp): increase the max xlat tables when debug build is enabled" into integration

3 years agoMerge "feat(versal): remove the time stamp configuration" into integration
Madhukar Pappireddy [Wed, 2 Mar 2022 17:30:48 +0000 (18:30 +0100)]
Merge "feat(versal): remove the time stamp configuration" into integration

3 years agoMerge "docs(rme): minor update to 4 world execution instructions" into integration
Madhukar Pappireddy [Wed, 2 Mar 2022 15:53:53 +0000 (16:53 +0100)]
Merge "docs(rme): minor update to 4 world execution instructions" into integration

3 years agodocs(rme): minor update to 4 world execution instructions
Manish Pandey [Wed, 2 Mar 2022 14:02:51 +0000 (14:02 +0000)]
docs(rme): minor update to 4 world execution instructions

Following updates done
  - Clarification on building Hafnium
  - New test suite "Invalid memory access"

Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Change-Id: I04a934a648d53a860f06cd6cf3776ee534675bd9

3 years agofeat(zynqmp): increase the max xlat tables when debug build is enabled
Venkatesh Yadav Abbarapu [Wed, 2 Mar 2022 05:10:05 +0000 (22:10 -0700)]
feat(zynqmp): increase the max xlat tables when debug build is enabled

Update the MAX_XLAT_TABLES as the memory map has been
added for the dtb to accomodate in DDR address.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Change-Id: I46225673f40f123cdab38efefb038604da119b58

3 years agofeat(versal): remove the time stamp configuration
Venkatesh Yadav Abbarapu [Sun, 30 Jan 2022 06:17:25 +0000 (23:17 -0700)]
feat(versal): remove the time stamp configuration

Remove the time stamp and system counter configuration, as
this configuration is already done by the first stage bootloader.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Change-Id: I41554dc2e14d97954bff299df9740a5efa30fad9

3 years agoMerge "fix(ufs): don't zero out buf before ufs read" into integration
Madhukar Pappireddy [Tue, 1 Mar 2022 21:58:55 +0000 (22:58 +0100)]
Merge "fix(ufs): don't zero out buf before ufs read" into integration

3 years agorefactor(mbedtls): allow platform to specify their config file
Manish V Badarkhe [Thu, 27 Jan 2022 13:50:23 +0000 (13:50 +0000)]
refactor(mbedtls): allow platform to specify their config file

Common mbedTLS implementation include the fixed configuration
file of mbedTLS and that does not gives flexilibility to the
platform to include their own mbedTLS configuration.
Hence changes are done so that platform can include their own
mbedTLS configuration file.

Signed-off-by: Lucian Paul-Trifu <lucian.paul-trifu@arm.com>
Signed-off-by: Manish V Badarkhe <manish.badarkhe@arm.com>
Change-Id: I04546589f67299e26b0a6a6e151cdf1fdb302607

3 years agofix(ufs): don't zero out buf before ufs read
Channa Kadabi [Mon, 28 Feb 2022 21:35:16 +0000 (13:35 -0800)]
fix(ufs): don't zero out buf before ufs read

ufs_read_blocks always zeros out the buffer before passing
to UFS for DMA. We don't need to zero out buf before reading
from UFS storage, this change remove the memset in ufs_read_blocks.

Signed-off-by: Channa Kadabi <kadabi@google.com>
Change-Id: I8029a7ea07fbd8cce29b383c80a3cfc782c5b7ec

3 years agoMerge "feat(plat/zynqmp): fix section `coherent_ram' will not fit in region `RAM...
Manish Pandey [Tue, 1 Mar 2022 13:58:41 +0000 (14:58 +0100)]
Merge "feat(plat/zynqmp): fix section `coherent_ram' will not fit in region `RAM'" into integration

3 years agoMerge "fix(intel): assert if bl_mem_params is NULL pointer" into integration
Madhukar Pappireddy [Mon, 28 Feb 2022 19:36:30 +0000 (20:36 +0100)]
Merge "fix(intel): assert if bl_mem_params is NULL pointer" into integration

3 years agoMerge changes from topic "st-fix-enum" into integration
Manish Pandey [Mon, 28 Feb 2022 17:30:38 +0000 (18:30 +0100)]
Merge changes from topic "st-fix-enum" into integration

* changes:
  fix(stm32mp1): fix enum prints
  fix(st-clock): print enums as unsigned

3 years agofix(stm32mp1): fix enum prints
Yann Gautier [Mon, 28 Feb 2022 10:39:56 +0000 (11:39 +0100)]
fix(stm32mp1): fix enum prints

With gcc-11, the -Wformat-signedness warning complains about enum values
that should be printed as unsigned values. But the current version of
compiler used in CI states that this parameter is signed. Just cast the
value then.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: Ic0655e5ba9c44fe6abcd9958d7a9972f5de3b7ef

3 years agoMerge changes I75b3e3bf,I4cf9f1d9,I50d2ae74,Idbe62410,I84bbd06e, ... into integration
Madhukar Pappireddy [Mon, 28 Feb 2022 16:18:39 +0000 (17:18 +0100)]
Merge changes I75b3e3bf,I4cf9f1d9,I50d2ae74,Idbe62410,I84bbd06e, ... into integration

* changes:
  fix(intel): null pointer handling for resp_len
  fix(intel): define macros to handle buffer entries
  fix(intel): change SMC return arguments for INTEL_SIP_SMC_MBOX_SEND_CMD
  fix(intel): always set doorbell to SDM after sending command
  fix(intel): fix bit masking issue in intel_secure_reg_update
  fix(intel): fix ddr address range checker
  build(changelog): add new scope for Intel platform

3 years agoMerge "fix(intel): enable HPS QSPI access by default" into integration
Madhukar Pappireddy [Mon, 28 Feb 2022 15:37:06 +0000 (16:37 +0100)]
Merge "fix(intel): enable HPS QSPI access by default" into integration

3 years agofix(st-clock): print enums as unsigned
Yann Gautier [Mon, 28 Feb 2022 10:34:05 +0000 (11:34 +0100)]
fix(st-clock): print enums as unsigned

With gcc-11, the -Wformat-signedness warning complains about enum values
that should be printed as unsigned values. Change %d to %u for several
lines in the clock driver.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: Ia2d24e6feef5e852e0a6bfaa1286fe605f9a16b7

3 years agoMerge "fix(measured-boot): add RMM entry to event_log_metadata" into integration
Sandrine Bailleux [Mon, 28 Feb 2022 09:39:59 +0000 (10:39 +0100)]
Merge "fix(measured-boot): add RMM entry to event_log_metadata" into integration

3 years agoMerge "fix(cert_create): let distclean Makefile target remove the cert_create tool...
Manish Pandey [Fri, 25 Feb 2022 13:52:23 +0000 (14:52 +0100)]
Merge "fix(cert_create): let distclean Makefile target remove the cert_create tool" into integration

3 years agofix(cert_create): let distclean Makefile target remove the cert_create tool
Nicolas Boulenguez [Wed, 31 Mar 2021 10:22:45 +0000 (12:22 +0200)]
fix(cert_create): let distclean Makefile target remove the cert_create tool

For some targets, Make recursively invokes itself in subdirectories.
When delegating the distclean target to tools/cert_create/Makefile,
the submake is called with the clean target instead of realclean.
Because of this, the submake never removes the cert_create executable.

A proper but more intrusive fix would
* avoid confusion about the semantics by following traditions or using
  new names
  https://www.gnu.org/prep/standards/standards.html#Standard-Targets
* avoid typing errors with the special $@ variable.
Something like:

In tools/cert_create/Makefile:
mostlyclean:
  # Remove most objects but keep some results.
        $(call SHELL_DELETE_ALL, src/build_msg.o ${OBJECTS})
clean: mostlyclean
  # mostlyclean, then remove things built by Make.
        $(call SHELL_DELETE,${BINARY})
distclean: clean
  # clean, then remove things built by ./configure (none here).
realclean maintainer-clean: distclean
  # distclean, then remove things built by autootols (none here).

In Makefile:
mostlyclean clean distclean realclean maintainer-clean:
$(MAKE) -C subdir1 $@
$(MAKE) -C subdir2 $@

Signed-off-by: Nicolas Boulenguez <nicolas@debian.org>
Change-Id: Iabfeca3da5724ab90a56ad6dcd6870d0a1d6b07f

3 years agoMerge changes I1784d643,Icb6e3699,I7805756e into integration
Bipin Ravi [Fri, 25 Feb 2022 03:50:31 +0000 (04:50 +0100)]
Merge changes I1784d643,Icb6e3699,I7805756e into integration

* changes:
  fix(errata): workaround for Cortex-A510 erratum 2172148
  fix(errata): workaround for Cortex-A510 erratum 2218950
  fix(errata): workaround for Cortex-A510 erratum 2250311

3 years agofix(errata): workaround for Cortex-A510 erratum 2172148
johpow01 [Wed, 16 Feb 2022 04:55:22 +0000 (22:55 -0600)]
fix(errata): workaround for Cortex-A510 erratum 2172148

Cortex-A510 erratum 2172148 is a Cat B erratum that applies to revisions
r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN2397239

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I1784d643ca3d1d448340cd421facb5f229df1d22

3 years agofix(errata): workaround for Cortex-A510 erratum 2218950
johpow01 [Tue, 15 Feb 2022 02:19:08 +0000 (20:19 -0600)]
fix(errata): workaround for Cortex-A510 erratum 2218950

Cortex-A510 erratum 2218950 is a Cat B erratum that applies to revisions
r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN2397239

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: Icb6e369946f8978a08cf8ed5e4452782efb0a77a

3 years agofix(errata): workaround for Cortex-A510 erratum 2250311
johpow01 [Mon, 14 Feb 2022 03:00:10 +0000 (21:00 -0600)]
fix(errata): workaround for Cortex-A510 erratum 2250311

Cortex-A510 erratum 2250311 is a Cat B erratum that applies to revisions
r0p0, r0p1, r0p2, r0p3 and r1p0 and is fixed in r1p1.

This erratum workaround is a bit different because it interacts with a
feature supported in TFA. The typical method of implementing an errata
workaround will not work in this case as the MPMM feature would just be
re-enabled by context management at every core power on after being
disabled by the errata framework. So in addition to disabling MPMM, this
workaround also sets a flag in the MPMM runtime framework indicating
that the feature should not be enabled even if ENABLE_MPMM=1.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN2397239

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I7805756e65ec90b6ef8af47e200617c9e07a3a7e

3 years agoMerge changes I7b1498fa,I1d2ebee3,I875519ff,I8c427ef2 into integration
Bipin Ravi [Thu, 24 Feb 2022 19:47:47 +0000 (20:47 +0100)]
Merge changes I7b1498fa,I1d2ebee3,I875519ff,I8c427ef2 into integration

* changes:
  fix(errata): workaround for Cortex-A510 erratum 2041909
  fix(errata): workaround for Cortex-A510 erratum 2042739
  fix(errata): workaround for Cortex-A510 erratum 2288014
  fix(errata): workaround for Cortex-A510 erratum 1922240

3 years agoMerge "docs(el3-runtimes): context management refactor proposal" into integration
Soby Mathew [Thu, 24 Feb 2022 14:23:44 +0000 (15:23 +0100)]
Merge "docs(el3-runtimes): context management refactor proposal" into integration

3 years agofeat(mt8186): disable 26MHz clock while suspending
jason-ch chen [Thu, 24 Feb 2022 03:05:23 +0000 (11:05 +0800)]
feat(mt8186): disable 26MHz clock while suspending

Change resource_req to 0 to disable 26MHz clock.
SPM firmware will pull-down SRCLKENA0 after 26MHz off while suspending.

TEST=verify 26MHz clock off using the oscilloscope.
BUG=b:215639203

Signed-off-by: Jason-ch Chen <jason-ch.chen@mediatek.com>
Change-Id: I05702d14a015cabccd6d4af0e3f2a534fbe4dd12

3 years agodocs(el3-runtimes): context management refactor proposal
Soby Mathew [Mon, 24 Jan 2022 11:45:38 +0000 (11:45 +0000)]
docs(el3-runtimes): context management refactor proposal

This patch submits an RFC to refactor the context management
mechanism in TF-A.

Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Change-Id: Ia1ad5a85cb86c129e2feaf36bed123f0067c3965

3 years agoMerge "docs(a3k): add information about system-wide Crypto++ library" into integration
Madhukar Pappireddy [Wed, 23 Feb 2022 15:31:38 +0000 (16:31 +0100)]
Merge "docs(a3k): add information about system-wide Crypto++ library" into integration

3 years agoMerge "fix(a3k): fix comment about BootROM address range" into integration
Madhukar Pappireddy [Wed, 23 Feb 2022 15:27:00 +0000 (16:27 +0100)]
Merge "fix(a3k): fix comment about BootROM address range" into integration

3 years agoMerge "feat(board/rdedmunds): add support for rdedmunds variant" into integration
Madhukar Pappireddy [Wed, 23 Feb 2022 15:25:44 +0000 (16:25 +0100)]
Merge "feat(board/rdedmunds): add support for rdedmunds variant" into integration

3 years agoMerge changes from topic "bug-fix" into integration
Madhukar Pappireddy [Wed, 23 Feb 2022 14:34:57 +0000 (15:34 +0100)]
Merge changes from topic "bug-fix" into integration

* changes:
  fix(nxp-crypto): refine code to avoid hang issue for some of toolchain
  build(changelog): add new scope for nxp crypto
  fix(lx2): drop erratum A-009810

3 years agofix(measured-boot): add RMM entry to event_log_metadata
Tamas Ban [Mon, 10 Jan 2022 14:13:00 +0000 (15:13 +0100)]
fix(measured-boot): add RMM entry to event_log_metadata

Platforms which support Realm world cannot boot up
properly if measured boot is enabled at build time.
An assertions occurs due to the missing RMM entry
in the event_log_metadata array.

Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: I172f10a440797f7c9e1bc79dc72242b40c2521ea

3 years agoMerge "fix(arm): increase ARM_BL_REGIONS count" into integration
Manish Pandey [Wed, 23 Feb 2022 10:56:13 +0000 (11:56 +0100)]
Merge "fix(arm): increase ARM_BL_REGIONS count" into integration

3 years agofix(arm): increase ARM_BL_REGIONS count
Manish V Badarkhe [Tue, 22 Feb 2022 14:45:43 +0000 (14:45 +0000)]
fix(arm): increase ARM_BL_REGIONS count

On RME-enabled platforms, it is currently not possible to incorporate
mapping of all bl_regions specified in bl31 setup[1] with the
ARM_BL_REGIONS macro defined to 6. Hence increased its count to 7.

[1]: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/
plat/arm/common/arm_bl31_setup.c#n380

Change-Id: Ieaa97f026ab2ae6eae22442595aa4122ba0a13c4
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
3 years agofix(intel): null pointer handling for resp_len
Sieu Mun Tang [Sat, 19 Feb 2022 13:49:48 +0000 (21:49 +0800)]
fix(intel): null pointer handling for resp_len

Previous changes from commit #6a659448 updates resp_len from an integer
type to unsigned integer pointer type. This patch adds proper handling
in case resp_len is a null pointer. Resp_len with value 0 are also
changed to NULL to match the type change.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I75b3e3bfbb188d8e7b329ba3b948c23e31dec490

3 years agofix(intel): define macros to handle buffer entries
Abdul Halim, Muhammad Hadi Asyrafi [Fri, 5 Jun 2020 07:12:29 +0000 (15:12 +0800)]
fix(intel): define macros to handle buffer entries

This patch defines a macro to handle Secure Device Manager's (SDM)
pointer to command & response buffer entries and convert them to the
correct physical address.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I4cf9f1d90e0d5ae4e1a2ce84165864b48c2862e7

3 years agofix(intel): change SMC return arguments for INTEL_SIP_SMC_MBOX_SEND_CMD
Sieu Mun Tang [Sat, 19 Feb 2022 12:36:41 +0000 (20:36 +0800)]
fix(intel): change SMC return arguments for INTEL_SIP_SMC_MBOX_SEND_CMD

'INTEL_SIP_SMC_MBOX_SEND_CMD' SMC runtime service will only return
mailbox status and the argument's length back to the caller

Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
Change-Id: I50d2ae74845794cab7bf0858e742b5a70e0ea868

3 years agofix(intel): always set doorbell to SDM after sending command
Siew Chin Lim [Thu, 29 Jul 2021 16:40:48 +0000 (00:40 +0800)]
fix(intel): always set doorbell to SDM after sending command

This patch fixes the mailbox stall issue when sending mailbox command
that is larger than mailbox command FIFO size.

Large mailbox command will be sent to SDM in multiple chunks. HPS will
set doorbell to SDM when command FIFO full (is_doorbell_triggered will
be set to 1) to notify SDM to read the command data from FIFO, so that
HPS can continue to send the next chunk of command data.

However, HPS will not set the doorbell to SDM at the end if the doorbell
have been set earlier due to FIFO full. This will cause SDM mailbox
service stall because it is still waiting for last chunk of command data.

This patch fixes the code to always set the doorbell to SDM at the end
to get rid of stall issue.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Change-Id: Idbe62410a00d92a30c7aeaa26d53d79a910cac0a

3 years agofix(intel): fix bit masking issue in intel_secure_reg_update
Siew Chin Lim [Fri, 9 Jul 2021 16:55:35 +0000 (00:55 +0800)]
fix(intel): fix bit masking issue in intel_secure_reg_update

intel_secure_reg_update function should apply mask to the value before
write into register.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Change-Id: I84bbd06e24b8666528b53030e8359743d438eb5b

3 years agofix(intel): fix ddr address range checker
Abdul Halim, Muhammad Hadi Asyrafi [Fri, 3 Jul 2020 05:22:09 +0000 (13:22 +0800)]
fix(intel): fix ddr address range checker

This patch fix address range checker to make sure that it does not
errors out on NULL address with size 0. Non-secure software will send
this NULL address if the SMC call doesn't need to pass any address buffer.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I7e492c562a311ba989570c4ed465f845333ec865

3 years agobuild(changelog): add new scope for Intel platform
Sieu Mun Tang [Tue, 22 Feb 2022 06:14:26 +0000 (14:14 +0800)]
build(changelog): add new scope for Intel platform

Add new scope for Intel platform.

Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: I1fa7f5e0e5567825615dd0275b204b82fe8c2337

3 years agofix(errata): workaround for Cortex-A510 erratum 2041909
johpow01 [Tue, 11 Jan 2022 23:54:41 +0000 (17:54 -0600)]
fix(errata): workaround for Cortex-A510 erratum 2041909

Cortex-A510 erratum 2041909 is a Cat B erratum that applies to revision
r0p2 and is fixed in r0p3. It is also present in r0p0 and r0p1 but there
is no workaround in these revisions.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN2397239

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I7b1498faa0c79488dee0d11d07f6e9f58144e298

3 years agofix(errata): workaround for Cortex-A510 erratum 2042739
johpow01 [Fri, 7 Jan 2022 23:12:31 +0000 (17:12 -0600)]
fix(errata): workaround for Cortex-A510 erratum 2042739

Cortex-A510 erratum 2042739 is a Cat B erratum that applies to revisions
r0p0, r0p1 and r0p2 and is fixed in r0p3.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN2397239

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I1d2ebee3914396e1e298eb45bdab35ce9e194ad9

3 years agofix(errata): workaround for Cortex-A510 erratum 2288014
johpow01 [Thu, 6 Jan 2022 20:54:49 +0000 (14:54 -0600)]
fix(errata): workaround for Cortex-A510 erratum 2288014

Cortex-A510 erratum 2288014 is a Cat B erratum that applies to revisions
r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN2397239

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I875519ff55be90244cc3d3a7e9f7abad0fc3c2b8

3 years agofix(errata): workaround for Cortex-A510 erratum 1922240
johpow01 [Tue, 4 Jan 2022 22:15:18 +0000 (16:15 -0600)]
fix(errata): workaround for Cortex-A510 erratum 1922240

Cortex-A510 erratum 1922240 is a Cat B erratum that applies to revision
r0p0 and is fixed in r0p1.

Since no errata framework code existed for A510 prior to this patch, it
has been added as well. Also some general cleanup changes in the CPU lib
makefile.

SDEN can be found here:
https://developer.arm.com/documentation/SDEN2397239

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I8c427ef255cb4b38ed3e5c2c7444fcef957277e4

3 years agoMerge changes from topic "x2_errata" into integration
Madhukar Pappireddy [Tue, 22 Feb 2022 17:48:17 +0000 (18:48 +0100)]
Merge changes from topic "x2_errata" into integration

* changes:
  fix(errata): workaround for Cortex-A710 erratum 2136059
  fix(errata): workaround for  Cortex-A710 erratum 2267065
  fix(errata): workaround for Cortex-X2 erratum 2216384
  fix(errata): workaround for Cortex-X2 errata 2081180
  fix(errata): workaround for Cortex-X2 errata 2017096

3 years agoMerge "feat(allwinner): apx803: add aldo1 regulator" into integration
Joanna Farley [Tue, 22 Feb 2022 08:44:46 +0000 (09:44 +0100)]
Merge "feat(allwinner): apx803: add aldo1 regulator" into integration

3 years agoMerge changes from topic "paulliu-imx8m-eventlog" into integration
Madhukar Pappireddy [Mon, 21 Feb 2022 15:41:38 +0000 (16:41 +0100)]
Merge changes from topic "paulliu-imx8m-eventlog" into integration

* changes:
  docs(imx8m): update for measured boot for imx8mm
  feat(plat/imx/imx8m/imx8mm): add support for measured boot

3 years agofeat(allwinner): apx803: add aldo1 regulator
Thierry Bultel [Wed, 1 Dec 2021 10:56:53 +0000 (11:56 +0100)]
feat(allwinner): apx803: add aldo1 regulator

Notice that aldo1 is typically useful for the Olimex A64 board, where
it powers the PE bank through the vcc-pe line.
Without it, it is not possible to light the user led on PE17, for
instance.

Change-Id: I70588bc977b884b22df87f1b075549cb8925925a
Signed-off-by: Thierry Bultel <thierry.bultel@linatsea.fr>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
3 years agofix(intel): assert if bl_mem_params is NULL pointer
Siew Chin Lim [Sat, 12 Jun 2021 05:25:05 +0000 (13:25 +0800)]
fix(intel): assert if bl_mem_params is NULL pointer

This patch fixes the code issue detected by Klocwork scan. Pointer
'bl_mem_params' returned from call to function 'get_bl_mem_params_node'
may be NULL and the NULL pointer may be caused the system crash. Update
the code to assert if unexpected NULL pointer is returned.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Change-Id: I00f3132a6104618cadce26aa303c0b46b5921d5b

3 years agofix(intel): enable HPS QSPI access by default
Abdul Halim, Muhammad Hadi Asyrafi [Tue, 6 Oct 2020 12:09:53 +0000 (20:09 +0800)]
fix(intel): enable HPS QSPI access by default

Request ownership and direct access to QSPI by default in BL2.
Previously, this is only done on QSPI boot mode.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: Ie222bbf9d719f2f70f89d4739c285efe6df4c955