]> git.baikalelectronics.ru Git - arm-tf.git/log
arm-tf.git
5 years agostm32mp1: cosmetics in platform.mk
Yann Gautier [Fri, 18 Sep 2020 08:32:37 +0000 (10:32 +0200)]
stm32mp1: cosmetics in platform.mk

Remove some useless extra tabs or spaces.
Replace some spaces with tabs.

Change-Id: I0e8e2a1a1be7a1109ba7f3e3ae35e3fe1b5b4552
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agostm32mp1: update rules for stm32image tool
Yann Gautier [Fri, 18 Sep 2020 08:21:29 +0000 (10:21 +0200)]
stm32mp1: update rules for stm32image tool

In heavy parallel builds, it has sometimes been seen issues with the
tool not generated before it was needed. Change some rules order and
dependency to solve that.

Change-Id: I8f4b4f46a2ea0fe496bc66bca47c66d1c81d3c99
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agostm32mp1: add macros to define PLAT_PARTITION_MAX_ENTRIES
Yann Gautier [Thu, 17 Sep 2020 10:28:12 +0000 (12:28 +0200)]
stm32mp1: add macros to define PLAT_PARTITION_MAX_ENTRIES

There were fixed values when computing PLAT_PARTITION_MAX_ENTRIES.
Use STM32_BL33_PARTS_NUM and STM32_RUNTIME_PARTS_NUM. The first one is
for the number of copies of BL33. The second one depends on the use case
SP_min or OP-TEE. For OP-TEE, there are 3 partitions. For SP_min, as it
is in the same binary as BL2, it is set to 0. It will be set to 1 if
BL32 is in a separate binary.

Change-Id: Iba4d8ec5fbc713bebfbdcd9f9426c3fded20d3ad
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agostm32mp1: sort platform.mk
Yann Gautier [Wed, 12 Feb 2020 08:30:49 +0000 (09:30 +0100)]
stm32mp1: sort platform.mk

First put Makefile variables definition, then definitions for each feature,
then C flags, then source files, then compilation rules.

Change-Id: I238115ea2fe4ebafccd2135979814c27932c34e2
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agostm32mp1: use ASFLAGS for binary paths
Yann Gautier [Thu, 23 Jan 2020 17:41:20 +0000 (18:41 +0100)]
stm32mp1: use ASFLAGS for binary paths

To simplify the rule that creates the concatenated binary, use ASFLAGS
instead of adding all paths in the AS command line. This allows a better
management if a binary is not present.

Change-Id: Ic8b4566e7dedc6f55be355a92e3b214cef138d9b
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agostm32mp1: use internal MAKE_LD macro to generate stm32 linker files
Yann Gautier [Thu, 14 May 2020 14:54:12 +0000 (16:54 +0200)]
stm32mp1: use internal MAKE_LD macro to generate stm32 linker files

The previous proprietary version was not correctly handling dependencies.
Using MAKE_LD from make_helpers files now correctly handles that.
The generated linker script is the same as before.

Change-Id: Iccfd8dc3fffa7a33e73b184b72e0dfd5d26bc9c9
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agoMerge "fdt: Fix coverity complaint about 32-bit multiplication" into integration
Madhukar Pappireddy [Wed, 7 Oct 2020 14:28:11 +0000 (14:28 +0000)]
Merge "fdt: Fix coverity complaint about 32-bit multiplication" into integration

5 years agofdt: Fix coverity complaint about 32-bit multiplication
Andre Przywara [Wed, 7 Oct 2020 10:09:42 +0000 (11:09 +0100)]
fdt: Fix coverity complaint about 32-bit multiplication

Coverity raised an eyebrow over our GICR frame size calculation:
========
    CID 362942:  Integer handling issues  (OVERFLOW_BEFORE_WIDEN)
Potentially overflowing expression "nr_cores * gicr_frame_size" with type
"unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic,
and then used in a context that expects an expression of type "uint64_t"
(64 bits, unsigned).
========

Even with a GICv4 (256KB frame size) we need 16384 cores to overflow
32-bit, so it's not a practical issue.

But it's also easy to fix, so let's just do that: cast gicr_frame_size
to an unsigned 64-bit integer, so that the multiplication is done in the
64-bit realm.

Change-Id: Iad10e19b9e58d5fbf9d13205fbcef0aac5ae48af
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoMerge changes from topics "rename-herculesae-a78ae", "rename-zeus-v1" into integration
Madhukar Pappireddy [Tue, 6 Oct 2020 23:35:55 +0000 (23:35 +0000)]
Merge changes from topics "rename-herculesae-a78ae", "rename-zeus-v1" into integration

* changes:
  Rename Neoverse Zeus to Neoverse V1
  Rename Cortex Hercules AE to Cortex 78 AE

5 years agoMerge "plat/arm: common: add guard for arm_get_rotpk_info_regs" into integration
Madhukar Pappireddy [Tue, 6 Oct 2020 16:09:00 +0000 (16:09 +0000)]
Merge "plat/arm: common: add guard for arm_get_rotpk_info_regs" into integration

5 years agoMerge "doc: Update list of supported FVP platforms" into integration
Madhukar Pappireddy [Tue, 6 Oct 2020 16:07:57 +0000 (16:07 +0000)]
Merge "doc: Update list of supported FVP platforms" into integration

5 years agoplat/arm: common: add guard for arm_get_rotpk_info_regs
Usama Arif [Mon, 5 Oct 2020 09:18:52 +0000 (10:18 +0100)]
plat/arm: common: add guard for arm_get_rotpk_info_regs

Only define arm_get_rotpk_info_regs if ROTPK is in registers,
i.e. (ARM_ROTPK_LOCATION_ID == ARM_ROTPK_REGS_ID). This will
allow platform build without definition of TZ_PUB_KEY_HASH_BASE
if dedicated registers for ROTPK are not available on the platform.

Change-Id: I74ee2d5007f5d876a031a1efca20ebee2dede0c7
Signed-off-by: Usama Arif <usama.arif@arm.com>
5 years agoMerge changes I959d1343,I6992df1a,I687e35cb,Ia5f2ee31,Ifd0bc6aa, ... into integration
Manish Pandey [Tue, 6 Oct 2020 08:42:53 +0000 (08:42 +0000)]
Merge changes I959d1343,I6992df1a,I687e35cb,Ia5f2ee31,Ifd0bc6aa, ... into integration

* changes:
  docs: marvell: update mv_ddr branch
  plat: marvell: armada: a3k: rename the UART images archive
  plat: marvell: armada: a3k: allow image load to RAM address 0
  marvell: comphy: cp110: add support for USB comphy polarity invert
  marvell: comphy: cp110: add support for SATA comphy polarity invert
  marvell: comphy: cp110: implement erratum IPCE_COMPHY-1353
  drivers: marvell: mochi: Update AP incoming masters secure level
  plat: marvell: armada: add ccu window for workaround errata-id 3033912
  plat: marvell: ap806: implement workaround for errata-id FE-4265711

5 years agoMerge "Workaround for Cortex A76 erratum 1868343" into integration
Madhukar Pappireddy [Mon, 5 Oct 2020 22:49:10 +0000 (22:49 +0000)]
Merge "Workaround for Cortex A76 erratum 1868343" into integration

5 years agoRename Neoverse Zeus to Neoverse V1
Jimmy Brisson [Wed, 30 Sep 2020 20:28:03 +0000 (15:28 -0500)]
Rename Neoverse Zeus to Neoverse V1

Change-Id: Ieb411e2f8092fa82062e619305b680673a8f184f
Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
5 years agoRename Cortex Hercules AE to Cortex 78 AE
Jimmy Brisson [Wed, 30 Sep 2020 20:34:51 +0000 (15:34 -0500)]
Rename Cortex Hercules AE to Cortex 78 AE

Change-Id: Ic0ca51a855660509264ff0d084c068e1421ad09a
Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
5 years agoMerge "doc: stm32mp1: Improve OP-TEE related documentation" into integration
Madhukar Pappireddy [Sun, 4 Oct 2020 16:12:35 +0000 (16:12 +0000)]
Merge "doc: stm32mp1: Improve OP-TEE related documentation" into integration

5 years agodocs: marvell: update mv_ddr branch
Marcin Wojtas [Sun, 4 Oct 2020 14:00:07 +0000 (16:00 +0200)]
docs: marvell: update mv_ddr branch

Now that the BLE image sources (mv_ddr) are updated, reflect
the proper branch in the Armada build howto.

Change-Id: I959d1343d0dfdd681c7e39bdcaed9b36aaddfca1
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
5 years agoplat: marvell: armada: a3k: rename the UART images archive
Konstantin Porotchkin [Thu, 24 Oct 2019 07:48:08 +0000 (10:48 +0300)]
plat: marvell: armada: a3k: rename the UART images archive

Add *.bin extension to UART recovery images archive name.
Such naming will cause the UART recovery images to be copied to the
Buildroot output folder upon flash image build.

Change-Id: I6992df1ab2ded725bed58e5baf245ae92c4cb289
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
5 years agoplat: marvell: armada: a3k: allow image load to RAM address 0
Konstantin Porotchkin [Tue, 27 Aug 2019 13:21:10 +0000 (16:21 +0300)]
plat: marvell: armada: a3k: allow image load to RAM address 0

Marvell uses RAM address 0x0 for loading BL33 stage images.
When ATF is built with DEBUG=1, its IO subsystem fails on
assert checking the destination RAM address != 0.
This patch adds PLAT_ALLOW_ZERO_ADDR_COPY to A3K platform
allowing to bypass the above check in debug mode.

Change-Id: I687e35cb2e9dc3166bdaa81b3904c20b784c5c6a
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
5 years agomarvell: comphy: cp110: add support for USB comphy polarity invert
Grzegorz Jaszczyk [Tue, 21 Jan 2020 16:02:29 +0000 (17:02 +0100)]
marvell: comphy: cp110: add support for USB comphy polarity invert

The polarity inversion for USB was not tested due to lack of hw design
which requires it. Currently all supported boards doesn't require USB
phy polarity inversion, therefore COMPHY_POLARITY_NO_INVERT is set for
all boards. Enable the option for the ones that need it.

Change-Id: Ia5f2ee313a93962e94963e2dd8a759ef6d9da369
Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
5 years agomarvell: comphy: cp110: add support for SATA comphy polarity invert
Grzegorz Jaszczyk [Tue, 21 Jan 2020 16:02:10 +0000 (17:02 +0100)]
marvell: comphy: cp110: add support for SATA comphy polarity invert

The cp110 comphy has ability to invert RX and/or TX polarity. Polarity
depends on board design. Currently all supported boards doesn't require
SATA phy polarity invert, therefore COMPHY_POLARITY_NO_INVERT is set for
all boards.

Change-Id: Ifd0bc6aaf8a76a0928132b197422f3193cf020d5
Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
5 years agomarvell: comphy: cp110: implement erratum IPCE_COMPHY-1353
Marcin Wojtas [Mon, 9 Sep 2019 01:38:18 +0000 (03:38 +0200)]
marvell: comphy: cp110: implement erratum IPCE_COMPHY-1353

According to erratum IPCE_COMPHY-1353 the TX_IDLE bit should
be toggled in addition to the XFI/SFI PHY reset.

Change-Id: Idd2c2abfcb2f960caa01e6d69db524c2e4734f50
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
5 years agodrivers: marvell: mochi: Update AP incoming masters secure level
Konstantin Porotchkin [Thu, 22 Aug 2019 11:23:34 +0000 (14:23 +0300)]
drivers: marvell: mochi: Update AP incoming masters secure level

Do not force non-secure access level for PIDI masters when LLC_SRAM
is enabled. The EIP197 is located on CP0 and need to access secure
SRAM in AP LLC. This requires EIP197 DMA to have AXPROT[1]=0 and not
changed when forwarded to address decoding tables.

Change-Id: I8962db94a124350c14220ba6d0364d294ae4664a
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
5 years agoplat: marvell: armada: add ccu window for workaround errata-id 3033912
Alex Leibovich [Wed, 25 Dec 2019 07:11:38 +0000 (09:11 +0200)]
plat: marvell: armada: add ccu window for workaround errata-id 3033912

Added ccu window to allow access to addresses
in the range [0xf100_0000, 0xf1ff_ffff].

Change-Id: I63ee68338d674114d01cd627198dc907653493e8
Signed-off-by: Alex Leibovich <alexl@marvell.com>
5 years agoplat: marvell: ap806: implement workaround for errata-id FE-4265711
Stefan Chulski [Mon, 24 Jun 2019 16:13:38 +0000 (19:13 +0300)]
plat: marvell: ap806: implement workaround for errata-id FE-4265711

ERRATA ID: FE-4265711 - Incorrect CNTVAL reading

CNTVAL reflects the global system counter value in binary format.
Due to this erratum, the CNTVAL value presented to the processor
may be incorrect for several clock cycles.

Workaround: Override the default value of AP Register Device General
control 20 [19:16] and AP Register Device General Control 21 [11:8]
to the value of 0x3.

Change-Id: I1705608d08acd9631ab98d6f7ceada34d6b8336f
Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
5 years agoMerge "libfdt: Upgrade libfdt source files" into integration
Alexei Fedorov [Sat, 3 Oct 2020 13:43:13 +0000 (13:43 +0000)]
Merge "libfdt: Upgrade libfdt source files" into integration

5 years agoMerge "spmd: Fix signedness comparison warning" into integration
Alexei Fedorov [Sat, 3 Oct 2020 12:59:49 +0000 (12:59 +0000)]
Merge "spmd: Fix signedness comparison warning" into integration

5 years agoWorkaround for Cortex A76 erratum 1868343
johpow01 [Tue, 29 Sep 2020 22:19:09 +0000 (17:19 -0500)]
Workaround for Cortex A76 erratum 1868343

Cortex A76 erratum 1868343 is a Cat B erratum, present in older
revisions of the Cortex A76 processor core.  The workaround is to
set a bit in the CPUACTLR_EL1 system register, which delays instruction
fetch after branch misprediction. This workaround will have a small
impact on performance.

This workaround is the same as workarounds for errata 1262606 and
1275112, so all 3 have been combined into one function call.

SDEN can be found here:
https://documentation-service.arm.com/static/5f2bed6d60a93e65927bc8e7

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

5 years agoMerge "morello: Add Morello platform documentation" into integration
Madhukar Pappireddy [Fri, 2 Oct 2020 22:58:27 +0000 (22:58 +0000)]
Merge "morello: Add Morello platform documentation" into integration

5 years agoMerge "fdts: stm32mp1: realign device tree with kernel" into integration
Madhukar Pappireddy [Fri, 2 Oct 2020 15:07:26 +0000 (15:07 +0000)]
Merge "fdts: stm32mp1: realign device tree with kernel" into integration

5 years agolibfdt: Upgrade libfdt source files
Andre Przywara [Thu, 1 Oct 2020 21:41:48 +0000 (22:41 +0100)]
libfdt: Upgrade libfdt source files

Update the libfdt source files, the upstream commit is 73e0f143b73d
("libfdt: fdt_strerror(): Fix comparison warning").

This brings us the fixes for the signed/unsigned comparison warnings,
so platforms can enable -Wsign-compare now.

Change-Id: I303d891c82ffea0acefdde27289339db5ac5a289
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agospmd: Fix signedness comparison warning
Andre Przywara [Fri, 2 Oct 2020 10:54:56 +0000 (11:54 +0100)]
spmd: Fix signedness comparison warning

With -Wsign-compare, compilers issue a warning in the SPMD code:
====================
services/std_svc/spmd/spmd_pm.c:35:22: error: comparison of integer
expressions of different signedness: 'int' and 'unsigned int'
[-Werror=sign-compare]
   35 |  if ((id < 0) || (id >= PLATFORM_CORE_COUNT)) {
      |                      ^~
cc1: all warnings being treated as errors
====================

Since we just established that "id" is positive, we can safely cast it
to an unsigned type to make the comparison have matching types.

Change-Id: I6ef24804c88136d7e3f15de008e4fea854f10ffe
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoMerge "morello: Add changes to fix build of Morello Platform" into integration
Alexei Fedorov [Fri, 2 Oct 2020 11:56:02 +0000 (11:56 +0000)]
Merge "morello: Add changes to fix build of Morello Platform" into integration

5 years agomorello: Add Morello platform documentation
Chandni Cherukuri [Thu, 1 Oct 2020 07:40:45 +0000 (13:10 +0530)]
morello: Add Morello platform documentation

Morello platform has a SCP which brings the primary Rainier CPU
out of reset which starts executing at BL31.

This patch provides documentation support for Morello platform.

Signed-off-by: Chandni Cherukuri <chandni.cherukuri@arm.com>
Change-Id: I38f596668e2b14862d543fabc04549ff34bfb8a2

5 years agodoc: Update list of supported FVP platforms
Manish V Badarkhe [Fri, 2 Oct 2020 06:27:27 +0000 (07:27 +0100)]
doc: Update list of supported FVP platforms

Updated the list of supported FVP platform as per latest
FVP platform release.

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

5 years agodoc: stm32mp1: Improve OP-TEE related documentation
Jan Kiszka [Fri, 2 Oct 2020 08:07:00 +0000 (10:07 +0200)]
doc: stm32mp1: Improve OP-TEE related documentation

stm32mp15_optee_defconfig has been dropped from U-Boot as it became
identical to stm32mp15_trusted_defconfig.

Furthermore give a hint how OP-TEE is supposed to be installed.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Change-Id: Id8f0bd84a87e3a62072dd4405aadddcdd3511213

5 years agomorello: Add changes to fix build of Morello Platform
Chandni Cherukuri [Thu, 1 Oct 2020 04:41:44 +0000 (10:11 +0530)]
morello: Add changes to fix build of Morello Platform

This patch makes changes required to get the morello
platform working with the tip of TF-A.

Change-Id: I095006615c9959bba49fcc75b52e1de7d7486309
Signed-off-by: Chandni Cherukuri <chandni.cherukuri@arm.com>
5 years agoMerge "Measured Boot Driver: Fix MISRA-C 2012 defects" into integration
Madhukar Pappireddy [Thu, 1 Oct 2020 18:18:32 +0000 (18:18 +0000)]
Merge "Measured Boot Driver: Fix MISRA-C 2012 defects" into integration

5 years agoMerge "Crypto library: Migrate support to MbedTLS v2.24.0" into integration
Olivier Deprez [Thu, 1 Oct 2020 13:21:14 +0000 (13:21 +0000)]
Merge "Crypto library: Migrate support to MbedTLS v2.24.0" into integration

5 years agoCrypto library: Migrate support to MbedTLS v2.24.0
Alexei Fedorov [Mon, 21 Sep 2020 11:23:54 +0000 (12:23 +0100)]
Crypto library: Migrate support to MbedTLS v2.24.0

This patch migrates the mbedcrypto dependency for TF-A
to mbedTLS repo v2.24.0 which is the latest release tag.
The relevant documentation is updated to reflect the
use of new version.

Change-Id: I116f44242e8c98e856416ea871d11abd3234dac1
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
5 years agoMerge changes from topic "stm32_exceptions" into integration
Manish Pandey [Wed, 30 Sep 2020 07:58:44 +0000 (07:58 +0000)]
Merge changes from topic "stm32_exceptions" into integration

* changes:
  stm32mp1: correct crash console GPIO alternate configuration
  stm32mp1: add plat_panic_handler function
  stm32mp1: update plat_report_exception
  Align AARCH32 version of debug.S with AARCH64

5 years agoMerge changes from topic "fpga_generic" into integration
André Przywara [Wed, 30 Sep 2020 00:13:29 +0000 (00:13 +0000)]
Merge changes from topic "fpga_generic" into integration

* changes:
  arm_fpga: Add platform documentation
  arm_fpga: Add post-build linker script
  arm_fpga: Add ROM trampoline
  arm_fpga: Add devicetree file
  arm_fpga: Remove SPE PMU DT node if SPE is not available
  arm_fpga: Adjust GICR size in DT to match number of cores
  fdt: Add function to adjust GICv3 redistributor size
  drivers: arm: gicv3: Allow detecting number of cores

5 years agoMerge "Workaround for Cortex A77 erratum 1508412" into integration
Madhukar Pappireddy [Tue, 29 Sep 2020 18:43:00 +0000 (18:43 +0000)]
Merge "Workaround for Cortex A77 erratum 1508412" into integration

5 years agoarm_fpga: Add platform documentation
Andre Przywara [Thu, 27 Aug 2020 11:13:30 +0000 (12:13 +0100)]
arm_fpga: Add platform documentation

As the Arm Ltd. FPGA port is now working for all existing images, add
some documentation file.

Change-Id: I9e2c532ed15bbc121bb54b3dfc1bdfee8f1443a6
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoarm_fpga: Add post-build linker script
Andre Przywara [Wed, 16 Sep 2020 16:13:33 +0000 (17:13 +0100)]
arm_fpga: Add post-build linker script

For the Arm Ltd. FPGAs to run, we need to load several payloads into the
FPGA's memory:
- Some trampoline code at address 0x0, to jump to BL31's entry point.
- The actual BL31 binary at the beginning of DRAM.
- The (generic) DTB image to describe the hardware.
- The actual non-secure payloads (kernel, ramdisks, ...)

The latter is application specific, but the first three blobs are rather
generic.
Since the uploader tool supports ELF binaries, it seems helpful to
combine these three images into one .axf file, as this also simplifies
the command line.

Add a post-build linker script, that combines those three bits into one
ELF file, together with their specific load addresses.
Include a call to "ld" with this linker script in the platform Makefile,
so it will be build automatically. The result will be called "bl31.axf".

Change-Id: I4a90da16fa1e0e83b51d19e5b1daf61f5a0bbfca
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoarm_fpga: Add ROM trampoline
Andre Przywara [Mon, 3 Aug 2020 12:06:38 +0000 (13:06 +0100)]
arm_fpga: Add ROM trampoline

The application cores of the FPGAs used in Arm Ltd. start execution at
address 0x0. This is the location of some (emulated) ROM area (which can
be written to by the uploading tool).
Since the arm_fpga port is configured to run from DRAM, we load BL31 to
the beginning of DRAM (mapped at 2GB). This requires some small
trampoline code in the "ROM" to jump to the BL31 entry point.

To avoid some extra magic binary, add a tiny assembly file with that
trivial jump instruction to the tree, so this binary can be created
alongside BL31.

Change-Id: I9e4439fc0f093fa24dd49a8377c9edb030fbb477
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoarm_fpga: Add devicetree file
Andre Przywara [Mon, 3 Aug 2020 11:54:58 +0000 (12:54 +0100)]
arm_fpga: Add devicetree file

The FPGA images used in Arm Ltd. focus on CPU cores, so they share a
common platform, with a minimal set of peripherals (interconnect, GIC,
UART).
This allows to support most platforms with a single devicetree file.
The topology and number of CPU cores differ, but those will added at
runtime, in BL31. Other adjustments (GICR size, SPE node, command line)
are also done at this point.

Add the common devicetree file to TF-A's build system, so it can be
build together with BL31. At runtime, the resulting .dtb file should be
uploaded to the address given with FPGA_PRELOADED_DTB_BASE at build time.

Change-Id: I3206d6131059502ec96896e95329865452c9d83e
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoarm_fpga: Remove SPE PMU DT node if SPE is not available
Andre Przywara [Mon, 3 Aug 2020 11:55:28 +0000 (12:55 +0100)]
arm_fpga: Remove SPE PMU DT node if SPE is not available

The Statistical Profiling Extension (SPE) is an architectural feature we
can safely detect at runtime. However it still relies on one piece of
platform-specific information: the interrupt line it is connected
to. This requires SPE to be described in a devicetree node.

Since SPE support varies with the CPU cores found on an FPGA image, we
should detect the presence of SPE at runtime, and remove a potentially
existing SPE PMU node from the DT.

This allows to always have the SPE node in a generic devicetree file,
without risking exposing it on a CPU without this feature.

Change-Id: I73d83ea8509b03fe7bba20b9cce8d1335035fa31
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoarm_fpga: Adjust GICR size in DT to match number of cores
Andre Przywara [Mon, 24 Aug 2020 17:34:50 +0000 (18:34 +0100)]
arm_fpga: Adjust GICR size in DT to match number of cores

The size of a GICv3 redistributor region depends on the number of
cores in the system. For the ARM FPGA port, we detect the topology at
runtime, and adjust the CPU DT nodes accordingly.
Now the size of the GICR region must also be adjusted, or Linux will
fail to initialise the GICv3.

Use the newly introduced function to overwrite the GICR size entry in
the GICv3 reg property. We count the number of existing cores by
iterating over the GICR frames until we find the LAST bit set in TYPER.

Change-Id: Ib69565600859de9b1b15ceb8495172cd26d16fce
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agofdt: Add function to adjust GICv3 redistributor size
Andre Przywara [Mon, 24 Aug 2020 17:28:44 +0000 (18:28 +0100)]
fdt: Add function to adjust GICv3 redistributor size

We now have code to detect the CPU topology at runtime, and can also
populate the CPU nodes in a devicetree accordingly. This is used by the
ARM FPGA port, for instance.
But also a GICv3 compatible interrupt controller provides MMIO frames
per core, so the size of this region needs to be adjusted in the DT,
to match the number of cores as well.

Provide a generic function to find the GICv3 interrupt controller in
the DT, then adjust the "reg" entry to match the number of detected
cores. Since the size of the GICR frame per cores differs between
GICv4 and GICv3, this size is supplied as a parameter to the function.
The caller should determine the applicable value by either hardcoding
it or by observing GICR_TYPER.VLPIS.

Change-Id: Ic2a6445c2c5381a36bf24263f52fcbefad378c05
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agodrivers: arm: gicv3: Allow detecting number of cores
Andre Przywara [Mon, 7 Sep 2020 13:53:58 +0000 (14:53 +0100)]
drivers: arm: gicv3: Allow detecting number of cores

A GICv3 interrupt controller will be instantiated for a certain number
of cores. This will result in the respective number of GICR frames. The
last frame will have the "Last" bit set in its GICR_TYPER register.

For platforms with a topology unknown at build time (the Arm FPGAs, for
instance), we need to learn the number of used cores at runtime, to size
the GICR region in the devicetree accordingly.

Add a generic function that iterates over all GICR frames until it
encounters one with the "Last" bit set. It returns the number of cores
the GICv3 has been configured for.

Change-Id: I79f033c50dfc1c275aba7122725868811abcc4f8
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 years agoMerge changes I1ecbe5a1,Ib5945c37,Ic6b79648 into integration
Manish Pandey [Tue, 29 Sep 2020 12:17:21 +0000 (12:17 +0000)]
Merge changes I1ecbe5a1,Ib5945c37,Ic6b79648 into integration

* changes:
  plat/arm: Add platform support for Morello
  fdts: add device tree sources for morello platform
  lib/cpus: add support for Morello Rainier CPUs

5 years agoMerge "arm_fpga: Add support for unknown MPIDs" into integration
André Przywara [Mon, 28 Sep 2020 18:25:03 +0000 (18:25 +0000)]
Merge "arm_fpga: Add support for unknown MPIDs" into integration

5 years agoplat/arm: Add platform support for Morello
Chandni Cherukuri [Tue, 22 Sep 2020 13:26:25 +0000 (18:56 +0530)]
plat/arm: Add platform support for Morello

This patch adds support for Morello platform.
It is an initial port which includes only BL31 support
as the System Control Processor (SCP) is expected to take
the role of primary bootloader.

Change-Id: I1ecbe5a14a2d487b2ecea3c1ca227f08473ed2dd
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>
5 years agofdts: add device tree sources for morello platform
Manoj Kumar [Fri, 31 Jul 2020 11:32:36 +0000 (12:32 +0100)]
fdts: add device tree sources for morello platform

Change-Id: Ib5945c37983505f327a195bdb8b91ed1b7b90921
Signed-off-by: Manoj Kumar <manoj.kumar3@arm.com>
5 years agolib/cpus: add support for Morello Rainier CPUs
Manoj Kumar [Thu, 9 Jul 2020 08:56:02 +0000 (09:56 +0100)]
lib/cpus: add support for Morello Rainier CPUs

This patch adds CPU support for the Rainier CPU which is
derived from Neoverse N1 r4p0 CPU and implements the
Morello capability architecture.

Change-Id: Ic6b796481da5a66504ecb0648879446edf4c69fb
Signed-off-by: Manoj Kumar <manoj.kumar3@arm.com>
5 years agoMeasured Boot Driver: Fix MISRA-C 2012 defects
Alexei Fedorov [Mon, 28 Sep 2020 13:47:54 +0000 (14:47 +0100)]
Measured Boot Driver: Fix MISRA-C 2012 defects

This patch fixes MISRA C-2012 Pointers and Arrays
Rule 18.4 defects reported by Coverity scan:
"misra_c_2012_rule_18_4_violation: Using arithmetic on pointer "

Change-Id: I06753b28467c473e346b9871c1657284fc43a3f3
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
5 years agoWorkaround for Cortex A77 erratum 1508412
laurenw-arm [Tue, 14 Jul 2020 19:18:34 +0000 (14:18 -0500)]
Workaround for Cortex A77 erratum 1508412

Cortex A77 erratum 1508412 is a Cat B Errata present in r0p0 and r1p0.
The workaround is a write sequence to several implementation defined
registers based on A77 revision.

This errata is explained in this SDEN:
https://static.docs.arm.com/101992/0010/Arm_Cortex_A77_MP074_Software_Developer_Errata_Notice_v10.pdf

Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com>
Change-Id: I217993cffb3ac57c313db8490e7b8a7bb393379b

5 years agoarm_fpga: Add support for unknown MPIDs
Javier Almansa Sobrino [Thu, 20 Aug 2020 17:48:09 +0000 (18:48 +0100)]
arm_fpga: Add support for unknown MPIDs

This patch allows the system to fallback to a default CPU library
in case the MPID does not match with any of the supported ones.

This feature can be enabled by setting SUPPORT_UNKNOWN_MPID build
option to 1 (enabled by default only on arm_fpga platform).

This feature can be very dangerous on a production image and
therefore it MUST be disabled for Release images.

Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I0df7ef2b012d7d60a4fd5de44dea1fbbb46881ba

5 years agoMerge changes from topic "stm32_drivers_update" into integration
Manish Pandey [Fri, 25 Sep 2020 08:30:53 +0000 (08:30 +0000)]
Merge changes from topic "stm32_drivers_update" into integration

* changes:
  clk: stm32mp1: fix rcc mckprot status
  drivers: st: add missing includes in ETZPC header
  mmc: st: clear some flags before sending a command
  mmc: st: correct retries management
  nand: raw_nand: fix timeout issue in nand_wait_ready
  mtd: spi_nor: change message level on macronix detection
  gpio: stm32_gpio: check GPIO node status after checking DT
  crypto: stm32_hash: fix issue when restarting computation

5 years agoMerge changes from topic "tc0_architecture_change" into integration
Olivier Deprez [Fri, 25 Sep 2020 07:08:36 +0000 (07:08 +0000)]
Merge changes from topic "tc0_architecture_change" into integration

* changes:
  plat: tc0: enable TZC
  fdts: tc0: update MHUv2 interrupt number

5 years agoMerge "plat/arm/css/sgi: Map flash used for mem_protect" into integration
Manish Pandey [Thu, 24 Sep 2020 21:53:38 +0000 (21:53 +0000)]
Merge "plat/arm/css/sgi: Map flash used for mem_protect" into integration

5 years agoMerge "plat/arm: Introduce and use libc_asm.mk makefile" into integration
Olivier Deprez [Thu, 24 Sep 2020 14:39:24 +0000 (14:39 +0000)]
Merge "plat/arm: Introduce and use libc_asm.mk makefile" into integration

5 years agoplat/arm/css/sgi: Map flash used for mem_protect
Sami Mujawar [Thu, 30 Apr 2020 14:50:34 +0000 (15:50 +0100)]
plat/arm/css/sgi: Map flash used for mem_protect

The SGI platform defines the macro PLAT_ARM_MEM_PROT_ADDR which
indicates that the platform has mitigation for cold reboot attacks.

However, the flash memory used for the mem_protect region was not
mapped. This results in a crash when an OS calls PSCI MEM_PROTECT.

To fix this map the flash region used for mem_protect.

Change-Id: Ia494f924ecfe2ce835c045689ba8f942bf0941f4
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
5 years agoMerge "Select the Log Level for the Event Log Dump on Measured Boot at build time...
Alexei Fedorov [Thu, 24 Sep 2020 10:11:21 +0000 (10:11 +0000)]
Merge "Select the Log Level for the Event Log Dump on Measured Boot at build time." into integration

5 years agoplat: tc0: enable TZC
Usama Arif [Tue, 18 Aug 2020 11:30:37 +0000 (12:30 +0100)]
plat: tc0: enable TZC

Change-Id: Ic2bb8482f0b602f6b7850d4fa553448bc4931edc
Signed-off-by: Usama Arif <usama.arif@arm.com>
5 years agoclk: stm32mp1: fix rcc mckprot status
Etienne Carriere [Wed, 5 Feb 2020 09:03:27 +0000 (10:03 +0100)]
clk: stm32mp1: fix rcc mckprot status

MCKPROT hardening in RCC mandates that both bits RCC[TZEN] and
RCC[MCKPROT] are enabled. This change fixes stm32mp1_rcc_is_mckprot()
to check both bits, not RCC[MCKPROT] only.

This change also updates stm32mp1_rcc_is_secure() for consistency.

Change-Id: If1f07babdcb5677906ddbf974d9dc17255d4e174
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agodrivers: st: add missing includes in ETZPC header
Yann Gautier [Mon, 7 Sep 2020 11:46:04 +0000 (13:46 +0200)]
drivers: st: add missing includes in ETZPC header

Depending on compiler, the issue about bool or uint*_t not defined can
appear.
Correct this by adding stdbool.h and stdint.h includes in etzpc.h.

Change-Id: If1419dc511efbe682459fa4a776481fa52a38aa3
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agommc: st: clear some flags before sending a command
Yann Gautier [Fri, 12 Jun 2020 12:14:26 +0000 (14:14 +0200)]
mmc: st: clear some flags before sending a command

The ICR static flags are cleared before sending a command.
The SDMMC_DCTRLR register is set to 0 if no data is expected on a given
command or on the next command in case of CMD55.

Change-Id: I5ae172a484218f53160e98b3684967c6960475a6
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agommc: st: correct retries management
Yann Gautier [Fri, 12 Jun 2020 10:17:17 +0000 (12:17 +0200)]
mmc: st: correct retries management

The retries number should be 3.
A warning message is added in mmc_block_read(), and the code is refactored.

Change-Id: I577c7dd91c451c7580b1660042cb5fe26ee3fa12
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agonand: raw_nand: fix timeout issue in nand_wait_ready
Lionel Debieve [Wed, 26 Aug 2020 14:17:02 +0000 (16:17 +0200)]
nand: raw_nand: fix timeout issue in nand_wait_ready

nand_wait_ready is called with a millisecond delay
but the timeout used a micro second. Fixing the conversion
in the timeout call.
The prototype of the function is also changed to use an unsigned int
parameter.

Change-Id: Ia3281be7980477dfbfdb842308d35ecd8b926fb8
Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agomtd: spi_nor: change message level on macronix detection
Lionel Debieve [Mon, 27 Apr 2020 07:50:48 +0000 (09:50 +0200)]
mtd: spi_nor: change message level on macronix detection

Change the detection message from WARN to INFO when macronix
NOR is detected.

Change-Id: I488696f1fb75b823e85decfcd6cd32e7b36a6c2e
Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agogpio: stm32_gpio: check GPIO node status after checking DT
Yann Gautier [Fri, 4 Sep 2020 11:25:27 +0000 (13:25 +0200)]
gpio: stm32_gpio: check GPIO node status after checking DT

The call to fdt_get_status(node) has to be done after the DT is found
to be valid.

Fixes: 1fc2130c5 stm32mp1: update device tree and gpio functions
Change-Id: I70f803aae3dde128a9e740f54c8837b64cb1a244
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agocrypto: stm32_hash: fix issue when restarting computation
Lionel Debieve [Fri, 31 Jan 2020 15:17:37 +0000 (16:17 +0100)]
crypto: stm32_hash: fix issue when restarting computation

While restarting a new hash computation, STR register
is not cleared. It needs to be written before each
computation.

Change-Id: If65902dd21f9c139ec5da3ca87721232f73710db
Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agofdts: stm32mp1: realign device tree with kernel
Yann Gautier [Fri, 18 Sep 2020 13:04:14 +0000 (15:04 +0200)]
fdts: stm32mp1: realign device tree with kernel

There is one dtsi file per SoC version:
- STM32MP151: common part for all version, Single Cortex-A7
- STM32MP153: Dual Cortex-A7
- STM32MP157: + GPU and DSI, but not needed for TF-A

The STM32MP15xC include a cryptography peripheral, add it in a dedicated
file.

There are 4 packages available, for which  the IOs number change. Have one
file for each package. The 2 packages AB and AD are added.

STM32157A-DK1 and STM32MP157C-DK2 share most of their features, a common
dkx file is then created.

Some reordering is done in other files, and realign with kernel DT files.

The DDR files are generated with our internal tool, no changes in the
registers values.

Change-Id: I9f2ef00306310abe34b94c2f10fc7a77a10493d1
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agoMerge "libc: Import strtok_r from FreeBSD project" into integration
Lauren Wehrmeister [Wed, 23 Sep 2020 14:16:39 +0000 (14:16 +0000)]
Merge "libc: Import strtok_r from FreeBSD project" into integration

5 years agofdts: tc0: update MHUv2 interrupt number
Usama Arif [Tue, 18 Aug 2020 11:56:44 +0000 (12:56 +0100)]
fdts: tc0: update MHUv2 interrupt number

This is as part of the architecture change in TC0.

Change-Id: I470241f67938e7998941d26f0e8bc05073234152
Signed-off-by: Usama Arif <usama.arif@arm.com>
5 years agoSelect the Log Level for the Event Log Dump on Measured Boot at build time.
Javier Almansa Sobrino [Fri, 18 Sep 2020 15:47:07 +0000 (16:47 +0100)]
Select the Log Level for the Event Log Dump on Measured Boot at build time.

Builds in Debug mode with Measured Boot enabled might run out of trusted
SRAM. This patch allows to change the Log Level at which the Measured Boot
driver will dump the event log, so the latter can be accessed even on
Release builds if necessary, saving space on RAM.

Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I133689e313776cb3f231b774c26cbca4760fa120

5 years agoMerge "plat: marvell: ap807: implement workaround for errata-id 3033912" into integration
Manish Pandey [Tue, 22 Sep 2020 10:55:51 +0000 (10:55 +0000)]
Merge "plat: marvell: ap807: implement workaround for errata-id 3033912" into integration

5 years agoMerge "SPMC: adjust the number of EC context to max number of PEs" into integration
Manish Pandey [Tue, 22 Sep 2020 09:50:31 +0000 (09:50 +0000)]
Merge "SPMC: adjust the number of EC context to max number of PEs" into integration

5 years agostm32mp1: correct crash console GPIO alternate configuration
Yann Gautier [Tue, 25 Feb 2020 16:51:52 +0000 (17:51 +0100)]
stm32mp1: correct crash console GPIO alternate configuration

If GPIO port for UART TX is less than 8, the register GPIO_AFRL should
be used to set the alternate. GPIO_AFRH is used if GPIO port is greater
or equal to 8. The macro GPIO_TX_ALT_SHIFT is removed and the GPIO port
number is tested against GPIO_ALT_LOWER_LIMIT (=8) in
plat_crash_console_init() function.

Change-Id: Ibb62223ed6bce589bbcab59a5e986b2677e6d118
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agostm32mp1: add plat_panic_handler function
Yann Gautier [Tue, 15 Sep 2020 10:29:53 +0000 (12:29 +0200)]
stm32mp1: add plat_panic_handler function

The STM32MP1 implementation of this function will call
plat_report_exception(). It displays more information about the panic
if DEBUG is enabled.
The LR register is also filled with R6 content, which hold the faulty
address. This allows debugger to reconstruct the backtrace.

Change-Id: I6710e8e2ab6658b05c5bbad2f3c545f07f355afb
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agostm32mp1: update plat_report_exception
Yann Gautier [Tue, 15 Sep 2020 10:24:46 +0000 (12:24 +0200)]
stm32mp1: update plat_report_exception

In case DEBUG is enabled, plat_report_exception will now display extra
information of the cause of the exception.

Change-Id: I72cc9d180959cbf31c13821dd051eaf4462b733e
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agoAlign AARCH32 version of debug.S with AARCH64
Yann Gautier [Thu, 17 Sep 2020 13:15:27 +0000 (15:15 +0200)]
Align AARCH32 version of debug.S with AARCH64

Re-order code (put panic and report_exception at the end of the file).
Export asm_print_* functions.
Add asm_print_line_dec macro, and asm_print_newline func.
Align comments in both AARCH32 and AARCH64 files.
Add blank lines in AARCH64 files to align with AARCH32.

Change-Id: I8e299a27c1390f71f04e260cd4a0e59b2384eb19
Signed-off-by: Yann Gautier <yann.gautier@st.com>
5 years agoMerge "n1sdp: add support for remote chip pcie." into integration
Manish Pandey [Mon, 21 Sep 2020 12:10:07 +0000 (12:10 +0000)]
Merge "n1sdp: add support for remote chip pcie." into integration

5 years agoMerge "build_macros.mk: include assert and define loop macros" into integration
Olivier Deprez [Mon, 21 Sep 2020 08:28:50 +0000 (08:28 +0000)]
Merge "build_macros.mk: include assert and define loop macros" into integration

5 years agoMerge "defaults.mk: default KEY_SIZE to 2048 in case of RSA algorithm" into integration
Olivier Deprez [Mon, 21 Sep 2020 08:28:28 +0000 (08:28 +0000)]
Merge "defaults.mk: default KEY_SIZE to 2048 in case of RSA algorithm" into integration

5 years agolibc: Import strtok_r from FreeBSD project
Madhukar Pappireddy [Wed, 16 Sep 2020 23:58:49 +0000 (18:58 -0500)]
libc: Import strtok_r from FreeBSD project

From commit: 21571b1d140ae7bb44e94c0afba2ec61456b275b
Made small changes to fit into TF-A project

Change-Id: I991f653a7ace04f9c84bcda78ad8d7114ea18e93
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
5 years agoMerge changes from topic "ehf_common" into integration
Manish Pandey [Fri, 18 Sep 2020 14:20:02 +0000 (14:20 +0000)]
Merge changes from topic "ehf_common" into integration

* changes:
  plat: tegra: Use generic ehf defines
  ehf: use common priority level enumuration

5 years agoMerge "spmd: remove assert for SPMC PC value" into integration
Mark Dykes [Thu, 17 Sep 2020 19:48:27 +0000 (19:48 +0000)]
Merge "spmd: remove assert for SPMC PC value" into integration

5 years agoMerge "doc: Recommend using C rather than assembly language" into integration
Madhukar Pappireddy [Wed, 16 Sep 2020 18:00:21 +0000 (18:00 +0000)]
Merge "doc: Recommend using C rather than assembly language" into integration

5 years agon1sdp: add support for remote chip pcie.
Sayanta Pattanayak [Fri, 31 Jul 2020 07:46:13 +0000 (13:16 +0530)]
n1sdp: add support for remote chip pcie.

Remote chip  ITS, SMMU, PCIe nodes are added for enabling remote
chip PCIe hierarchy.

Change-Id: I5b3ca733715defa38e413588ccd13d0688cba271
Signed-off-by: Sayanta Pattanayak <sayanta.pattanayak@arm.com>
Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
5 years agoMerge "SPE: Fix feature detection" into integration
Madhukar Pappireddy [Tue, 15 Sep 2020 21:21:24 +0000 (21:21 +0000)]
Merge "SPE: Fix feature detection" into integration

5 years agoMerge changes from topic "cot-parser" into integration
Madhukar Pappireddy [Tue, 15 Sep 2020 16:53:56 +0000 (16:53 +0000)]
Merge changes from topic "cot-parser" into integration

* changes:
  plat/arm: fvp: Increase BL2 maximum size
  lib: fconf: Implement a parser to populate CoT

5 years agoMerge "doc: Correct CPACR.FPEN usage" into integration
Mark Dykes [Tue, 15 Sep 2020 16:44:09 +0000 (16:44 +0000)]
Merge "doc: Correct CPACR.FPEN usage" into integration

5 years agoSPMC: adjust the number of EC context to max number of PEs
Olivier Deprez [Tue, 15 Sep 2020 15:23:47 +0000 (17:23 +0200)]
SPMC: adjust the number of EC context to max number of PEs

According to [1] and in context of FF-A v1.0 a secure partition must
have either one EC (migratable UP) or a number of ECs equal to the
number of PEs (pinned MP). Adjust the SPMC manifest such that the
number of ECs is equal to the number of PEs.

[1] https://trustedfirmware-a.readthedocs.io/en/latest/components/
secure-partition-manager.html#platform-topology

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

5 years agoplat/arm: fvp: Increase BL2 maximum size
Manish V Badarkhe [Fri, 4 Sep 2020 14:01:30 +0000 (15:01 +0100)]
plat/arm: fvp: Increase BL2 maximum size

Increased BL2 maximum size when CoT descriptors are placed
in device tree.

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

5 years agolib: fconf: Implement a parser to populate CoT
Manish V Badarkhe [Thu, 23 Jul 2020 09:43:57 +0000 (10:43 +0100)]
lib: fconf: Implement a parser to populate CoT

Implemented a parser which populates the properties of
the CoT descriptors as per the binding document [1].
'COT_DESC_IN_DTB' build option is disabled by default and can
be enabled in future for all Arm platforms by making necessary
changes in the memory map.
Currently, this parser is tested only for FVP platform.

[1]:
https://trustedfirmware-a.readthedocs.io/en/latest/components/cot-binding.html

Change-Id: I2f911206087a1a2942aa728de151d2ac269d27cc
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
5 years agoMerge "doc: add description of "owner" field in SP layout file." into integration
Madhukar Pappireddy [Tue, 15 Sep 2020 14:33:27 +0000 (14:33 +0000)]
Merge "doc: add description of "owner" field in SP layout file." into integration