Skip to content

Enable ARM Trusted Firmware for U-Boot

Chee Hong Ang u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16arm: socfpga: soc64: Remove CONFIG_OF_EMBEDconfigs/socfpga_agilex_defconfig configs/socfpga_stratix10_defconfig+0 -21 reply
2/16arm: socfpga: soc64: Add FIT generator script for pack itb with ATFboard/altera/soc64/fit_spl_atf.sh+91 -03 replies
3/16arm: socfpga: Add function for checking description from FIT imagearch/arm/mach-socfpga/board.c+11 -12 replies
4/16arm: socfpga: soc64: Load FIT image with ATF supportinclude/configs/socfpga_soc64_common.h+4 -01 reply
5/16arm: socfpga: soc64: Override 'lowlevel_init' to support ATFarch/arm/mach-socfpga/Makefile arch/arm/mach-socfpga/lowlevel_init_soc64.S+78 -01 reply
6/16arm: socfpga: Disable "spin-table" method for booting Linuxarch/arm/mach-socfpga/Kconfig+0 -21 reply
7/16arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits)arch/arm/mach-socfpga/Makefile arch/arm/mach-socfpga/include/mach/smc_api.h arch/arm/mach-socfpga/smc_api.c+71 -01 reply
8/16arm: socfpga: soc64: Define SMC function identifiers for PSCI SiP servicesinclude/linux/intel-smc.h+573 -01 reply
9/16mmc: dwmmc: socfpga: Add ATF support for MMC driverdrivers/mmc/socfpga_dw_mmc.c+20 -01 reply
10/16net: designware: socfpga: Add ATF support for MAC driverdrivers/net/dwmac_socfpga.c+39 -41 reply
11/16arm: socfpga: soc64: Add ATF support for Reset Manager driverarch/arm/mach-socfpga/reset_manager_s10.c+10 -01 reply
12/16arm: socfpga: soc64: Add ATF support for FPGA reconfig driverdrivers/fpga/intel_sdm_mb.c+139 -01 reply
13/16arm: socfpga: mailbox: Add 'SYSTEM_RESET' PSCI support to mbox_reset_cold()arch/arm/mach-socfpga/mailbox_s10.c+5 -01 reply
14/16arm: socfpga: soc64: SSBL shall not setup stack on OCRAMinclude/configs/socfpga_soc64_common.h+5 -01 reply
15/16arm: socfpga: soc64: Skip handoff data access in SSBLarch/arm/mach-socfpga/wrap_pll_config_s10.c+2 -11 reply
16/16configs: socfpga: Add defconfig for Agilex and Stratix 10 with ATF supportconfigs/socfpga_agilex_atf_defconfig configs/socfpga_stratix10_atf_defconfig+144 -01 reply

Reviews trailers per patch

13 of 16 patches have a Reviewed-by or Acked-by.

PatchLey Foon Tan
1/16R-b
2/16R-b
3/16R-b R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16
9/16R-b
10/16
11/16
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 00/16] Enable ARM Trusted Firmware for U-Boot

Repost of the following patchs:
https://lists.denx.de/pipermail/u-boot/2020-March/402705.html

New U-boot flow with ARM Trusted Firmware (ATF) support:
SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1)

SPL loads the u-boot.itb which consist of:
1) u-boot-nodtb.bin (U-Boot Proper image)
2) u-boot.dtb (U-Boot Proper DTB)
3) bl31.bin (ATF-BL31 image)

Supported Platform: Intel SoCFPGA 64bits (Stratix10 & Agilex)

Now, U-Boot Proper is running in non-secure mode (EL2), it invokes SMC/PSCI calls provided by ATF to perform COLD reset, System Manager register accesses and mailbox communications with Secure Device Manager (SDM).

Steps to build the U-Boot with ATF support:
1) Build U-Boot
2) Build ATF BL31
3) Copy ATF BL31 binary image into U-Boot's root folder
4) "make u-boot.itb" to generate u-boot.itb

These patchsets have dependency on:
arm: socfpga: soc64: Add timeout waiting for NOC idle ACK
https://lists.denx.de/pipermail/u-boot/2020-August/423029.html

Rename Stratix10 FPGA driver and support Agilex
https://lists.denx.de/pipermail/u-boot/2020-August/422798.html

SoCFPGA mailbox driver fixes and enhancements
https://lists.denx.de/pipermail/u-boot/2020-August/423140.html

arm: socfpga: soc64: Initialize timer in SPL only
https://lists.denx.de/pipermail/u-boot/2020-July/419692.html

arm: socfpga: soc64: Remove PHY interface setup from misc arch init
https://lists.denx.de/pipermail/u-boot/2020-July/419690.html

Enable sysreset support for SoCFPGA SoC64 platforms
https://lists.denx.de/pipermail/u-boot/2020-August/422509.html

arm: socfpga: soc64: Disable CONFIG_PSCI_RESET
https://lists.denx.de/pipermail/u-boot/2020-August/423373.html

Chee Hong Ang (16):
arm: socfpga: soc64: Remove CONFIG_OF_EMBED
arm: socfpga: soc64: Add FIT generator script for pack itb with ATF
arm: socfpga: Add function for checking description from FIT image
arm: socfpga: soc64: Load FIT image with ATF support
arm: socfpga: soc64: Override 'lowlevel_init' to support ATF
arm: socfpga: Disable "spin-table" method for booting Linux
arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA

    (64bits)

arm: socfpga: soc64: Define SMC function identifiers for PSCI SiP
services
mmc: dwmmc: socfpga: Add ATF support for MMC driver
net: designware: socfpga: Add ATF support for MAC driver
arm: socfpga: soc64: Add ATF support for Reset Manager driver
arm: socfpga: soc64: Add ATF support for FPGA reconfig driver
arm: socfpga: mailbox: Add 'SYSTEM_RESET' PSCI support to
mbox_reset_cold()
arm: socfpga: soc64: SSBL shall not setup stack on OCRAM
arm: socfpga: soc64: Skip handoff data access in SSBL
configs: socfpga: Add defconfig for Agilex and Stratix 10 with ATF
support

 arch/arm/mach-socfpga/Kconfig                 |   2 -
 arch/arm/mach-socfpga/Makefile                |   4 +
 arch/arm/mach-socfpga/board.c                 |  12 +-
 arch/arm/mach-socfpga/include/mach/smc_api.h  |  13 +
 arch/arm/mach-socfpga/lowlevel_init_soc64.S   |  76 +++
 arch/arm/mach-socfpga/mailbox_s10.c           |   5 +
 arch/arm/mach-socfpga/reset_manager_s10.c     |  10 +
 arch/arm/mach-socfpga/smc_api.c               |  56 ++
 arch/arm/mach-socfpga/wrap_pll_config_s10.c   |   3 +-
 board/altera/soc64/fit_spl_atf.sh             |  91 +++
 ...defconfig => socfpga_agilex_atf_defconfig} |  25 +-
 configs/socfpga_agilex_defconfig              |   1 -
 ...config => socfpga_stratix10_atf_defconfig} |  25 +-
 configs/socfpga_stratix10_defconfig           |   1 -
 drivers/fpga/intel_sdm_mb.c                   | 139 +++++
 drivers/mmc/socfpga_dw_mmc.c                  |  20 +
 drivers/net/dwmac_socfpga.c                   |  43 +-
 include/configs/socfpga_soc64_common.h        |   9 +
 include/linux/intel-smc.h                     | 573 ++++++++++++++++++
 19 files changed, 1078 insertions(+), 30 deletions(-)
 create mode 100644 arch/arm/mach-socfpga/include/mach/smc_api.h
 create mode 100644 arch/arm/mach-socfpga/lowlevel_init_soc64.S
 create mode 100644 arch/arm/mach-socfpga/smc_api.c
 create mode 100755 board/altera/soc64/fit_spl_atf.sh
 copy configs/{socfpga_agilex_defconfig => socfpga_agilex_atf_defconfig} (77%)
 copy configs/{socfpga_stratix10_defconfig => socfpga_stratix10_atf_defconfig} (80%)
 create mode 100644 include/linux/intel-smc.h
Signature · 1 line
2.19.0