fsl_secure_boot.h 1.1 KB

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