fsl_secure_boot.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2015 Freescale Semiconductor, Inc.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __FSL_SECURE_BOOT_H
  7. #define __FSL_SECURE_BOOT_H
  8. #ifdef CONFIG_SECURE_BOOT
  9. #ifndef CONFIG_FIT_SIGNATURE
  10. #define CONFIG_CHAIN_OF_TRUST
  11. #endif
  12. #endif
  13. #ifdef CONFIG_CHAIN_OF_TRUST
  14. #define CONFIG_CMD_ESBC_VALIDATE
  15. #define CONFIG_CMD_BLOB
  16. #define CONFIG_FSL_SEC_MON
  17. #define CONFIG_SHA_PROG_HW_ACCEL
  18. #define CONFIG_RSA
  19. #define CONFIG_RSA_FREESCALE_EXP
  20. #ifndef CONFIG_FSL_CAAM
  21. #define CONFIG_FSL_CAAM
  22. #endif
  23. #ifndef CONFIG_DM
  24. #define CONFIG_DM
  25. #endif
  26. #define CONFIG_KEY_REVOCATION
  27. #ifndef CONFIG_SYS_RAMBOOT
  28. /* The key used for verification of next level images
  29. * is picked up from an Extension Table which has
  30. * been verified by the ISBC (Internal Secure boot Code)
  31. * in boot ROM of the SoC.
  32. * The feature is only applicable in case of NOR boot and is
  33. * not applicable in case of RAMBOOT (NAND, SD, SPI).
  34. */
  35. #define CONFIG_FSL_ISBC_KEY_EXT
  36. #endif
  37. #ifdef CONFIG_LS1043A
  38. /* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit */
  39. #define CONFIG_ESBC_ADDR_64BIT
  40. #endif
  41. #define CONFIG_EXTRA_ENV \
  42. "setenv fdt_high 0xcfffffff;" \
  43. "setenv initrd_high 0xcfffffff;" \
  44. "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
  45. /* The address needs to be modified according to NOR memory map */
  46. #define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000
  47. #include <config_fsl_chain_trust.h>
  48. #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */
  49. #endif