]> git.baikalelectronics.ru Git - arm-tf.git/log
arm-tf.git
3 years agofeat(ls1046afrwy): add ls1046afrwy board support
Jiafei Pan [Thu, 20 Jan 2022 09:42:39 +0000 (17:42 +0800)]
feat(ls1046afrwy): add ls1046afrwy board support

The LS1046A Freeway board (FRWY) is a high-performance computing,
evaluation, and development platform that supports the LS1046A
architecture processor capable of support more than 32,000 CoreMark
performance. The FRWY-LS1046A board supports the LS1046A processor,
onboard DDR4 memory, multiple Gigabit Ethernet, USB3.0 and M2_Type_E
interfaces for Wi-Fi, FRWY-LS1046A-AC includes the Wi-Fi card.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: York Sun <york.sun@nxp.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Change-Id: I9a9680689e6f17bf4cc76fd5d1883eed6ace5149

3 years agofeat(ls1046ardb): add ls1046ardb board support
Jiafei Pan [Thu, 20 Jan 2022 09:41:49 +0000 (17:41 +0800)]
feat(ls1046ardb): add ls1046ardb board support

The LS1046A reference design board (RDB) is a high-performance
computing, evaluation, and development platform that supports
the Layerscape LS1046A architecture processor.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: York Sun <york.sun@nxp.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Change-Id: Ib7a01b309e0b0acc7f38e22b138e9e181dff244a

3 years agofeat(ls1046a): add new SoC platform ls1046a
Jiafei Pan [Thu, 20 Jan 2022 09:40:16 +0000 (17:40 +0800)]
feat(ls1046a): add new SoC platform ls1046a

The LS1046A is a cost-effective, power-efficient, and highly
integrated system-on-chip (SoC) design that extends the reach
of the NXP value-performance line of QorIQ communications
processors. Featuring power-efficient 64-bit Arm Cortex A72
cores with ECC-protected L1 and L2 cache memories for high
reliability, running up to 1.8 GHz.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: rocket <rod.dorris@nxp.com>
Signed-off-by: Biwen Li <biwen.li@nxp.com>
Change-Id: I208d9bf1702410463c2b2630d31d0cd4eb7e8837

3 years agofix(nxp-tools): fix tool location path for byte_swape
Jiafei Pan [Thu, 20 Jan 2022 09:37:11 +0000 (17:37 +0800)]
fix(nxp-tools): fix tool location path for byte_swape

Fix byte_swape tool's location.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I63856a8d62aeb5eb0b41b2b0dc671de96302aa1d

3 years agofix(nxp-qspi): fix include path for QSPI driver
Jiafei Pan [Thu, 20 Jan 2022 09:35:48 +0000 (17:35 +0800)]
fix(nxp-qspi): fix include path for QSPI driver

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: If9322cf2646d3be3391445cb72d338c2d20117a6

3 years agobuild(changelog): add new scopes for NXP layerscape platforms
Jiafei Pan [Thu, 10 Feb 2022 02:39:56 +0000 (10:39 +0800)]
build(changelog): add new scopes for NXP layerscape platforms

1. Add scopes for ls1046a and related boards: ls1046ardb,
ls1046aqds, ls1046afwry.
2. Add new scope for NXP QSPI driver.
3. Add new scope for NXP tools.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I68ef7dd25628b393dbfbb8dbf59d5185945ea61c

3 years agoMerge "fix(nxp-drivers): ddr: corrects mapping of HNFs nodes" into integration
Manish Pandey [Thu, 27 Jan 2022 22:05:51 +0000 (23:05 +0100)]
Merge "fix(nxp-drivers): ddr: corrects mapping of HNFs nodes" into integration

3 years agoMerge changes from topic "st-clk-updates" into integration
Manish Pandey [Thu, 27 Jan 2022 21:56:07 +0000 (22:56 +0100)]
Merge changes from topic "st-clk-updates" into integration

* changes:
  refactor(st-clock): update STGEN management
  feat(st-clock): assign clocks to the correct BL
  feat(st-clock): do not refcount on non-secure clocks in bl32
  feat(st-clock): define secure and non-secure gate clocks
  refactor(stm32mp1): remove unused refcount helper functions
  fix(stm32mp1): add missing debug.h
  refactor(st-clock): use refcnt instead of secure status

3 years agorefactor(st-clock): update STGEN management
Lionel Debieve [Wed, 4 Dec 2019 20:50:19 +0000 (21:50 +0100)]
refactor(st-clock): update STGEN management

Rework STGEN config function, and move it to stm32mp_clkfunc.c file.

Change-Id: I7784a79c486d1b8811f6f8d123e49ea34899e9b6
Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofeat(st-clock): assign clocks to the correct BL
Yann Gautier [Fri, 17 Jan 2020 10:59:28 +0000 (11:59 +0100)]
feat(st-clock): assign clocks to the correct BL

Some clocks are only required in BL2, like boot devices clocks:
FMC, QSPI.
Some clocks are only used in BL32: Timers, devices that need special
care for independent reset.

Change-Id: Id4ba99afeea5095f419a86f7dc6423192c628d82
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofeat(st-clock): do not refcount on non-secure clocks in bl32
Yann Gautier [Wed, 27 Oct 2021 16:21:11 +0000 (18:21 +0200)]
feat(st-clock): do not refcount on non-secure clocks in bl32

This change removes reference counting support in clock gating
implementation for clocks that rely on non-secure only RCC resources.
As RCC registers are accessed straight by non-secure world for these
clocks, secure world cannot safely store the clock state and even
disabling such clock from secure world can jeopardize the non-secure
world clock management framework and drivers.

As a consequence, for such clocks, stm32_clock_enable() forces the clock
ON without any increment of a refcount and stm32_clock_disable() does
not disable the clock.

Change-Id: I0cc159b36a25dbc8676f05edf2668ae63c640537
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
3 years agofeat(st-clock): define secure and non-secure gate clocks
Yann Gautier [Wed, 27 Oct 2021 16:16:59 +0000 (18:16 +0200)]
feat(st-clock): define secure and non-secure gate clocks

Array stm32mp1_clk_gate[] defines the clock resources. This change
add a secure attribute to the clock: secure upon RCC[TZEN] (SEC),
secure upon RCC[TZEN] and RCC[MCKPROT] (MKP) or always accessible
from non-secure (N_S).

At init, lookup clock tree to check if any of the secure clocks
is derived from PLL3 in which case PLL3 shall be secure.

Note that this change does not grow byte size of stm32mp1_clk_gate[].

Change-Id: I933d8a30007f3c72f755aa1ef6d7e6bcfabbfa9e
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agorefactor(stm32mp1): remove unused refcount helper functions
Yann Gautier [Wed, 19 Jan 2022 13:01:52 +0000 (14:01 +0100)]
refactor(stm32mp1): remove unused refcount helper functions

Remove stm32mp_incr_shrefcnt(), stm32mp_decr_shrefcnt(),
stm32mp_incr_refcnt() and stm32mp_decr_refcnt() that are unused.
The file is then just removed.

Change-Id: I09ee23c02317df5d8f71cbc355d3ed4a67ce2749
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofix(stm32mp1): add missing debug.h
Yann Gautier [Thu, 27 Jan 2022 12:55:18 +0000 (13:55 +0100)]
fix(stm32mp1): add missing debug.h

Due to stm32mp_shres_helpers.h removal, the debug.h header is no more
included. It should then be added to stm32mp1_boot_device.c.

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

3 years agorefactor(st-clock): use refcnt instead of secure status
Yann Gautier [Wed, 19 Jan 2022 12:57:49 +0000 (13:57 +0100)]
refactor(st-clock): use refcnt instead of secure status

Rework the internal functions __stm32mp1_clk_enable/disable to check for
reference count instead of secure status for a clock.
Some functions now unused can be removed.

Change-Id: Ie4359110d7144229f85c961dcd5a019222c3fd25
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agoMerge changes from topic "fwu-on-stm32mp1" into integration
Madhukar Pappireddy [Thu, 27 Jan 2022 14:49:15 +0000 (15:49 +0100)]
Merge changes from topic "fwu-on-stm32mp1" into integration

* changes:
  feat(stm32mp1): add support for building the FWU feature
  feat(stm32mp1): add logic to pass the boot index to the Update Agent
  feat(stm32mp1): add support for reading the metadata partition
  feat(stm32mp1): add logic to select the images to be booted
  feat(stm32mp1): add GUID's for identifying firmware images to be booted
  feat(stm32mp1): add GUID values for updatable images
  feat(fwu): add platform hook for getting the boot index
  feat(fwu): simplify the assert to check for fwu init
  feat(fwu): add a function to pass metadata structure to platforms
  feat(partition): add a function to identify a partition by GUID
  feat(partition): copy the partition GUID into the partition structure
  feat(partition): make provision to store partition GUID value
  feat(partition): cleanup partition and gpt headers
  feat(fwu): add basic definitions for GUID handling
  feat(fwu): pass a const metadata structure to platform routines
  build(changelog): add a valid scope for partition code

3 years agofeat(stm32mp1): add support for building the FWU feature
Sughosh Ganu [Wed, 10 Nov 2021 12:17:16 +0000 (17:47 +0530)]
feat(stm32mp1): add support for building the FWU feature

Add support for enabling the FWU multi bank boot feature on the
platform.

Currently, this feature is supported on the STM32MP157C-DK2 board,
which boots off a uSD card. Also, support has been enabled when
booting from a FIP image.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: Ia69e858461e2daf599d41d66d7ff2ccae0c341c2

3 years agofeat(stm32mp1): add logic to pass the boot index to the Update Agent
Sughosh Ganu [Wed, 1 Dec 2021 10:26:27 +0000 (15:56 +0530)]
feat(stm32mp1): add logic to pass the boot index to the Update Agent

With the FWU Multi Bank update feature, the platform can boot from one
of multiple banks(partitions). Pass the value of bank from which the
platform has booted as boot index to the Update Agent. The Update
Agent will match this boot index value against the active_index field
in the metadata, and update the metadata if there is a mismatch.

Fow now, the mechanism to pass the boot index is platform specific. On
the STM32MP1 platform, the boot index value is passed through a
memorey mapped TAMP register on the SoC.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I0aa665ff9c1db95be8ae19ed8de6d866587d6850

3 years agofeat(stm32mp1): add support for reading the metadata partition
Sughosh Ganu [Wed, 1 Dec 2021 11:16:34 +0000 (16:46 +0530)]
feat(stm32mp1): add support for reading the metadata partition

Add support for reading the FWU metadata partition. The metadata
partition stores information on the current active bank along with
information on all the FWU updatable images on the platform. This
information is then used to identify the image to be booted.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I66bc5ac718c21a49c504e698b5b1f5c4daed2d08

3 years agofeat(stm32mp1): add logic to select the images to be booted
Sughosh Ganu [Wed, 1 Dec 2021 11:15:11 +0000 (16:45 +0530)]
feat(stm32mp1): add logic to select the images to be booted

With the FWU multi bank boot feature enabled, the platform can boot
from one of the multiple banks(partitions) containing the firmware
images. The bank whose firmware components are to be booted is read
from the FWU metadata structure -- the image to be booted is thus
derived by reading the metadata.

Read the metadata and set the image spec of the corresponding image
type to point to the partition from which the image is to be booted.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I3dfdc7e9202859e917ec4e1f7d1855aad42c6b70

3 years agofeat(stm32mp1): add GUID's for identifying firmware images to be booted
Sughosh Ganu [Wed, 10 Nov 2021 09:54:56 +0000 (15:24 +0530)]
feat(stm32mp1): add GUID's for identifying firmware images to be booted

Add GUID's for identifying the firmware image type. With the FWU
multi bank boot feature enabled, these GUID values are used to
identify the firmware image to be booted. This is done by matching
GUID values of images in the io policy table with the Image GUID value
that is read from the FWU metadata structure.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: Id9751f02f95fc48ef68e4e3f9f0ddbf6d6319d3c

3 years agofeat(stm32mp1): add GUID values for updatable images
Sughosh Ganu [Fri, 2 Jul 2021 10:35:14 +0000 (16:05 +0530)]
feat(stm32mp1): add GUID values for updatable images

With the FWU multi bank feature enabled, the identification of
firmware image type is done using the image type GUID instead of
binary_type field.

Add GUID values for the FIP image which can be updated through
the FWU firmware update feature. The GUID values are used in
identifying the firmware images.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: If7d9356aa8d2bb3fbcbc87100e6972f1a1862921

3 years agofeat(fwu): add platform hook for getting the boot index
Sughosh Ganu [Wed, 1 Dec 2021 10:23:32 +0000 (15:53 +0530)]
feat(fwu): add platform hook for getting the boot index

Add a platform hook for returning the boot index, i.e. the bank from
which the platform has booted the updatable firmware images. This
value will be passed to the Update Agent.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: Ic7bef21071c48cfc7b69c50e89df9ff758d95b00

3 years agofeat(fwu): simplify the assert to check for fwu init
Sughosh Ganu [Wed, 1 Dec 2021 06:22:53 +0000 (11:52 +0530)]
feat(fwu): simplify the assert to check for fwu init

Simplify the assert to check if the FWU subsystem has been initialised
in the fwu_is_trial_run_state function.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I428668470ebd4b67e68777a62d5732cb96841ab9

3 years agofeat(fwu): add a function to pass metadata structure to platforms
Sughosh Ganu [Wed, 1 Dec 2021 06:20:22 +0000 (11:50 +0530)]
feat(fwu): add a function to pass metadata structure to platforms

Add a helper function to pass the metadata structure to the
platforms. Platforms can then read the metadata structure and pass the
boot index value, i.e. the bank(partition) from which the firmware
images were booted, to the Update Agent.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I571179b9baa0fbc4d0f08d7a6e3b50c0c7165c5c

3 years agofeat(partition): add a function to identify a partition by GUID
Sughosh Ganu [Wed, 10 Nov 2021 07:30:30 +0000 (13:00 +0530)]
feat(partition): add a function to identify a partition by GUID

With the GPT partition scheme, a partition can be identified using
it's UniquePartitionGUID, instead of it's name. Add a function to
identify the partition based on this GUID value. This functionality is
useful in identification of a partition whose UniquePartitionGUID
value is known.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I543f794e1f7773f969968a6bce85ecca6f6a1659

3 years agofeat(partition): copy the partition GUID into the partition structure
Sughosh Ganu [Fri, 2 Jul 2021 11:03:46 +0000 (16:33 +0530)]
feat(partition): copy the partition GUID into the partition structure

Copy the UniquePartitionGUID member of a GPT partition entry into the
partition_entry structure. This GUID is subsequently used to identify
the image to boot on a platform which supports multiple partitions of
firmware components using the FWU metadata structure.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I8b55a1ee7deb1353886fbd8ebde53055d677fee0

3 years agofeat(partition): make provision to store partition GUID value
Sughosh Ganu [Fri, 2 Jul 2021 10:52:55 +0000 (16:22 +0530)]
feat(partition): make provision to store partition GUID value

The FWU multi bank feature supports multiple partitions or banks of
firmware components, where a platform can support having an active and
a backup partition(bank) of firmware images to boot from. This feature
identifies the images in a given bank using image GUID's --
this GUID value corresponds to the UniquePartitionGUID value used to
uniquely identify a GPT partition.

To support identification of images, add a member to the
partition_entry structure to store the UniquePartitionGUID value of
the GPT partition entry. This value is subsequently used to select the
firmware image to boot in a multi partition setup.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I2d235467ce7a7f20ebc1cef4db09924a5282e714

3 years agofeat(partition): cleanup partition and gpt headers
Sughosh Ganu [Tue, 7 Dec 2021 11:19:21 +0000 (16:49 +0530)]
feat(partition): cleanup partition and gpt headers

The EFI_NAMELEN macro has been moved to efi.h header. Get the macro
from efi.h. Use the struct efi_guid structure for declaring GUID
members in gpt.h

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I1c3a2605b9f857b9cf2dcfdaed4dc9d0a2cbf0f0

3 years agofeat(fwu): add basic definitions for GUID handling
Sughosh Ganu [Fri, 2 Jul 2021 10:30:40 +0000 (16:00 +0530)]
feat(fwu): add basic definitions for GUID handling

The FWU metadata structure uses GUID's to identify the updatable
firmware images. Add some basic helper functions and
macros that would be used for working with the GUID datatype.

With the FWU feature enabled, these would then be used for image
identification and booting of images from a particular
bank(partition).

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: Ia54c0402d72b503d6abd1d94bc751cc14602cd39

3 years agofeat(fwu): pass a const metadata structure to platform routines
Sughosh Ganu [Wed, 17 Nov 2021 11:38:10 +0000 (17:08 +0530)]
feat(fwu): pass a const metadata structure to platform routines

The metadata structure copy is passed to the platform routine to set
the image source to boot the platform from. This is done by reading
the metadata structure. Pass the metadata as a read-only copy to the
routine -- the routine only needs to consume the metadata values and
should not be able to update the metadata fields.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I399cad99ab89c71483e5a32a1de0e22df304f8b0

3 years agobuild(changelog): add a valid scope for partition code
Sughosh Ganu [Wed, 19 Jan 2022 06:01:20 +0000 (11:31 +0530)]
build(changelog): add a valid scope for partition code

Add a valid scope for the partition code under the drivers directory.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I173ac45e4ccbc95566277dabef15dcd25533e097

3 years agoMerge "fix(st-ddr): add missing debug.h" into integration
Madhukar Pappireddy [Thu, 27 Jan 2022 01:01:32 +0000 (02:01 +0100)]
Merge "fix(st-ddr): add missing debug.h" into integration

3 years agoMerge "refactor(stm32mp1): use a macro for header size" into integration
Madhukar Pappireddy [Thu, 27 Jan 2022 00:58:50 +0000 (01:58 +0100)]
Merge "refactor(stm32mp1): use a macro for header size" into integration

3 years agoMerge "refactor(ls1028a): fix header file group issue" into integration
Madhukar Pappireddy [Wed, 26 Jan 2022 15:08:06 +0000 (16:08 +0100)]
Merge "refactor(ls1028a): fix header file group issue" into integration

3 years agoMerge changes from topic "ck/changelog" into integration
Joanna Farley [Wed, 26 Jan 2022 11:08:31 +0000 (12:08 +0100)]
Merge changes from topic "ck/changelog" into integration

* changes:
  build(npm): mandate Node.js engine version
  docs(changelog): fix broken version bumping
  docs(changelog): fix version tag links
  refactor(hooks): replace cz-conventional-changelog with cz-commitlint
  style(commitlint): reorder header/body max line length fields
  chore(npm): update package versions/license

3 years agofix(nxp-drivers): ddr: corrects mapping of HNFs nodes
Maninder Singh [Thu, 30 Dec 2021 07:09:32 +0000 (00:09 -0700)]
fix(nxp-drivers): ddr: corrects mapping of HNFs nodes

Corrects mapping of HNFs nodes with SNFs nodes based on their
proximity in CCN508 ring when disabling unused ddr controller.

When DDRC 2 disabled and DDR 1 is active the mapping is 0x3/3/8/8/8/8/3/3.
When DDRC 1 is disabled and DDR2 is active the mapping is 0x
18/18/13/13/13/13/18/18 .

Signed-off-by: Maninder Singh <maninder.singh_1@nxp.com>
Signed-off-by: JaiPrakash Singh <JaiPrakash.singh@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I6ec1e02f8ad7e8bb8628913625ff5313a054dcc6

3 years agorefactor(ls1028a): fix header file group issue
Jiafei Pan [Thu, 20 Jan 2022 08:09:37 +0000 (16:09 +0800)]
refactor(ls1028a): fix header file group issue

ocram.h should be in platform includes group.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I43b6a279e48e1a173f8e7c601f2c8d48e6efc647

3 years agoMerge changes from topic "decouple-tb-mb" into integration
Sandrine Bailleux [Tue, 25 Jan 2022 07:10:58 +0000 (08:10 +0100)]
Merge changes from topic "decouple-tb-mb" into integration

* changes:
  refactor(renesas): disable CRYPTO_SUPPORT option
  refactor(fvp): avoid Measured-Boot dependency on Trusted-Boot
  refactor(measured-boot): avoid Measured-Boot dependency on Trusted-Boot
  build: introduce CRYPTO_SUPPORT build option

3 years agoMerge changes from topic "st_syscfg_updates" into integration
Madhukar Pappireddy [Mon, 24 Jan 2022 22:07:01 +0000 (23:07 +0100)]
Merge changes from topic "st_syscfg_updates" into integration

* changes:
  feat(stm32mp1): add helper to enable high speed mode in low voltage
  refactor(stm32mp1): add helpers for IO compensation cells
  feat(stm32mp1): use clk_enable/disable functions
  feat(stm32mp1): add timeout in IO compensation

3 years agobuild(npm): mandate Node.js engine version
Chris Kay [Fri, 3 Dec 2021 12:04:24 +0000 (12:04 +0000)]
build(npm): mandate Node.js engine version

This change mandates a particular version of Node.js when running
`npm install`. When using a version of Node.js that does not meet these
expectations, a warning will be emitted to the user to let them know
that they are using an unsupported version of Node.js

Change-Id: I3f9bcf8be483a80b5882d65b034c6655013df19f
Signed-off-by: Chris Kay <chris.kay@arm.com>
3 years agodocs(changelog): fix broken version bumping
Chris Kay [Fri, 3 Dec 2021 11:22:09 +0000 (11:22 +0000)]
docs(changelog): fix broken version bumping

Standard Version was not bumping the package metadata files as it
should have been. It's not clear to me why, but there is an open
[GitHub issue][1] for documenting this behaviour.

[1]: https://github.com/conventional-changelog/standard-version/issues/506

Change-Id: Ie89a81272fe507a3d2e1cd33c6ac1bdcc8ac3d75
Signed-off-by: Chris Kay <chris.kay@arm.com>
3 years agodocs(changelog): fix version tag links
Chris Kay [Wed, 1 Dec 2021 17:47:51 +0000 (17:47 +0000)]
docs(changelog): fix version tag links

The Standard Version tool will not recognize a release header as a
release header without the minor version, and will overwrite them when
generating the next release changelog.

Additionally, it will not generate a link to the tag diff unless a tag
of the form `vX.Y.Z` exists. We ought to generate tags with this version
format in the future to ensure the diff links are generated.

Change-Id: I7864ab7a5822f83ddb7a7917208d2d029ae34729
Signed-off-by: Chris Kay <chris.kay@arm.com>
3 years agorefactor(hooks): replace cz-conventional-changelog with cz-commitlint
Chris Kay [Wed, 1 Dec 2021 16:34:55 +0000 (16:34 +0000)]
refactor(hooks): replace cz-conventional-changelog with cz-commitlint

This change replaces cz-conventional-changelog with cz-commitlint, which
automatically configures Commitizen using our commitlint configuration
file. Currently, we use some manual Javascript magic to load our
Commitizen configuration into commitlint (the opposite of what's
introduced by this change), which can be removed.

With this change, we also move our commitlint configuration into a
new `changelog.yaml` file. This file holds the same data as `.cz.json`
previously did.

Change-Id: I14ff2308f1a0b2b293c2128b28ca2df578ce9c1c
Signed-off-by: Chris Kay <chris.kay@arm.com>
3 years agoMerge changes from topic "new_ls1043a" into integration
Manish Pandey [Thu, 20 Jan 2022 16:29:00 +0000 (17:29 +0100)]
Merge changes from topic "new_ls1043a" into integration

* changes:
  docs(maintainers): update nxp layerscape maintainers
  docs(plat/nxp/layerscape): add ls1043a soc and board support
  feat(plat/nxp/ls1043ardb): add ls1043ardb board support
  feat(plat/nxp/ls1043a): add ls1043a soc support
  refactor(plat/ls1043): remove old implementation for platform ls1043
  feat(nxp/driver/dcfg): add some macro definition
  fix(nxp/common/setup): increase soc name maximum length
  feat(nxp/common/errata): add SoC erratum a008850
  feat(nxp/driver/tzc380): add tzc380 platform driver support
  feat(tzc380): add sub-region register definition
  feat(nxp/common/io): add ifc nor and nand as io devices
  feat(nxp/driver/ifc_nand): add IFC NAND flash driver
  feat(nxp/driver/ifc_nor): add IFC nor flash driver
  feat(nxp/driver/csu): add bypass bit mask definition
  feat(nxp/driver/dcfg): add gic address align register definition
  feat(nxp/common/rcpm): add RCPM2 registers definition
  fix(nxp/common/setup): fix total dram size checking
  feat(nxp/common): add CORTEX A53 helper functions

3 years agodocs(maintainers): update nxp layerscape maintainers
Jiafei Pan [Fri, 22 Oct 2021 03:32:45 +0000 (11:32 +0800)]
docs(maintainers): update nxp layerscape maintainers

Added myself to be NXP common code and ls1028a, ls1043a platforms
maintainer.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Iadffc5600e9bb2e94b1d545b8dd1a819358cabcb

3 years agodocs(plat/nxp/layerscape): add ls1043a soc and board support
Jiafei Pan [Fri, 22 Oct 2021 03:18:35 +0000 (11:18 +0800)]
docs(plat/nxp/layerscape): add ls1043a soc and board support

Update document for nxp-layerscape to add ls1043a SoC and ls1043ardb
board support.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I8442daf08a0f7c1ba982a3ed1d0ad24c4c420185

3 years agofeat(plat/nxp/ls1043ardb): add ls1043ardb board support
Jiafei Pan [Sun, 26 Sep 2021 03:52:00 +0000 (11:52 +0800)]
feat(plat/nxp/ls1043ardb): add ls1043ardb board support

The LS1043A reference design board (RDB) is a computing, evaluation,
and development platform that supports the Layerscape LS1043A
architecture processor.

The old implementation in tf-a (plat/layerscape/board/ls1043/) is removed,
and this patch is adding it back, it is using the unified software
component and architecture with all the other Layerscape platforms.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Change-Id: I83eee2f9254267b148960b05e25b6c9ba86cf07e

3 years agofeat(plat/nxp/ls1043a): add ls1043a soc support
Jiafei Pan [Sun, 26 Sep 2021 03:51:42 +0000 (11:51 +0800)]
feat(plat/nxp/ls1043a): add ls1043a soc support

The LS1043A processor was NXP's first quad-core, 64-bit Arm based
processor for embedded networking.

The old implementation in tf-a (plat/layerscape/board/ls1043/) is removed,
and this patch is adding it back, it is using the unified software
component and architecture with all the other Layerscape platforms.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Signed-off-by: rocket <rod.dorris@nxp.com>
Change-Id: Ia3877530fae6479bd4a33bbe46b0c0d28ab43160

3 years agorefactor(plat/ls1043): remove old implementation for platform ls1043
Jiafei Pan [Fri, 22 Oct 2021 02:34:25 +0000 (10:34 +0800)]
refactor(plat/ls1043): remove old implementation for platform ls1043

Remove old implementation for Layerscape ls1043a platform, and
will added it back with unified software architecture of all
Layerscape platforms.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: If038c19ab04d70050ec8e6ab2097b1c4f8324e87

3 years agofeat(nxp/driver/dcfg): add some macro definition
Jiafei Pan [Thu, 21 Oct 2021 09:07:18 +0000 (17:07 +0800)]
feat(nxp/driver/dcfg): add some macro definition

Added offset for register DEVDISR2 and DEVDISR3, added
bit definiton for PORSR1_RCW, and some macro for SVR.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Ie49392b89280c6c2c3510fcb4c85d827a1efdac0

3 years agofix(nxp/common/setup): increase soc name maximum length
Jiafei Pan [Thu, 21 Oct 2021 09:03:04 +0000 (17:03 +0800)]
fix(nxp/common/setup): increase soc name maximum length

Increate SoC name length as it is not enough for some
SoC personalities.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I2142b4b5162dd3c9ab3afefcdc859063836d8bcc

3 years agofeat(nxp/common/errata): add SoC erratum a008850
Jiafei Pan [Thu, 21 Oct 2021 08:57:58 +0000 (16:57 +0800)]
feat(nxp/common/errata): add SoC erratum a008850

Add SoC erratum a008850 support.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I1ef41c67737b7b5fdf1d892929a2d8040effc282

3 years agofeat(nxp/driver/tzc380): add tzc380 platform driver support
Jiafei Pan [Thu, 21 Oct 2021 08:42:34 +0000 (16:42 +0800)]
feat(nxp/driver/tzc380): add tzc380 platform driver support

Added TZC380 platform driver support.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Id0aa6cb64fa7af79dd44e0dbb0e62cb2fd4cb824

3 years agofeat(tzc380): add sub-region register definition
Jiafei Pan [Thu, 21 Oct 2021 08:38:32 +0000 (16:38 +0800)]
feat(tzc380): add sub-region register definition

Added sub-region register definition.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Iab8130b56089d804c51ab967b184ddfc192e2858

3 years agofeat(nxp/common/io): add ifc nor and nand as io devices
Jiafei Pan [Thu, 21 Oct 2021 08:30:12 +0000 (16:30 +0800)]
feat(nxp/common/io): add ifc nor and nand as io devices

Added IFC Nor and NAN flash as boot IO devices.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Ie1b87174d9c08d4e32138066b007fef6f8e3c5dd

3 years agofeat(nxp/driver/ifc_nand): add IFC NAND flash driver
Jiafei Pan [Thu, 21 Oct 2021 08:14:18 +0000 (16:14 +0800)]
feat(nxp/driver/ifc_nand): add IFC NAND flash driver

Support IFC NAND flash as boot device.

Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I1aba7035ff70b179915e181c04e7b00be2066abe

3 years agofeat(nxp/driver/ifc_nor): add IFC nor flash driver
Jiafei Pan [Thu, 21 Oct 2021 08:09:57 +0000 (16:09 +0800)]
feat(nxp/driver/ifc_nor): add IFC nor flash driver

Add IFC Nor flash driver.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I3275664b8848d0fe3c15ed92d95fb19adbf57f84

3 years agoMerge "feat(tc): enable tracing" into integration
Olivier Deprez [Thu, 20 Jan 2022 09:03:47 +0000 (10:03 +0100)]
Merge "feat(tc): enable tracing" into integration

3 years agoMerge changes from topic "st_clock_updates" into integration
Madhukar Pappireddy [Wed, 19 Jan 2022 17:15:19 +0000 (18:15 +0100)]
Merge changes from topic "st_clock_updates" into integration

* changes:
  fix(st-clock): correct types in error messages
  refactor(st-clock): directly use oscillator name
  feat(st-clock): check HSE configuration in serial boot
  feat(st-clock): manage disabled oscillator
  refactor(st-clock): improve DT parsing for PLL nodes

3 years agorefactor(stm32mp1): use a macro for header size
Yann Gautier [Thu, 17 Sep 2020 09:30:18 +0000 (11:30 +0200)]
refactor(stm32mp1): use a macro for header size

Use STM32MP_HEADER_RESERVED_SIZE macro instead of a fixed value 0x3000
in linker script.

Change-Id: I2702285c15aebaa1304a891c8aaabc949a912ba6
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofeat(stm32mp1): add helper to enable high speed mode in low voltage
Yann Gautier [Tue, 12 Jan 2021 13:45:02 +0000 (14:45 +0100)]
feat(stm32mp1): add helper to enable high speed mode in low voltage

This new function is used to fill the register(s) responsible to enable
high speed mode for pad in low voltage (<2.7V).

Change-Id: Ib8abc6628bdf51bbe6a866bc6a9bcdeb4a84a8f4
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agorefactor(stm32mp1): add helpers for IO compensation cells
Yann Gautier [Wed, 16 Dec 2020 09:17:35 +0000 (10:17 +0100)]
refactor(stm32mp1): add helpers for IO compensation cells

Add enable_io_comp_cell and disable_io_comp_cell local helpers
to enable or disable an IO compensation cell.

Change-Id: I65295298a7ece572ae939e2db93d10b188de0f9e
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofeat(stm32mp1): use clk_enable/disable functions
Etienne Carriere [Fri, 7 Feb 2020 12:38:30 +0000 (13:38 +0100)]
feat(stm32mp1): use clk_enable/disable functions

Use the clock framework functions in SYSCFG driver instead of dedicated
functions.

Change-Id: Ifb50a5207e8cecef1c80d86e2de4d70ab6bf8b8b
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofeat(stm32mp1): add timeout in IO compensation
Nicolas Le Bayon [Mon, 18 Nov 2019 16:18:06 +0000 (17:18 +0100)]
feat(stm32mp1): add timeout in IO compensation

Use a timeout during IO compensation enable function, when
waiting for ready status. If timeout expires, print a warning
message, to indicate that the SoC recommendation is not followed.

Change-Id: I98c7dcb1364b832f4f4b5fc9a0b85a3741a8af4b
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofix(st-ddr): add missing debug.h
Yann Gautier [Wed, 19 Jan 2022 13:15:48 +0000 (14:15 +0100)]
fix(st-ddr): add missing debug.h

In a later patch, the stm32mp1_def.h will be reworked. The inclusion
of common/debug.h may not be done there through another included file.
Add this header inclusion in the files that need it.

Change-Id: I83687f7910032ca38c0856796580a650e1e41a68
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agoMerge "fix(imx8mp): change the BL31 physical load address" into integration
Manish Pandey [Wed, 19 Jan 2022 11:02:33 +0000 (12:02 +0100)]
Merge "fix(imx8mp): change the BL31 physical load address" into integration

3 years agofeat(nxp/driver/csu): add bypass bit mask definition
Jiafei Pan [Thu, 21 Oct 2021 08:05:37 +0000 (16:05 +0800)]
feat(nxp/driver/csu): add bypass bit mask definition

Add TZASC_BYPASS_MUX_DISABLE definition.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Ife4d819e2af6deb5e027491d30f6b7c5f79764e7

3 years agofeat(nxp/driver/dcfg): add gic address align register definition
Jiafei Pan [Thu, 21 Oct 2021 08:01:47 +0000 (16:01 +0800)]
feat(nxp/driver/dcfg): add gic address align register definition

Add some register fields definition.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I9fd78c318b34a2becd82d502fa6d18c8298eb40a

3 years agofeat(nxp/common/rcpm): add RCPM2 registers definition
Jiafei Pan [Thu, 21 Oct 2021 07:28:37 +0000 (15:28 +0800)]
feat(nxp/common/rcpm): add RCPM2 registers definition

Added some RCPM2 register offset definiton for register: IPSTPCR,
IPSTPACKR and POWMGTDCR, also added OVRD bit definiton of register
POWMGTDCR.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I301bc1401e053c2089b5eb3672c6e649c805a2ab

3 years agofix(nxp/common/setup): fix total dram size checking
Jiafei Pan [Thu, 21 Oct 2021 07:17:51 +0000 (15:17 +0800)]
fix(nxp/common/setup): fix total dram size checking

total_dram_size should be signed value because it is equal to return
value of init_ddr(), so if it is lower or equal zero, report
error as DDR is not initialized correctly.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Idbc40da103f60f10cb18c5306e97b764c1a9d372

3 years agofeat(nxp/common): add CORTEX A53 helper functions
Jiafei Pan [Thu, 21 Oct 2021 07:11:17 +0000 (15:11 +0800)]
feat(nxp/common): add CORTEX A53 helper functions

Add helper function to disable the load-store prefetch.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I36d7be37e0b800ab1e5842a56cfd04d779338868

3 years agofix(st-clock): correct types in error messages
Yann Gautier [Tue, 7 Sep 2021 07:05:44 +0000 (09:05 +0200)]
fix(st-clock): correct types in error messages

Replace wrong %d with the correct types.
This issue was found with the compilation flag:
-Wformat-signedness

Change-Id: Iec3817a245f964ce444b59561b777ce06c51a60a
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
3 years agorefactor(st-clock): directly use oscillator name
Gabriel Fernandez [Fri, 15 May 2020 06:00:03 +0000 (08:00 +0200)]
refactor(st-clock): directly use oscillator name

Instead of transmitting an 'enum stm32mp_osc_id', just send
directly the clock name with a 'const char *'

Change-Id: I866b05cbb1685a9b9f80e63dcd5ba7b1d35fc932
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
3 years agofeat(st-clock): check HSE configuration in serial boot
Lionel Debieve [Tue, 2 Jul 2019 16:03:34 +0000 (18:03 +0200)]
feat(st-clock): check HSE configuration in serial boot

In case of programmer mode, the bootrom manages to auto-detect
HSE clock configuration. In order to detect a bad device tree
setting in BL2, it will crash during programming if the configuration
is not aligned with the auto-detection.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Change-Id: I230697695745d6282d14b1ebfa6e4c4caa0cd8e2

3 years agofeat(st-clock): manage disabled oscillator
Patrick Delaunay [Mon, 1 Jul 2019 06:59:24 +0000 (08:59 +0200)]
feat(st-clock): manage disabled oscillator

Support "disabled" status for oscillator in device tree.

At boot time, the clock tree initialization performs the following
tasks:
- enabling of the oscillators present in the device tree and not
  disabled,
- disabling of the HSI oscillator if the node is absent or disabled
  (always activated by bootROM).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Change-Id: I176276022334f3d97ba0250b54062f0ae970e239

3 years agorefactor(st-clock): improve DT parsing for PLL nodes
Nicolas Le Bayon [Wed, 13 Nov 2019 10:46:31 +0000 (11:46 +0100)]
refactor(st-clock): improve DT parsing for PLL nodes

Add a function to get PLL settings from DT:
"cfg" property is mandatory, an error is generated if not found.
"frac" is optional, default value is returned if not found.
"csg" is optional too, a boolean value indicates if it has been
found, and its value is updated.

Store each PLL node validity information, this avoids parsing DT
several times.

Change-Id: I039466fbe1e67d160f7112814e7bb63b661804d0
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
3 years agoMerge "feat(cpu/cortex_a53): add L1PCTL macro definiton for CPUACTLR_EL1" into integr...
Joanna Farley [Mon, 17 Jan 2022 17:37:53 +0000 (18:37 +0100)]
Merge "feat(cpu/cortex_a53): add L1PCTL macro definiton for CPUACTLR_EL1" into integration

3 years agoMerge changes from topic "st_mapping_update" into integration
Madhukar Pappireddy [Thu, 13 Jan 2022 22:10:48 +0000 (23:10 +0100)]
Merge changes from topic "st_mapping_update" into integration

* changes:
  feat(stm32mp1): enable BL2_IN_XIP_MEM to remove relocation sections
  refactor(stm32mp1): reduce MMU memory regions and split XLAT by context
  feat(st): map 2MB for ROM code
  fix(stm32mp1): restrict DEVICE2 mapping in BL2

3 years agoMerge changes I52b241b2,I25b4b97c into integration
Madhukar Pappireddy [Thu, 13 Jan 2022 17:30:49 +0000 (18:30 +0100)]
Merge changes I52b241b2,I25b4b97c into integration

* changes:
  feat(mt8186): add Vcore DVFS driver
  feat(mt8186): add SPM suspend driver

3 years agofeat(cpu/cortex_a53): add L1PCTL macro definiton for CPUACTLR_EL1
Jiafei Pan [Thu, 21 Oct 2021 07:02:08 +0000 (15:02 +0800)]
feat(cpu/cortex_a53): add L1PCTL macro definiton for CPUACTLR_EL1

Add L1PCTL field definiton in register CPUACTLR_EL1.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Iebfb240ac58aa8f3dc870804bf4390dfbdfa9b95

3 years agofeat(mt8186): add Vcore DVFS driver
jason-ch chen [Tue, 16 Nov 2021 02:18:46 +0000 (10:18 +0800)]
feat(mt8186): add Vcore DVFS driver

Add Vcore DVFS to SPM driver.

TEST=build pass
BUG=b:202871018

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

3 years agofeat(mt8186): add SPM suspend driver
jason-ch chen [Tue, 16 Nov 2021 01:48:20 +0000 (09:48 +0800)]
feat(mt8186): add SPM suspend driver

Add SPM suspend driver for suspend/resume features.

TEST=build pass
BUG=b:202871018

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

3 years agofeat(tc): enable tracing
Davidson K [Wed, 13 Oct 2021 13:19:41 +0000 (18:49 +0530)]
feat(tc): enable tracing

Total Compute has ETE and TRBE tracing components and they have
to be enabled to capture the execution trace of the processor.

Signed-off-by: Davidson K <davidson.kumaresan@arm.com>
Change-Id: I3c86c11be2c655a61ecefa3eb2e4e3951577a113

3 years agofeat(stm32mp1): enable BL2_IN_XIP_MEM to remove relocation sections
Yann Gautier [Wed, 15 Sep 2021 09:30:25 +0000 (11:30 +0200)]
feat(stm32mp1): enable BL2_IN_XIP_MEM to remove relocation sections

Because the BL2 is not relocated, the usage of BL2_IN_XIP_MEM
can be used. It reduces the binary size by removing all relocation
sections. XIP will not be used when STM32MP_USE_STM32IMAGE is
defined. Introduce new definitions for SEPARATE_CODE_AND_RODATA.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Change-Id: Ifd76f14e5bc98990bf84e0bfd4ee0b4e49a9a293

3 years agorefactor(stm32mp1): reduce MMU memory regions and split XLAT by context
Yann Gautier [Thu, 16 Jan 2020 17:50:51 +0000 (18:50 +0100)]
refactor(stm32mp1): reduce MMU memory regions and split XLAT by context

Simplify the BL2 MMU mapping and reduce the memory regions
number. Split the XLAT define between BL2 and BL32 as binaries
do not share the same tables anymore.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Change-Id: Iaf09e72b4cc29acbe376f6f1cd2a8116c793ba26

3 years agofeat(st): map 2MB for ROM code
Yann Gautier [Wed, 15 Sep 2021 13:12:57 +0000 (15:12 +0200)]
feat(st): map 2MB for ROM code

This allows reducing MMU tables, and as there is nothing after ROM code
in memory mapping, this has no impact.

Change-Id: If51facb96a523770465cb06eb1ab400f75d26db3
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
3 years agofix(stm32mp1): restrict DEVICE2 mapping in BL2
Yann Gautier [Thu, 17 Sep 2020 09:38:09 +0000 (11:38 +0200)]
fix(stm32mp1): restrict DEVICE2 mapping in BL2

Only NAND memory map area can be of interest for BL2 in the
DEVICE2 area. Map DEVICE2 under STM32MP_RAW_NAND flag.

Change-Id: I7e3b39579e4a2525b25cb1987d6ec38038d0de2b
Signed-off-by: Yann Gautier <yann.gautier@st.com>
3 years agofix(imx8mp): change the BL31 physical load address
Ying-Chun Liu (PaulLiu) [Wed, 15 Dec 2021 08:03:17 +0000 (16:03 +0800)]
fix(imx8mp): change the BL31 physical load address

Change BL31 load address to 0x970000. This was done by Change-Id
I96d572fc. But then changed back to 0x960000 by Change-Id I8308c629.
However, 0x970000 is the correct value thus we change it back again.

Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Change-Id: Ia0db4877123b89072f723d18e2bcce25ef38f47d

3 years agorefactor(renesas): disable CRYPTO_SUPPORT option
Manish V Badarkhe [Sat, 8 Jan 2022 22:40:46 +0000 (22:40 +0000)]
refactor(renesas): disable CRYPTO_SUPPORT option

Disabled CRYPTO_SUPPORT option for Renesas platform as it does not
follow the TF-A authentication mechanism where Trusted-Boot mandates
Crypto module support.

Change-Id: I3aa771e983e3dde083dd8a861f25c0714ffd707f
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
3 years agorefactor(fvp): avoid Measured-Boot dependency on Trusted-Boot
Manish V Badarkhe [Sat, 8 Jan 2022 23:08:02 +0000 (23:08 +0000)]
refactor(fvp): avoid Measured-Boot dependency on Trusted-Boot

As Measured-Boot and Trusted-Boot are orthogonal, removed
Trusted-Boot's dependency on Measured-Boot by allowing them
to apply the Crypto module changes independently using the
CRYPTO_SUPPORT build flag.

Change-Id: I5a420e5d84f3fefe0c0092d822dab981e6390bbf
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
3 years agorefactor(measured-boot): avoid Measured-Boot dependency on Trusted-Boot
Manish V Badarkhe [Thu, 16 Dec 2021 10:41:47 +0000 (10:41 +0000)]
refactor(measured-boot): avoid Measured-Boot dependency on Trusted-Boot

Measured-Boot and Trusted-Boot are orthogonal to each other and hence
removed dependency of Trusted-Boot on Measured-Boot by making below
changes -
1. BL1 and BL2 main functions are used for initializing Crypto module
   instead of the authentication module
2. Updated Crypto module registration macro for MEASURED_BOOT with only
   necessary callbacks for calculating image hashes
3. The 'load_auth_image' function is now used for the image measurement
   during Trusted or Non-Trusted Boot flow

Change-Id: I3570e80bae8ce8f5b58d84bd955aa43e925d9fff
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
3 years agobuild: introduce CRYPTO_SUPPORT build option
Manish V Badarkhe [Sat, 8 Jan 2022 22:56:06 +0000 (22:56 +0000)]
build: introduce CRYPTO_SUPPORT build option

Introduced CRYPTO_SUPPORT an internal, non-user facing
build option and set it when the TRUSTED_BOARD_BOOT or
MEASURED_BOOT option is enabled.

Change-Id: Iae723d57a755a8b534b6ced650016365c62d4e05
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
3 years agoMerge "feat(mt8195): apply erratas of CA78 for MT8195" into integration
Madhukar Pappireddy [Mon, 10 Jan 2022 23:25:01 +0000 (00:25 +0100)]
Merge "feat(mt8195): apply erratas of CA78 for MT8195" into integration

3 years agostyle(commitlint): reorder header/body max line length fields
Chris Kay [Wed, 1 Dec 2021 16:05:31 +0000 (16:05 +0000)]
style(commitlint): reorder header/body max line length fields

This change simply reorders the `body-max-line-length` and
`header-max-line-length` fields to be in the order that most people
mentally expect. This has no actual function impact.

Change-Id: Ice0db951e4049baaf4de9372255407adc4e3bf66
Signed-off-by: Chris Kay <chris.kay@arm.com>
3 years agochore(npm): update package versions/license
Chris Kay [Wed, 1 Dec 2021 16:01:04 +0000 (16:01 +0000)]
chore(npm): update package versions/license

These fields were not updated accidentally on the v2.6.0 release.

Change-Id: I215105da618ff6f72057eaa40a34ff4b24f7ee36
Signed-off-by: Chris Kay <chris.kay@arm.com>
3 years agoMerge changes from topic "st_ddr_updates" into integration
Manish Pandey [Fri, 7 Jan 2022 16:24:54 +0000 (17:24 +0100)]
Merge changes from topic "st_ddr_updates" into integration

* changes:
  refactor(st-ddr): move basic tests in a dedicated file
  refactor(st-ddr): reorganize generic and specific elements
  feat(stm32mp1): allow configuration of DDR AXI ports number
  refactor(st-ddr): update parameter array initialization
  feat(st-ddr): add read valid training support
  refactor(stm32mp1): remove the support of calibration result
  fix(st-ddr): correct DDR warnings

3 years agoMerge "fix(st): manage UART clock and reset only in BL2" into integration
Manish Pandey [Fri, 7 Jan 2022 16:09:53 +0000 (17:09 +0100)]
Merge "fix(st): manage UART clock and reset only in BL2" into integration

3 years agoMerge changes Icf5e3045,Ie5fb0b72 into integration
André Przywara [Thu, 6 Jan 2022 18:14:29 +0000 (19:14 +0100)]
Merge changes Icf5e3045,Ie5fb0b72 into integration

* changes:
  docs(allwinner): update SoC list and build options
  docs(allwinner): add SUNXI_SETUP_REGULATORS build option

3 years agoMerge changes Ifea8148e,I73559522 into integration
Manish Pandey [Thu, 6 Jan 2022 11:01:41 +0000 (12:01 +0100)]
Merge changes Ifea8148e,I73559522 into integration

* changes:
  fix(morello): include errata workaround for 1868343
  fix(errata): workaround for Rainier erratum 1868343