Debian Codegraph @

src/soc/mediatek/common/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config SOC_MEDIATEK_COMMON
4 bool
5 select NO_ECAM_MMCONF_SUPPORT if PCI
6 help
7 common code blocks for Mediatek SOCs
8
9 if SOC_MEDIATEK_COMMON
10
11 config MEDIATEK_DRAM_ADAPTIVE
12 bool
13 default n if SOC_MEDIATEK_MT8173
14 default n if SOC_MEDIATEK_MT8183
15 default n if SOC_MEDIATEK_MT8192
16 default y
17 help
18 Starting from MT8195, MediaTek platform supports "dram adaptive" to
19 automatically detect dram information, including channel, rank, die
20 size..., and can automatically configure EMI settings. So we can just
21 pass a placeholder param blob to `mt_mem_init_run` by enabling this
22 option.
23 Platforms (MT8173, MT8183, MT8192) which do not support "dram adaptive"
24 need to implement `get_sdram_config` to get the DRAM configuration info.
25
26 config MEDIATEK_DRAM_DVFS
27 bool
28 default n
29 help
30 This option enables DRAM calibration with multiple frequencies (low,
31 medium and high frequency groups, with total 7 frequencies) for DVFS
32 feature. All supported data rates are: 800, 1200, 1600, 1866, 2400,
33 3200, 4266.
34
35 config MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT
36 bool
37 default y
38 depends on MEDIATEK_DRAM_DVFS
39 help
40 This options limit DRAM frequency calibration count from total 7 to 3,
41 other frequency will directly use the low frequency shu result.
42
43 config MEDIATEK_DRAM_BLOB_FAST_INIT
44 bool "Enable running fast calibration by blob"
45 default n
46 help
47 This option allows performing fast calibration through different
48 open-source policy.
49
50 config MEDIATEK_DRAM_SCRAMBLE
51 bool "Enable DRAM scramble feature"
52 default n
53 help
54 This option enables DRAM data scramble, which can prevent DRAM data from
55 being hacked.
56
57 config MEMORY_TEST
58 bool
59 default y
60 help
61 This option enables memory basic compare test to verify the DRAM read
62 or write is as expected.
63
64 config DPM_FOUR_CHANNEL
65 bool
66 default n
67 help
68 This option enables four channel configuration for DPM.
69
70 config DPM_BROADCAST
71 bool
72 default n
73 help
74 This option enables the DPM Broadcast function, applicable only for dpm_v2.
75
76 config MTK_DFD
77 bool "Enable MediaTek DFD (Design For Debug) settings"
78 help
79 DFD (Design for Debug) is a debugging tool, which scans flip-flops
80 and dumps to internal RAM on the WDT reset. We reserve 1MB on DRAM
81 to store logs of DFD.
82
83 config USE_CBMEM_DRAM_INFO
84 bool "Support filling dram information to cbmem"
85 help
86 The DRAM initialization will keep and return DRAM information (size,
87 geometry and other DDR info) so we can fill that into the CBMEM.
88
89 config FLASH_DUAL_IO_READ
90 bool
91 default n
92 help
93 When this option is enabled, the flash controller provides the ability
94 to dual IO read mode.
95
96 config PWRAP_WITH_PMIF_SPMI
97 bool
98 default n
99 help
100 When this option is enabled, the PMIC interface only supports PWRAP
101 and PMIF_SPMI.
102
103 config PMIF_SPMI_IOCFG_DEFAULT_SETTING
104 bool
105 default n
106 help
107 For SoCs where IO pins default to PMIF_SPMI mode, enable this option
108 to skip software PMIF_SPMI IO pins configuration.
109
110 config DEVAPC_DEBUG
111 bool
112 default n
113 help
114 When this option is enabled, the DEVAPC driver prints the settings after
115 initialization.
116
117 config EARLY_MMU_INIT
118 bool
119 default n
120 help
121 When this option is enabled, `mtk_mmu_init()` will be done in
122 `bootblock_soc_early_init()` to reduce the boot time.
123
124 endif