plat_config.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (c) 2022-2024, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Separate text code and read only data
  7. SEPARATE_CODE_AND_RODATA := 1
  8. # ARMv8.2 and above need enable HW assist coherence
  9. HW_ASSISTED_COHERENCY := 1
  10. # No need coherency memory because of HW assistency
  11. USE_COHERENT_MEM := 0
  12. # GIC600
  13. GICV3_SUPPORT_GIC600 := 1
  14. #
  15. # MTK options
  16. #
  17. PLAT_EXTRA_RODATA_INCLUDES := 1
  18. USE_PMIC_WRAP_INIT_V2 := 1
  19. USE_RTC_MT6359P := 1
  20. # Configs for A78 and A55
  21. CTX_INCLUDE_AARCH32_REGS := 0
  22. ERRATA_A55_1530923 := 1
  23. ERRATA_A55_1221012 := 1
  24. ERRATA_A78_1688305 := 1
  25. ERRATA_A78_1941498 := 1
  26. ERRATA_A78_1951500 := 1
  27. ERRATA_A78_1821534 := 1
  28. ERRATA_A78_2132060 := 1
  29. ERRATA_A78_2242635 := 1
  30. ERRATA_A78_2376745 := 1
  31. ERRATA_A78_2395406 := 1
  32. CONFIG_ARCH_ARM_V8_2 := y
  33. CONFIG_MTK_MCUSYS := y
  34. MCUSYS_VERSION := v1
  35. CONFIG_MTK_PM_SUPPORT := y
  36. CONFIG_MTK_PM_ARCH := 8_2
  37. CONFIG_MTK_CPU_PM_SUPPORT := y
  38. CONFIG_MTK_CPU_PM_ARCH := 3_2
  39. CONFIG_MTK_SMP_EN := y
  40. CONFIG_MTK_CPU_SUSPEND_EN := y
  41. CONFIG_MTK_SPM_VERSION := mt8188
  42. CONFIG_MTK_SUPPORT_SYSTEM_SUSPEND := y
  43. CPU_PM_TINYSYS_SUPPORT := y
  44. MTK_PUBEVENT_ENABLE := y
  45. # True Random Number Generator firmware Interface
  46. TRNG_SUPPORT := 1
  47. MACH_MT8188 := 1
  48. $(eval $(call add_define,MACH_MT8188))