fsl_secure_boot.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright 2010-2011 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. #include <asm/config_mpc85xx.h>
  9. #ifdef CONFIG_SECURE_BOOT
  10. #define CONFIG_CMD_ESBC_VALIDATE
  11. #define CONFIG_FSL_SEC_MON
  12. #define CONFIG_SHA_PROG_HW_ACCEL
  13. #define CONFIG_DM
  14. #define CONFIG_RSA
  15. #define CONFIG_RSA_FREESCALE_EXP
  16. #ifndef CONFIG_FSL_CAAM
  17. #define CONFIG_FSL_CAAM
  18. #endif
  19. #endif
  20. #ifdef CONFIG_SECURE_BOOT
  21. #if defined(CONFIG_FSL_CORENET)
  22. #define CONFIG_SYS_PBI_FLASH_BASE 0xc0000000
  23. #elif defined(CONFIG_BSC9132QDS)
  24. #define CONFIG_SYS_PBI_FLASH_BASE 0xc8000000
  25. #elif defined(CONFIG_C29XPCIE)
  26. #define CONFIG_SYS_PBI_FLASH_BASE 0xcc000000
  27. #else
  28. #define CONFIG_SYS_PBI_FLASH_BASE 0xce000000
  29. #endif
  30. #define CONFIG_SYS_PBI_FLASH_WINDOW 0xcff80000
  31. #if defined(CONFIG_B4860QDS) || \
  32. defined(CONFIG_T4240QDS) || \
  33. defined(CONFIG_T2080QDS) || \
  34. defined(CONFIG_T2080RDB) || \
  35. defined(CONFIG_T1040QDS) || \
  36. defined(CONFIG_T104xD4QDS) || \
  37. defined(CONFIG_T104xRDB) || \
  38. defined(CONFIG_T104xD4RDB) || \
  39. defined(CONFIG_PPC_T1023) || \
  40. defined(CONFIG_PPC_T1024)
  41. #define CONFIG_SYS_CPC_REINIT_F
  42. #define CONFIG_KEY_REVOCATION
  43. #undef CONFIG_SYS_INIT_L3_ADDR
  44. #define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
  45. #endif
  46. #if defined(CONFIG_RAMBOOT_PBL)
  47. #undef CONFIG_SYS_INIT_L3_ADDR
  48. #define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
  49. #endif
  50. #if defined(CONFIG_C29XPCIE)
  51. #define CONFIG_KEY_REVOCATION
  52. #endif
  53. #if defined(CONFIG_PPC_P3041) || \
  54. defined(CONFIG_PPC_P4080) || \
  55. defined(CONFIG_PPC_P5020) || \
  56. defined(CONFIG_PPC_P5040) || \
  57. defined(CONFIG_PPC_P2041)
  58. #define CONFIG_FSL_TRUST_ARCH_v1
  59. #endif
  60. #if defined(CONFIG_FSL_CORENET)
  61. /* The key used for verification of next level images
  62. * is picked up from an Extension Table which has
  63. * been verified by the ISBC (Internal Secure boot Code)
  64. * in boot ROM of the SoC
  65. */
  66. #define CONFIG_FSL_ISBC_KEY_EXT
  67. #endif
  68. #ifndef CONFIG_FIT_SIGNATURE
  69. /* The bootscript header address is different for B4860 because the NOR
  70. * mapping is different on B4 due to reduced NOR size.
  71. */
  72. #if defined(CONFIG_B4860QDS)
  73. #define CONFIG_BOOTSCRIPT_HDR_ADDR 0xecc00000
  74. #elif defined(CONFIG_FSL_CORENET)
  75. #define CONFIG_BOOTSCRIPT_HDR_ADDR 0xe8e00000
  76. #elif defined(CONFIG_BSC9132QDS)
  77. #define CONFIG_BOOTSCRIPT_HDR_ADDR 0x88020000
  78. #elif defined(CONFIG_C29XPCIE)
  79. #define CONFIG_BOOTSCRIPT_HDR_ADDR 0xec020000
  80. #else
  81. #define CONFIG_BOOTSCRIPT_HDR_ADDR 0xee020000
  82. #endif
  83. #include <config_fsl_secboot.h>
  84. #endif
  85. #endif
  86. #endif