soc.def 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #
  2. # Copyright 2018-2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #
  7. #------------------------------------------------------------------------------
  8. #
  9. # This file contains the basic architecture definitions that drive the build
  10. #
  11. # -----------------------------------------------------------------------------
  12. CORE_TYPE := a72
  13. CACHE_LINE := 6
  14. # Set to GIC400 or GIC500
  15. GIC := GIC500
  16. # Set to CCI400 or CCN504 or CCN508
  17. INTERCONNECT := CCI400
  18. # Layerscape chassis level - set to 3=LSCH3 or 2=LSCH2
  19. CHASSIS := 3_2
  20. # TZC used is TZC380 or TZC400
  21. TZC_ID := TZC400
  22. # CONSOLE is NS16550 or PL011
  23. CONSOLE := NS16550
  24. # DDR PHY generation to be used
  25. PLAT_DDR_PHY := PHY_GEN1
  26. PHYS_SYS := 64
  27. # Max Size of CSF header. Required to define BL2 TEXT LIMIT in soc.def
  28. # Input to CST create_hdr_esbc tool
  29. CSF_HDR_SZ := 0x3000
  30. # In IMAGE_BL2, compile time flag for handling Cache coherency
  31. # with CAAM for BL2 running from OCRAM
  32. SEC_MEM_NON_COHERENT := yes
  33. # OCRAM MAP for BL2
  34. # Before BL2
  35. # 0x18000000 - 0x18009fff -> Used by ROM code
  36. # 0x1800a000 - 0x1800dfff -> CSF header for BL2
  37. # For FlexSFlexSPI boot
  38. # 0x1800e000 - 0x18040000 -> Reserved for BL2 binary
  39. # For SD boot
  40. # 0x1800e000 - 0x18030000 -> Reserved for BL2 binary
  41. # 0x18030000 - 0x18040000 -> Reserved for SD buffer
  42. OCRAM_START_ADDR := 0x18000000
  43. OCRAM_SIZE := 0x40000
  44. # Area of OCRAM reserved by ROM code
  45. NXP_ROM_RSVD := 0xa000
  46. # Location of BL2 on OCRAM
  47. BL2_BASE_ADDR := $(shell echo $$(( $(OCRAM_START_ADDR) + $(NXP_ROM_RSVD) + $(CSF_HDR_SZ) )))
  48. # Covert to HEX to be used by create_pbl.mk
  49. BL2_BASE := $(shell echo "0x"$$(echo "obase=16; ${BL2_BASE_ADDR}" | bc))
  50. # BL2_HDR_LOC is at (BL2_BASE + NXP_ROM_RSVD)
  51. # This value BL2_HDR_LOC + CSF_HDR_SZ should not
  52. # overalp with BL2_BASE
  53. # Input to CST create_hdr_isbc tool
  54. BL2_HDR_LOC := 0x1800A000
  55. # SoC ERRATAS to be enabled
  56. # DDR ERRATA
  57. ERRATA_DDR_A009803 := 1
  58. ERRATA_DDR_A009942 := 1
  59. ERRATA_DDR_A010165 := 1
  60. # Enable dynamic memory mapping
  61. PLAT_XLAT_TABLES_DYNAMIC := 1
  62. # Define Endianness of each module
  63. NXP_GUR_ENDIANNESS := LE
  64. NXP_DDR_ENDIANNESS := LE
  65. NXP_SEC_ENDIANNESS := LE
  66. NXP_SFP_ENDIANNESS := LE
  67. NXP_SNVS_ENDIANNESS := LE
  68. NXP_ESDHC_ENDIANNESS := LE
  69. NXP_QSPI_ENDIANNESS := LE
  70. NXP_FSPI_ENDIANNESS := LE
  71. NXP_SCFG_ENDIANNESS := LE
  72. NXP_GPIO_ENDIANNESS := LE
  73. NXP_SFP_VER := 3_4
  74. # OCRAM ECC Enabled
  75. OCRAM_ECC_EN := yes