blob: 268f2f30f5389e5a9672127f890994383bff1cd8 [file] [log] [blame]
Xi Chene8c681c2021-03-03 17:58:07 +08001config SOC_MEDIATEK_COMMON
2 bool
Jianjun Wang270b0b62021-07-14 15:38:19 +08003 select NO_ECAM_MMCONF_SUPPORT if PCI
Xi Chene8c681c2021-03-03 17:58:07 +08004 help
5 common code blocks for Mediatek SOCs
6
7if SOC_MEDIATEK_COMMON
8
9config MEDIATEK_DRAM_DVFS
10 bool
11 default n
12 help
13 This option enables DRAM calibration with multiple frequencies (low,
14 medium and high frequency groups, with total 7 frequencies) for DVFS
15 feature. All supported data rates are: 800, 1200, 1600, 1866, 2400,
16 3200, 4266.
17
18config MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT
19 bool
20 default y
Rex-BC Chen909f2d02021-08-10 16:17:09 +080021 depends on MEDIATEK_DRAM_DVFS
Xi Chene8c681c2021-03-03 17:58:07 +080022 help
23 This options limit DRAM frequency calibration count from total 7 to 3,
24 other frequency will directly use the low frequency shu result.
25
Yu-Ping Wuc0716522023-02-21 17:24:54 +080026config MEDIATEK_DRAM_BLOB_FAST_INIT
Xi Chen5c7a9232022-01-04 19:00:44 +080027 bool "Enable running fast calibration by blob"
28 default n
29 help
30 This option allows performing fast calibration through different
31 open-source policy.
32
Xi Chena6378732023-02-21 14:31:58 +080033config MEDIATEK_DRAM_SCRAMBLE
Xi Chen3ea02022023-06-14 10:38:19 +080034 bool "Enable DRAM scramble feature"
Yidi Lin37e832502023-06-01 12:15:17 +080035 default n
Xi Chena6378732023-02-21 14:31:58 +080036 help
37 This option enables DRAM data scramble, which can prevent DRAM data from
38 being hacked.
39
Xi Chene8c681c2021-03-03 17:58:07 +080040config MEMORY_TEST
41 bool
42 default y
43 help
44 This option enables memory basic compare test to verify the DRAM read
45 or write is as expected.
46
Ryan Chuangd41a5ae2021-06-18 19:47:39 +080047config DPM_FOUR_CHANNEL
48 bool
49 default n
50 help
51 This option enables four channel configuration for DPM.
52
Rex-BC Chen716320b2021-08-10 12:28:09 +080053config MTK_DFD
Rex-BC Chen561a2af2021-11-25 12:16:51 +080054 bool "Enable MediaTek DFD (Design For Debug) settings"
Rex-BC Chen716320b2021-08-10 12:28:09 +080055 help
Rex-BC Chen561a2af2021-11-25 12:16:51 +080056 DFD (Design for Debug) is a debugging tool, which scans flip-flops
57 and dumps to internal RAM on the WDT reset. We reserve 1MB on DRAM
58 to store logs of DFD.
Rex-BC Chen716320b2021-08-10 12:28:09 +080059
Rex-BC Chenc69ea242022-03-25 15:53:22 +080060config USE_CBMEM_DRAM_INFO
61 bool "Support filling dram information to cbmem"
62 help
63 The DRAM initialization will keep and return DRAM information (size,
64 geometry and other DDR info) so we can fill that into the CBMEM.
65
Rex-BC Chen7a0ca5b2022-06-13 19:01:51 +080066config FLASH_DUAL_IO_READ
67 bool
68 default n
69 help
70 When this option is enabled, the flash controller provides the ability
71 to dual IO read mode.
72
Rex-BC Chen6d449e02022-10-19 18:51:39 +080073config PWRAP_WITH_PMIF_SPMI
74 bool
75 default n
76 help
77 When this option is enabled, the PMIC interface only supports PWRAP
78 and PMIF_SPMI.
79
Rex-BC Chen15432522022-10-19 19:00:22 +080080config PMIF_SPMI_IOCFG_DEFAULT_SETTING
81 bool
82 default n
83 help
84 For SoCs where IO pins default to PMIF_SPMI mode, enable this option
85 to skip software PMIF_SPMI IO pins configuration.
86
Yidi Lin63d26b82022-12-20 16:42:53 +080087config DEVAPC_DEBUG
88 bool
89 default n
90 help
91 When this option is enabled, the DEVAPC driver prints the settings after
92 initialization.
93
Yidi Linc68176c2024-01-16 15:08:41 +080094config EARLY_MMU_INIT
95 bool
96 default n
97 help
98 When this option is enabled, `mtk_mmu_init()` will be done in
99 `bootblock_soc_early_init()` to reduce the boot time.
100
Xi Chene8c681c2021-03-03 17:58:07 +0800101endif