| 0f0a9dbf | 01-Nov-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "fix(imx8m): fix dram retention fsp_table access" into integration |
| ad6eb195 | 26-Oct-2022 |
Shawn Guo <shawn.guo@linaro.org> |
fix(imx8m): update poweroff related SNVS_LPCR bits only
Function imx_system_off() writes SNVS_LPCR register to power off the SoC without bit masking. This clears other bits like LPWUI_EN and breaks
fix(imx8m): update poweroff related SNVS_LPCR bits only
Function imx_system_off() writes SNVS_LPCR register to power off the SoC without bit masking. This clears other bits like LPWUI_EN and breaks the function of SoC wake-up using RTC alarm. Fix it by updating poweroff related bits only.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Change-Id: If641af4dc1103c67e1a645c03bb36a5f56665aef
show more ...
|
| a8e6a2c8 | 22-Aug-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
feat(imx8mm): add BL31 PIE support
Enable PIE support so the BL31 firmware can be loaded from anywhere within the OCRAM (SRAM). For the PIE support we only need to replace the BL31_BASE define by th
feat(imx8mm): add BL31 PIE support
Enable PIE support so the BL31 firmware can be loaded from anywhere within the OCRAM (SRAM). For the PIE support we only need to replace the BL31_BASE define by the BL31_START symbol which is a relocatable and we need to enable it by setting ENABLE_PIE := 1.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I52e654917167f0faf6aa437da233d8faf1f2bb26
show more ...
|
| 40ff8ff8 | 22-Aug-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mm): introduce BL2_SIZE and BL31_SIZE
No functional change.
Introduce BLx_SIZE defines and calculate the limits based on the BLx_BASE and the BLx_SIZE define. Also make use of SZ_128K
refactor(imx8mm): introduce BL2_SIZE and BL31_SIZE
No functional change.
Introduce BLx_SIZE defines and calculate the limits based on the BLx_BASE and the BLx_SIZE define. Also make use of SZ_128K to make it easier to read. This is required for later BL31 PIE support since it drops the calculation based on the BL31_LIMIT and BL31_BASE.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I8670faa5d5a572ef230011594f3d0d594fb257d9
show more ...
|
| 0b727248 | 22-Aug-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mm): make use of setup_page_tables()
No functional change. Use the setup_page_tables() helper function which does the three calls for us. Also the function has some logging support whic
refactor(imx8mm): make use of setup_page_tables()
No functional change. Use the setup_page_tables() helper function which does the three calls for us. Also the function has some logging support which will be nice during debugging.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: Ic465491ff5468e812e805de56be3b6b92d245080
show more ...
|
| 686a5bc8 | 22-Aug-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mm): cleanup the mmap region settings
No functional change.
Introduce the bl_regions array to gather all regions and make use of the MAP_REGION_FLAT() macro. The array is than passed t
refactor(imx8mm): cleanup the mmap region settings
No functional change.
Introduce the bl_regions array to gather all regions and make use of the MAP_REGION_FLAT() macro. The array is than passed to mmap_add() to map all regions. While on it introduce some defines so the addr, size and flags can be read more easily.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I9f0ae9fc89514db71bef734b867c46574833831c
show more ...
|
| 62d37a43 | 04-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
feat(imx8mn): add BL31 PIE support
Enable PIE support so the BL31 firmware can be loaded from anywhere within the OCRAM (SRAM). For the PIE support we only need to replace the BL31_BASE define by th
feat(imx8mn): add BL31 PIE support
Enable PIE support so the BL31 firmware can be loaded from anywhere within the OCRAM (SRAM). For the PIE support we only need to replace the BL31_BASE define by the BL31_START symbol which is a relocatable and we need to enable it by setting ENABLE_PIE := 1.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I33c8e35c35112d70d2725eebe484a853a8aad9e0
show more ...
|
| 796a249c | 04-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mn): introduce BL31_SIZE
Introduce BL31_SIZE define and calculate the limit based on the BL31_BASE and the BL31_SIZE define. Also make use of SZ_128K to make it easier to read. This is
refactor(imx8mn): introduce BL31_SIZE
Introduce BL31_SIZE define and calculate the limit based on the BL31_BASE and the BL31_SIZE define. Also make use of SZ_128K to make it easier to read. This is required for later BL31 PIE support since it drops the calculation based on the BL31_LIMIT and BL31_BASE.
While on it remove the duplicated <lib/utils_def.h> include.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: Ifca40bd5682ef993db986439115abd9e9a66a5b2
show more ...
|
| 602b3286 | 04-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mn): make use of setup_page_tables()
No functional change.
Use the setup_page_tables() helper function which does the three calls for us. Also the function has some logging support whi
refactor(imx8mn): make use of setup_page_tables()
No functional change.
Use the setup_page_tables() helper function which does the three calls for us. Also the function has some logging support which will be nice during debugging.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I2f0182f19300a3a57bbeb7e2107c5fb5525dd0c1
show more ...
|
| b6ac8cc2 | 04-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mn): cleanup the mmap region settings
No functional change.
Introduce the bl_regions array to gather all regions and make use of the MAP_REGION_FLAT() macro. The array is than passed t
refactor(imx8mn): cleanup the mmap region settings
No functional change.
Introduce the bl_regions array to gather all regions and make use of the MAP_REGION_FLAT() macro. The array is than passed to mmap_add() to map all regions. While on it introduce some defines so the addr, size and flags can be read more easily.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: Id5849d2a7326a943927f458f1c6abbc041f5be18
show more ...
|
| 7a443fef | 01-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
feat(imx8mp): add BL31 PIE support
Enable PIE support so the BL31 firmware can be loaded from anywhere within the OCRAM (SRAM). How important this is shows the back and forth of the BL31_BASE addres
feat(imx8mp): add BL31 PIE support
Enable PIE support so the BL31 firmware can be loaded from anywhere within the OCRAM (SRAM). How important this is shows the back and forth of the BL31_BASE address starting with TF-A v2.5. Since then the BL31_BASE address wasn't stable and choosing the correct combination of SPL version loadaddress and TF-A version loadaddr was tricky.
For the PIE support we only need to replace the BL31_BASE by the BL31_START which is a relocatable symbol and to enable it by setting ENABLE_PIE := 1.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I4214db1f27120f9f9cd1413ccd7a5a7d095ff45d
show more ...
|
| 5fe51c93 | 04-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mp): introduce BL2_SIZE and BL31_SIZE
No functional change.
Introduce BLx_SIZE defines and calculate the limits based on the BLx_BASE and the BLx_SIZE define. Also make use of SZ_128K
refactor(imx8mp): introduce BL2_SIZE and BL31_SIZE
No functional change.
Introduce BLx_SIZE defines and calculate the limits based on the BLx_BASE and the BLx_SIZE define. Also make use of SZ_128K to make it easier to read. This is required for later BL31 PIE support since it drops the calculation based on the BL31_LIMIT and BL31_BASE.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: Idae34c1dfcedd35238fe083149080a199d50eed0
show more ...
|
| c52966f9 | 01-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mp): make use of setup_page_tables()
No functional change. Use the setup_page_tables() helper function which does the three calls for us. Also the function has some logging support whic
refactor(imx8mp): make use of setup_page_tables()
No functional change. Use the setup_page_tables() helper function which does the three calls for us. Also the function has some logging support which will be nice during debugging.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I350965414939865220f745ef5b24d2cdc3095e7b
show more ...
|
| c995943d | 01-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
refactor(imx8mp): cleanup the mmap region settings
Introduce the bl_regions array to gather all regions and make use of the MAP_REGION_FLAT() macro. The array is than passed to mmap_add() to map all
refactor(imx8mp): cleanup the mmap region settings
Introduce the bl_regions array to gather all regions and make use of the MAP_REGION_FLAT() macro. The array is than passed to mmap_add() to map all regions. While on it introduce some defines so the addr, size and flags can be read more easily. No functional change done.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: I7f637beea61138a86d691cd78fba2dd17e4dc925
show more ...
|
| 5d2d3328 | 05-Jul-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
feat(imx8m): make psci common code pie compatible
Swap the BL31_BASE define with the BL31_START symbol. This is required for later added PIE support because the symbol location can be relocated wher
feat(imx8m): make psci common code pie compatible
Swap the BL31_BASE define with the BL31_START symbol. This is required for later added PIE support because the symbol location can be relocated whereas the define can't be relocated. In case of disabled PIE support BL31_START equals BL31_BASE and so we don't need a ifdef.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: Ic1bbf3af5b346898bfcbb207ffc27d9a5bdcaae7
show more ...
|
| 6c8f5231 | 21-Sep-2022 |
Marco Felsch <m.felsch@pengutronix.de> |
fix(imx8m): fix dram retention fsp_table access
The fsp_table access by [i-1] can cause invalid memory access in case of i=0. This can be the case if no fsp_table is available. Fix this by adding th
fix(imx8m): fix dram retention fsp_table access
The fsp_table access by [i-1] can cause invalid memory access in case of i=0. This can be the case if no fsp_table is available. Fix this by adding the idx variable which tracks the correct index.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Change-Id: If2285517eb9fe837f3ad54360307a77a658bf62c
show more ...
|
| 720e7b66 | 26-Sep-2022 |
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> |
feat(imx8m): add support for high assurance boot
Introduce support for High Assurance Boot (HABv4), which is used to establish and extend the Root-of-Trust during FW loading at any given boot stage.
feat(imx8m): add support for high assurance boot
Introduce support for High Assurance Boot (HABv4), which is used to establish and extend the Root-of-Trust during FW loading at any given boot stage.
This commit introduces support for HAB ROM Vector Table (RVT) API, which is normally used by post-ROM code to authenticate additional boot images (Kernel, FDT, FIT, etc.) that are taking part in the Root-of-Trust.
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Change-Id: I780d308369824fa4850844eb9e91768e417166a0
show more ...
|
| 62a93aa7 | 26-Sep-2022 |
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> |
feat(imx8mp): add hab and map required memory blocks
In order for HAB to perform operations, memory regions has to be mapped in TF-A, which HAB ROM code would use internally.
Include those memory b
feat(imx8mp): add hab and map required memory blocks
In order for HAB to perform operations, memory regions has to be mapped in TF-A, which HAB ROM code would use internally.
Include those memory blocks for i.MX8M+ SoC. Of a special note, the DRAM block is mapped with complete size available on the platform and uses MT_RW attributes, this is required to minimize the size of translation tables and provide a possibility to exchange the execution results between EL3 and EL1&2, see details in [1].
Link: [1]: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/16880 Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Change-Id: I986cdce434d1ec9ea8b3c0d5599edde55b9b30f8
show more ...
|
| b5f06d3d | 26-Sep-2022 |
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> |
feat(imx8mn): add hab and map required memory blocks
In order for HAB to perform operations, memory regions has to be mapped in TF-A, which HAB ROM code would use internally.
Include those memory b
feat(imx8mn): add hab and map required memory blocks
In order for HAB to perform operations, memory regions has to be mapped in TF-A, which HAB ROM code would use internally.
Include those memory blocks for i.MX8MN SoC. Of a special note, the DRAM block is mapped with complete size available on the platform and uses MT_RW attributes, this is required to minimize the size of translation tables and provide a possibility to exchange the execution results between EL3 and EL1&2, see details in [1].
Link: [1]: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/16880 Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Change-Id: If7a2b718658db452871e1ae56b71a4983e8ef2fe
show more ...
|
| 5941f372 | 26-Sep-2022 |
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> |
feat(imx8mm): add hab and map required memory blocks
In order for HAB to perform operations, memory regions has to be mapped in TF-A, which HAB ROM code would use internally.
Include those memory b
feat(imx8mm): add hab and map required memory blocks
In order for HAB to perform operations, memory regions has to be mapped in TF-A, which HAB ROM code would use internally.
Include those memory blocks for i.MX8MM SoC. Of a special note, the DRAM block is mapped with complete size available on the platform and uses MT_RW attributes, this is required to minimize the size of translation tables and provide a possibility to exchange the execution results between EL3 and EL1&2, see details in [1].
Link: [1]: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/16880 Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Change-Id: I6a3a3d7105b85c2f4ab6ea6cfbca67c9a325eb11
show more ...
|
| 885e2683 | 12-Sep-2022 |
Claus Pedersen <claustbp@google.com> |
refactor(libc): clean up dependencies in libc
- Removing platform dependencies from libc modules. - Replacing panicking with actual error handling. - Debug macros are included indirectly from assert
refactor(libc): clean up dependencies in libc
- Removing platform dependencies from libc modules. - Replacing panicking with actual error handling. - Debug macros are included indirectly from assert.h. Removing "platform_def.h" from assert.h and adding "common/debug.h" where the macros are used. - Removing hack for fixing PLAT_LOG_LEVEL_ASSERT to 40. Instead removing assert with expression, as this does not provide additional information.
Signed-off-by: Claus Pedersen <claustbp@google.com> Change-Id: Icc201ea7b63c1277e423c1cfd13fd6816c2bc568
show more ...
|
| 901d74b2 | 19-Sep-2022 |
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> |
fix(imx8m): move caam init after serial init
CAAM provides serial output during initialization, but the serial init occurs after CAAM. This leads to serial output produced by CAAM init function to b
fix(imx8m): move caam init after serial init
CAAM provides serial output during initialization, but the serial init occurs after CAAM. This leads to serial output produced by CAAM init function to be omitted and not displayed.
Change the order of initialization and call CAAM init after Serial. This has no impact as Serial does not require CAAM to be initialized upfront.
Fixes: 2502709f60de ("plat: imx8m: Add caam module init on imx8m") Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Cc: Jacky Bai <ping.bai@nxp.com> Change-Id: I09c0a5474a1babfb0b53c4455891689ec08b5bdb
show more ...
|
| 6e24d795 | 19-Sep-2022 |
Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> |
fix(imx8m): correct serial output for HAB JR0
Serial output is missing the EOL marker, which makes the output garbled.
Add EOL to the output, which adds a newline and makes log output consistent.
fix(imx8m): correct serial output for HAB JR0
Serial output is missing the EOL marker, which makes the output garbled.
Add EOL to the output, which adds a newline and makes log output consistent.
Fixes: 77850c96f23b ("feat(plat/imx8m): do not release JR0 to NS if HAB is using it") Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Cc: Franck LENORMAND <franck.lenormand@nxp.com> Cc: Jacky Bai <ping.bai@nxp.com> Change-Id: I58b67f441016122bc9361d7224d310522917eff0
show more ...
|
| e95abc4c | 14-Jul-2022 |
Salome Thirot <salome.thirot@arm.com> |
fix: make TF-A use provided OpenSSL binary
Currently Tf-A uses whatever openssl binary is on the system to sign images. However if OPENSSL_DIR is specified in the build flags this can lead to linkin
fix: make TF-A use provided OpenSSL binary
Currently Tf-A uses whatever openssl binary is on the system to sign images. However if OPENSSL_DIR is specified in the build flags this can lead to linking issues as the system binary can end up being linked against shared libraries provided in OPENSSL_DIR/lib if both binaries (the system's and the on in OPENSSL_DIR/bin) are the same version. This patch ensures that the binary used is always the one given by OPENSSL_DIR to avoid those link issues.
Signed-off-by: Salome Thirot <salome.thirot@arm.com> Change-Id: Ib534e06ebc8482e4391e376d3791a87968de4a99
show more ...
|
| 0cb8dd7a | 08-Jul-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes Iec22dcab,Ib88b4b5d,I50cd6b82,If1167785,I9b3a08ef, ... into integration
* changes: feat(imx8m): keep pu domains in default state during boot stage feat(imx8m): add the PU power dom
Merge changes Iec22dcab,Ib88b4b5d,I50cd6b82,If1167785,I9b3a08ef, ... into integration
* changes: feat(imx8m): keep pu domains in default state during boot stage feat(imx8m): add the PU power domain support on imx8mm/mn feat(imx8m): add the anamix pll override setting feat(imx8m): add the ddr frequency change support for imx8m family feat(imx8mn): enable dram retention suuport on imx8mn feat(imx8mm): enable dram retention suuport on imx8mm feat(imx8m): add dram retention flow for imx8m family
show more ...
|