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