fsl_secure_boot.h 1.3 KB

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