> -----Original Message----- > From: Lim, Elly Siew Chin <[email protected]> > Sent: Thursday, December 24, 2020 6:21 PM > To: [email protected] > Cc: Marek Vasut <[email protected]>; Tan, Ley Foon > <[email protected]>; See, Chin Liang <[email protected]>; > Simon Goldschmidt <[email protected]>; Chee, Tien Fong > <[email protected]>; Westergreen, Dalon > <[email protected]>; Simon Glass <[email protected]>; Gan, > Yau Wai <[email protected]>; Lim, Elly Siew Chin > <[email protected]> > Subject: [v7 07/18] arm: socfpga: Add secure register access helper functions > for SoC 64bits > > These secure register access functions allow U-Boot proper running at EL2 > (non-secure) to access System Manager's secure registers by calling the ATF's > PSCI runtime services (EL3/secure). > > Signed-off-by: Siew Chin Lim <[email protected]> > > --- > v5 > --- > Return error code instead of hang the system if fail to access the secure > register. > > --- > v6 > --- > Directly return 'ret' after SMC call in write and update function. > > --- > v7 > --- > Simplify the code to "return invoke_smc(..." in write and update function. > --- > arch/arm/mach-socfpga/Makefile | 1 + > .../mach-socfpga/include/mach/secure_reg_helper.h | 19 +++++ > arch/arm/mach-socfpga/secure_reg_helper.c | 89 Reviewed-by: Ley Foon Tan <[email protected]> Regards Ley Foon
- [v7 00/18] Enable ARM Trusted Firmware for U-Boot Siew Chin Lim
- [v7 01/18] arm: socfpga: Add function for checking desc... Siew Chin Lim
- [v7 02/18] arm: socfpga: soc64: Load FIT image with ATF... Siew Chin Lim
- [v7 03/18] arm: socfpga: soc64: Override 'lowlevel_init... Siew Chin Lim
- [v7 04/18] arm: socfpga: Disable "spin-table"... Siew Chin Lim
- [v7 05/18] arm: socfpga: soc64: Add SMC helper function... Siew Chin Lim
- [v7 06/18] arm: socfpga: soc64: Define SMC function ide... Siew Chin Lim
- [v7 09/18] mmc: dwmmc: socfpga: Add ATF support for MMC... Siew Chin Lim
- [v7 08/18] mmc: dwmmc: Change designware MMC 'clksel' c... Siew Chin Lim
- [v7 07/18] arm: socfpga: Add secure register access hel... Siew Chin Lim
- RE: [v7 07/18] arm: socfpga: Add secure register ac... Tan, Ley Foon
- [v7 10/18] net: designware: socfpga: Add ATF support fo... Siew Chin Lim
- [v7 11/18] arm: socfpga: soc64: Add ATF support for Res... Siew Chin Lim
- [v7 12/18] arm: socfpga: soc64: Add ATF support for FPG... Siew Chin Lim
- [v7 13/18] arm: socfpga: mailbox: Add 'SYSTEM_RESET' PS... Siew Chin Lim
- [v7 14/18] arm: socfpga: soc64: SSBL shall not setup st... Siew Chin Lim
- [v7 15/18] arm: socfpga: soc64: Skip handoff data acces... Siew Chin Lim
- [v7 17/18] arm: socfpga: soc64: Enable FIT image genera... Siew Chin Lim
- [v7 16/18] arm: socfpga: dts: soc64: Add binman node of... Siew Chin Lim
- [v7 18/18] configs: socfpga: Add defconfig for Agilex a... Siew Chin Lim

