blob: 1352a8c42a5b5cdefef5fc0b8d0c61d2277e2c92 [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
Xi Chen5c7a9232022-01-04 19:00:44 +080026config MEDIATEK_BLOB_FAST_INIT
27 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 Chene8c681c2021-03-03 17:58:07 +080033config MEMORY_TEST
34 bool
35 default y
36 help
37 This option enables memory basic compare test to verify the DRAM read
38 or write is as expected.
39
Ryan Chuangd41a5ae2021-06-18 19:47:39 +080040config DPM_FOUR_CHANNEL
41 bool
42 default n
43 help
44 This option enables four channel configuration for DPM.
45
Rex-BC Chen716320b2021-08-10 12:28:09 +080046config MTK_DFD
Rex-BC Chen561a2af2021-11-25 12:16:51 +080047 bool "Enable MediaTek DFD (Design For Debug) settings"
Rex-BC Chen716320b2021-08-10 12:28:09 +080048 help
Rex-BC Chen561a2af2021-11-25 12:16:51 +080049 DFD (Design for Debug) is a debugging tool, which scans flip-flops
50 and dumps to internal RAM on the WDT reset. We reserve 1MB on DRAM
51 to store logs of DFD.
Rex-BC Chen716320b2021-08-10 12:28:09 +080052
Rex-BC Chenc69ea242022-03-25 15:53:22 +080053config USE_CBMEM_DRAM_INFO
54 bool "Support filling dram information to cbmem"
55 help
56 The DRAM initialization will keep and return DRAM information (size,
57 geometry and other DDR info) so we can fill that into the CBMEM.
58
Rex-BC Chen7a0ca5b2022-06-13 19:01:51 +080059config FLASH_DUAL_IO_READ
60 bool
61 default n
62 help
63 When this option is enabled, the flash controller provides the ability
64 to dual IO read mode.
65
Rex-BC Chen6d449e02022-10-19 18:51:39 +080066config PWRAP_WITH_PMIF_SPMI
67 bool
68 default n
69 help
70 When this option is enabled, the PMIC interface only supports PWRAP
71 and PMIF_SPMI.
72
Rex-BC Chen15432522022-10-19 19:00:22 +080073config PMIF_SPMI_IOCFG_DEFAULT_SETTING
74 bool
75 default n
76 help
77 For SoCs where IO pins default to PMIF_SPMI mode, enable this option
78 to skip software PMIF_SPMI IO pins configuration.
79
Yidi Lin63d26b82022-12-20 16:42:53 +080080config DEVAPC_DEBUG
81 bool
82 default n
83 help
84 When this option is enabled, the DEVAPC driver prints the settings after
85 initialization.
86
Xi Chene8c681c2021-03-03 17:58:07 +080087endif