mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
fpga: zynqmp: support loading encrypted bitfiles
Add supporting new compatible string "u-boot,zynqmp-fpga-enc" to handle loading encrypted bitfiles. This feature requires encrypted FSBL, as according to UG1085: "The CSU automatically locks out the AES key, stored in either BBRAM or eFUSEs, as a key source to the AES engine if the FSBL is not encrypted. This prevents using the BBRAM or eFUSE as the key source to the AES engine during run-time applications." Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com> Co-developed-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io> Tested-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com> Link: https://lore.kernel.org/r/20220722141614.297383-14-oleksandr.suvorov@foundries.io Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
committed by
Michal Simek
parent
a3a1afb747
commit
b524f8fb1e
@@ -20,6 +20,7 @@
|
||||
/* device numbers must be non-negative */
|
||||
#define FPGA_INVALID_DEVICE -1
|
||||
|
||||
#define FPGA_ENC_DEV_KEY 0
|
||||
#define FPGA_ENC_USR_KEY 1
|
||||
#define FPGA_NO_ENC_OR_NO_AUTH 2
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ typedef enum { /* typedef xilinx_family */
|
||||
/* FPGA bitstream supported types */
|
||||
#define FPGA_LEGACY BIT(0)
|
||||
#define FPGA_XILINX_ZYNQMP_DDRAUTH BIT(1)
|
||||
#define FPGA_XILINX_ZYNQMP_ENC BIT(2)
|
||||
|
||||
typedef struct { /* typedef xilinx_desc */
|
||||
xilinx_family family; /* part type */
|
||||
|
||||
@@ -26,7 +26,9 @@
|
||||
extern struct xilinx_fpga_op zynqmp_op;
|
||||
|
||||
#if CONFIG_IS_ENABLED(FPGA_LOAD_SECURE)
|
||||
#define ZYNQMP_FPGA_FLAGS (FPGA_LEGACY | FPGA_XILINX_ZYNQMP_DDRAUTH)
|
||||
#define ZYNQMP_FPGA_FLAGS (FPGA_LEGACY | \
|
||||
FPGA_XILINX_ZYNQMP_DDRAUTH | \
|
||||
FPGA_XILINX_ZYNQMP_ENC)
|
||||
#else
|
||||
#define ZYNQMP_FPGA_FLAGS (FPGA_LEGACY)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user