soc/intel/alderlake: Add ADL-P 4+4 with 28W TDP
[coreboot.git] / src / drivers / intel / gma / Kconfig
blobea892d1127e80654feea8314e6cd0e2fc41fe2f5
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config INTEL_DDI
4         bool
5         default n
6         help
7           helper functions for intel DDI operations
9 config INTEL_EDID
10         bool
11         default n
13 config INTEL_INT15
14         bool
15         default n
17 config INTEL_GMA_ACPI
18         bool
19         default n
21 config INTEL_GMA_BCLV_OFFSET
22         hex
23         default 0xc8254
25 config INTEL_GMA_BCLV_WIDTH
26         int
27         default 16
29 config INTEL_GMA_BCLM_OFFSET
30         hex
31         default 0xc8256
33 config INTEL_GMA_BCLM_WIDTH
34         int
35         default 16
37 config INTEL_GMA_SSC_ALTERNATE_REF
38         bool
39         default n
40         help
41           Set when the SSC reference clock for LVDS runs at a different fre-
42           quency than the general display reference clock.
44           To be set by northbridge or mainboard Kconfig.  For most platforms,
45           there is no choice, i.e. for i945 and gm45 the SSC reference always
46           differs from the display reference clock (i945: 66Mhz SSC vs. 48MHz
47           DREF; gm45: 100MHz SSC vs. 96Mhz DREF), for Arrandale and newer, it's
48           the same frequency for SSC/non-SSC (120MHz).  The only, currently
49           supported platform with a choice seems to be Pineview, where the
50           alternative is 100MHz vs. the default 96MHz.
52 config INTEL_GMA_SWSMISCI
53         bool
54         default n
55         help
56           Select this option for Atom-based platforms which use the SWSMISCI
57           register (0xe0) rather than the SWSCI register (0xe8).
59 config INTEL_GMA_LIBGFXINIT_EDID
60         bool
62 config VBT_DATA_SIZE_KB
63         int
64         default 8
66 config GFX_GMA_ANALOG_I2C_HDMI_B
67         bool
69 config GFX_GMA_ANALOG_I2C_HDMI_C
70         bool
72 config GFX_GMA_ANALOG_I2C_HDMI_D
73         bool
75 config GFX_GMA_IGNORE_PRESENCE_STRAPS
76         def_bool n
77         depends on MAINBOARD_HAS_LIBGFXINIT
78         help
79           libgfxinit uses the GPU presence straps to determine if a display port
80           is present/enabled. Select this option if a board doesn't correctly implement
81           these straps, causing libgfxinit to fail to detect an attached panel.
83 config GFX_GMA
84         def_bool y
85         depends on NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X \
86                 || NORTHBRIDGE_INTEL_IRONLAKE || NORTHBRIDGE_INTEL_SANDYBRIDGE \
87                 || NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL \
88                 || SOC_INTEL_COMMON_SKYLAKE_BASE || SOC_INTEL_APOLLOLAKE \
89                 || SOC_INTEL_CANNONLAKE_BASE
90         depends on MAINBOARD_USE_LIBGFXINIT || INTEL_GMA_LIBGFXINIT_EDID
91         select RAMSTAGE_LIBHWBASE
93 config EARLY_GFX_GMA
94         def_bool y
95         depends on SOC_INTEL_ALDERLAKE
96         depends on MAINBOARD_USE_EARLY_LIBGFXINIT
97         select ROMSTAGE_LIBHWBASE
99 config GFX_GMA_DEFAULT_MMIO
100         hex
101         depends on HWBASE_STATIC_MMIO && (GFX_GMA || EARLY_GFX_GMA)
102         help
103           Graphics device MMIO address. This is typically an unused
104           memory mapping region which can be allocated to the MMIO
105           region as graphics PCI device Base Address Range zero.
107 config GFX_GMA_PANEL_1_ON_EDP
108         bool
109         depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT \
110                 || MAINBOARD_HAS_EARLY_LIBGFXINIT
111         default n if GFX_GMA_PANEL_1_ON_LVDS
112         default y
114 config GFX_GMA_PANEL_1_ON_LVDS
115         bool
116         depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT \
117                 || MAINBOARD_HAS_EARLY_LIBGFXINIT
118         default y if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_IRONLAKE
119         default n
121 config INTEL_GMA_OPREGION_2_0
122         bool
123         default n if INTEL_GMA_OPREGION_2_1
124         default y
126 config INTEL_GMA_OPREGION_2_1
127         bool
128         default n
130 if GFX_GMA || EARLY_GFX_GMA
132 config GFX_GMA_DYN_CPU
133         def_bool y
134         help
135           Activates runtime CPU detection in libgfxinit.
137 config GFX_GMA_GENERATION
138         string
139         default "Broxton" if SOC_INTEL_APOLLOLAKE
140         default "Skylake" if SOC_INTEL_COMMON_SKYLAKE_BASE || SOC_INTEL_CANNONLAKE_BASE
141         default "Haswell" if NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL
142         default "Ironlake" if NORTHBRIDGE_INTEL_IRONLAKE || NORTHBRIDGE_INTEL_SANDYBRIDGE
143         default "G45" if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X
144         default "Tigerlake" if SOC_INTEL_ALDERLAKE
146 config GFX_GMA_PCH
147         string
148         default "Ibex_Peak" if NORTHBRIDGE_INTEL_IRONLAKE
149         default "Cougar_Point" if NORTHBRIDGE_INTEL_SANDYBRIDGE
150         default "Lynx_Point" if NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL
151         default "Sunrise_Point" if SOC_INTEL_COMMON_SKYLAKE_BASE
152         default "Cannon_Point" if SOC_INTEL_CANNONLAKE_BASE
153         default "Alder_Point" if SOC_INTEL_ALDERLAKE
154         default "No_PCH"
156 config GFX_GMA_PANEL_1_PORT
157         string
158         default "eDP" if GFX_GMA_PANEL_1_ON_EDP
159         default "LVDS"
161 config GFX_GMA_PANEL_2_PORT
162         string
163         default "Disabled"
165 config GFX_GMA_ANALOG_I2C_PORT
166         string
167         default "PCH_HDMI_B" if GFX_GMA_ANALOG_I2C_HDMI_B
168         default "PCH_HDMI_C" if GFX_GMA_ANALOG_I2C_HDMI_C
169         default "PCH_HDMI_D" if GFX_GMA_ANALOG_I2C_HDMI_D
170         default "PCH_DAC"
171         help
172           Boards with a DVI-I connector share the I2C pins for both analog and
173           digital displays. In that case, the EDID for a VGA display has to be
174           read over the I2C interface of the coupled digital port.
176 endif