summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/atf
Commit message (Collapse)AuthorAgeFilesLines
* atf: remove two obsolete patchesTing Liu2020-06-163-60/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0001-fix-fiptool-build-error.patch fixes below issue: | gcc fiptool.o tbbr_config.o -o fiptool -lcrypto | /opt/ci/yocto/dunfell/bld-lx2160ardb/tmp/hosttools/ld: cannot find -lcrypto | collect2: error: ld returned 1 exit status | Makefile:39: recipe for target 'fiptool' failed | make[1]: *** [fiptool] Error 1 The issue was fixed in atf_git.bb in below commit from meta-freescale: commit: fa4994b2d8da73fd3ae30875b3af8d7a682cdd53 author: Daniel Klauer <daniel.klauer@gin.de> atf: Fix builds of native tools during build process 0001-Makefile-add-CC-gcc.patch fixes below issue: | byte_swap.c:9:10: fatal error: stdio.h: No such file or directory | 9 | #include <stdio.h> | | ^~~~~~~~~ | compilation terminated. | create_pbl.c:10:10: fatal error: stdio.h: No such file or directory | 10 | #include <stdio.h> | | ^~~~~~~~~ | compilation terminated. The issue was fixed in atf source code: commit: 9aae9712ec09ddeae528a1896247e5c432a6a19f author: Biwen Li <biwen.li@nxp.com> plat/nxp/tools: fix a makefiles bug that will use default implicit rules build and test have no problem without them. Signed-off-by: Ting Liu <ting.liu@nxp.com>
* atf: use var RCW_FOLDER to allow selecting rcw folderTing Liu2020-06-101-4/+7
| | | | | | | | | | | | | | Generally, rcw are deployed to ${DEPLOY_DIR_IMAGE}/rcw/${MACHINE}/. But there are some machines that don't follow this rule. For example, lx2160ardb deployed RCW in folder lx2160ardb_rev2 for boards with Rev2 processor, but folder lx2160ardb for boards with Rev1 processor. As there are only difference on RCW for them, use variable RCW_FOLDER to allow selecting rcw folder for building atf targets. For exmaple, to build atf which supports lx2160ardb with Rev2 processor: RCW_FOLDER_lx2160ardb = "lx2160ardb_rev2" Signed-off-by: Ting Liu <ting.liu@nxp.com>
* atf{-tools}: update to LSDK-20.04-update-290520Jens Rehsack2020-06-022-2/+2
| | | | | | | | | | | | | | | | | | | | | Forward atf and atf-tools to commit 7d748e6f0, which contains since LSDK-20.04: 7d748e6f0 Enable debug print for DDR phy register read write 6af93c00b Merge pull request #106 in GITAM/atf from ~NXA27427/atf:jira/platsec-1135 to LSDK e15b57995 drivers/nxp/ddr: Fix the address decoding for 1 rank. f12307a97 ddr: phy_gen2: Enable FFE for rev1 SI 9d3807137 ddr:fix phy debug messages for 2019.04 fw 4c00f9eb2 ddr: phy-gen2: Enable High-Effort WrDQ1D b0ea56902 ddr: phy-gen2: pll related optimisation 0b895382a ddr: phy-gen2: Enable quickRd2D 9b6676c5a ddr: phy-gen2: improve signal integrity during writes 8d6e26d87 ddr: phy-gen2: dfi optimisation cd77da485 Fixing memclk calculation f0245c7ff drivers: ddr: phy-gen2: update DDR PHY firmware to v2019.04 1f29f30e6 Merge pull request #95 in GITAM/atf from ~NXA07556/atf:LSDK to LSDK 60aabf01e armv8: Add workaround for ARM 2PRF memory 77284b357 LS1046A: Remove workaround for SEC when going into LPM20 state Signed-off-by: Jens Rehsack <sno@netbsd.org>
* atf_git: add support for chosing boot device automaticallyJens Rehsack2020-05-261-0/+3
| | | | | | | | QorIQ platforms have to choose the boot device in rcw. Solid-Run created an RCW snippet which is able to detect the boot device by checking all and use first available. Signed-off-by: Jens Rehsack <sno@netbsd.org>
* atf: fix build failure due to optee binary not existTing Liu2020-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | When optee enabled in DISTRO_FEATURES, optee-os-qoriq is added as DEPENDS, and atf tries to find optee binary under ${DEPLOY_DIR_IMAGE}. This has issue when do_deploy task of optee-os-qoriq does not run before atf's do_compile. Switch to find optee binary under ${RECIPE_SYSROOT} instead of ${DEPLOY_DIR_IMAGE}. Steps to reproduce the issue: $ echo 'DISTRO_FEATURES_append = " optee"' >>conf/local.conf $ bitbake -c cleansstate atf optee-os-qoriq $ bitbake -c install optee-os-qoriq $ bitbake -c compile atf | Building lx2160ardb | Makefile:633: *** 'BL32=.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin' | was specified, but '.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin' | does not exist. Stop. | make: *** Waiting for unfinished jobs.... Signed-off-by: Ting Liu <ting.liu@nxp.com>
* atf: easy define additional build targetTing Liu2020-05-061-17/+25
| | | | | | | | | | | | Use variable PLATFORM_ADDITIONAL_TARGET to allow define machine dependent atf targets. This avoids checking ${MACHINE} in shell script, and allows define additional build target using overrides. For exmaple: PLATFORM_ADDITIONAL_TARGET ??= "" PLATFORM_ADDITIONAL_TARGET_ls1012afrwy = "ls1012afrwy_512mb" PLATFORM_ADDITIONAL_TARGET_xxx = "yyy" # for other board Signed-off-by: Ting Liu <ting.liu@nxp.com>
* aft: upgrade to LSDK-20.04Jens Rehsack2020-04-061-1/+1
| | | | | | | | | | | | | | | Upgrade NXP reference implementation of Trusted Firmware-A from NXP to to latest release from NXP (LSDK-20.04): * Merge pull request #67 in GITAM/atf from ~NXF32311/atf_nxf32311:jira/QLINUX-13542-asleep-does-not-assert-while-ls1046a-going-into-low-power-mode to LSDK |\ | * c73cd5a74 LS1046A: Fix ASLEEP did not assert when sleep * | 392a6c75d lx2160a: timer: Configure CNTFRQ register of CNTCTLBase |/ * 524d1e920 plat: nxp: ota: Update the calling for esdhc_emmc_init * e8aa4b69b nxp/emmc: Remove card detection logic for SDHC2 controller Signed-off-by: Jens Rehsack <sno@netbsd.org>
* atf: upgrade LDSK-19.03 -> LSDK-19.09-311212Jens Rehsack2020-02-111-1/+1
| | | | | | Upgrade ATF to latest release from NXP. Signed-off-by: Jens Rehsack <sno@NetBSD.org>
* atf: update to 85e98b9Chunrong Guo2019-10-211-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | *update to lsdk 1909 tag include the following changes: 85e98b9 - nxp: errata: Enable workaround for Erratum A010539 with POLICY_OTA 8882a80 - ddr: phy: phy-gen2: optmial PHY settings 07d897c - plat: nxp: Add OTA support for Secure Boot 9fde61d - nand: fix for bad block management while nand read c4cbfcd - plat: nxp: ls1028a: Fix RDB reset issue durwing lpm20 exit 3502a08 - plat/nxp/nand: Add missing ONFI Device flag 7497445 - plat: nxp: ls1012afrwy_512mb: Add NXP_SD_BLOCK_BUF_SIZE definition 7f9026a - plat: nxp: ota: show OTA status clearly ccc6620 - LPM-20 support on ls1028ardb. fb76032 - moved the PMU Core & cluster mask from lsch3.h 15f9e0e - plat: nxp: Add OTA support with POLICY_OTA option 51c6363 - nxp: drivers: wdt: Add SP805 Watchdog support 3776f41 - nxp: drivers: wdt: Add Watchdog support 761ece9 - plat: nxp: soc-ls1012: Add NXP_SD_BLOCK_BUF_SIZE definition e77ebd1 - nxp/sd: Add write support for eSDHC 7132834 - plat/lx2: Add support for correct CCN configuration for LX2120 411ed2b - plat/lx2: Correct RNF node to cluster mapping *Add OTA support Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
* atf: specify the non default keys pairChunrong Guo2019-09-041-1/+6
| | | | Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
* atf: Remove redundant COMPATIBLE_MACHINEAlban Bedel2019-09-021-1/+0
| | | | | | | COMPATIBLE_MACHINE is set two times to the same value, remove the second occurrence as it is useless. Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
* atf: Make the package machine specificAlban Bedel2019-09-021-0/+1
| | | | | | | The ARM Trusted Firmware is machine specific but the package is not set as such. Set the package architecture to ${MACHINE_ARCH} to fix this. Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
* atf: Fix builds of native tools during build processDaniel Klauer2019-08-151-0/+2
| | | | | | | | | | | | atf builds some native tools such as fiptool during its build process, this should use Yocto's native toolchain options instead of just the host's. This way the fiptool build will actually use the openssl-native dependency from Yocto's native sysroot, instead of the host's openssl (which may not exist). Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
* Split fiptool build into separate recipeDaniel Klauer2019-08-151-0/+19
| | | | | | | | | | | | Previously, ddr-phy built native fiptool during its own build process, but without using Yocto's native toolchain settings. This results in unexpected host dependencies. For example, fiptool depends on openssl, which may or may not be installed on the host. So now fiptool is built in a separate recipe (atf-tools-native) which can easily depend on openssl. Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
* atf: Only enable and depends on optee when supportedAlban Bedel2019-08-151-2/+6
| | | | | | | | | Use the new optee machine feature to only enable it when it is supported by the machine and the distro. We use a package config switch to only add the dependency when it is needed. This prevent a build failure on machines that don't support optee. Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
* atf: update to 17f94e4Chunrong Guo2019-07-121-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | *update to lsdk 1906 tag include the following changes: 17f94e4 - plat/nxp/fsl_sec: Remove infinite loop from DEBUG Build 2d18325 - plat/nxp: Change MMU mapping of QSPI, NOR flash to MEMORY from DEVICE 5b8b9a3 - plat/nxp: Add lx2160aqds support 332c6ee - Merge branch 'LSDK' of ssh://bitbucket.sw.nxp.com/gitam/atf into LSDK 1e4b1e6 - Merge pull request #41 in GITAM/atf from ~NXA19332/atf-fork:LSDK to LSDK 693673c - plat: nxp: ls1028rdb: optimize DDR performance 8976e00 - Merge pull request #36 in GITAM/atf from ~NXA27427/atf:jira/PLATSEC-822 to LSDK af21b29 - common: include: correct setbits_le32 macro 3947e8e - plat/nxp/tools: Adds flag to check CRC&STOP or STOP command. c8af318 - nxp: ddr: ls1012a: fixes random hang issue fea3df8 - Merge pull request #30 in GITAM/atf from ~NXF49783/atf:LSDK to LSDK 1df8fb4 - Merge pull request #38 in GITAM/atf from ls1028_brup to LSDK 7e3f1fc - nxp: drivers: ddr: phy-gen2: add PllCtrl settings 07a2317 - nxp/ls1046: Add support for frwy board 25443b9 - plat: nxp: ddr: update ODT and output driver impedance b68a2d7 - csf_hdr_parser/input_blx_ch2: Corrects OEMUID 0 input attribute name. 5b14d6d - plat/nxp/drivers/sfp: Reset the data value at the set GPIO pin. 89963ec - Merge branch 'LSDK' of ssh://bitbucket.sw.nxp.com/gitam/atf into LSDK b54f200 - nxp/ls1028a: Enable core timebase *add ls1046afrwy support *install fip_ddr_sec.bin Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
* atf: Fix the build on machines that don't support UEFIAlban Bedel2019-06-271-1/+1
| | | | | | | | | The uefi package silently build nothing on machines that are not supported. On machines without UEFI support this lead to a build failure in atf as it always try to build fip_uefi.bin. Fix the compile step to only build fip_uefi.bin if there is an UEFI image. Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
* atf: update to 7e34aebChunrong Guo2019-04-111-2/+6
| | | | | | | | | | | | | | | | | | | | | | *update to lsdk 1903 tag include the following changes 7e34aeb - Fix 2088 sleep hang dc16e35 - SDEI: Ensure SDEI handler executes with CVE-2018-3639 mitigation enabled 5eb3190 - Fast path SMCCC_ARCH_WORKAROUND_1 calls from AArch32 cd1e8ce - Add support for dynamic mitigation for CVE-2018-3639 82c570f - aarch32: Implement static workaround for CVE-2018-3639 2a655ec - Implement static workaround for CVE-2018-3639 90c75d3 - Rename symbols and files relating to CVE-2017-5715 179e18a - Fixup SMCCC_FEATURES return value for SMCCC_ARCH_WORKAROUND_1 2671898 - lx2: Remove setting of POWMGTCSR[LPM20_RQ] from LPM20 flow 7ca22ff - Adding LX2160 system power-down (LPM20) 0f81f07 - ls2088ardb: Add support of Non-ECC UDIMM ee53ed7 - nxp/lx2: Enable Errate ERRATA_A72_859971 on LX2 *add ddr-phy to DEPENDS for lx2160a *install ddr4_pmu_train_dmem.bin Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
* atf: ReorganizeChunrong Guo2019-03-211-25/+67
| | | | | | | | *Add FUSE DISTRO_FEATURES *Add chassistype and ddrphyopt *Install srk.pri and srk.pub Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
* atf: add recipesChunrong Guo2019-01-313-0/+212
*update to lsdk 1812 tag include the following changes 4971f39 - nxp: Invalidates the output buffer memory to get random bytes a58ecfe - plat/nxp: Correct calculation of GIC Offset for LS1023 ba92b6a - nxp: Shift the soc_mem_access function before loading Fuse file 67faea4 - nxp:ls2088: Add support to return number of clusters based on personality 2d57313 - nxp/interconnect: Streamline interconnect driver bc0b955 - nxp:ls2088: Fix the call to get_gic_rd_base d2f5eb0 - nxp: Add DCSR ADDR define in Chassis 3 devices de0dfcc - nxp: Enable core timebase 2dd3986 - Corrected the usage of POLICY_PERF_WRIOP. 41b8f73 - ls2088a lx2160a: usage of new APIs of CCN driver 6f20e79 - ccn: Introduce API to set and read value of node register d2e6a39 - BL2_Chasis_3_2: Correct the BL2 image location in OCRAM. d3a7ae9 - nxp: clean up secondary core PSCI data offset calculation 7feae63 - nxp: clean up OCRAM layout 5c2ec36 - nxp: Drop DATA_LOC option d103a4f - nxp: ls2088a: Abort wake up if not by SGI15 d8000b3 - Setting retention control for LPM20 of LS1088 and LS2088 0430db9 - nxp: ls1012a: Fix generic timer clock bfe6a23 - nxp: Update ls1012 timer to use fixed 25 MHz for ARM generic timer 5d5480e - plat/nxp: Change CSFHDR_SZ to 0x3000 for all platforms 62ed791 - nxp/ls1012: Fix BL31 boot up issue ffc6895 - nxp: Change BL2_TEXT_LIMIT for SD Boot e301618 - nxp: Reduce default CSF HDR SZ for ls1088 and ls2088 81b4323 - nxp: drivers: ddr: Update workaround for A008511 a3ee152 - nxp/ls1012: Set SMMU Policy to 0 for ls1012 965e334 - nxp: Correct Policy checking for SMMU Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>