1 ## SPDX-License-Identifier: GPL-2.0-only
7 helper functions for intel DDI operations
21 config INTEL_GMA_BCLV_OFFSET
25 config INTEL_GMA_BCLV_WIDTH
29 config INTEL_GMA_BCLM_OFFSET
33 config INTEL_GMA_BCLM_WIDTH
37 config INTEL_GMA_SSC_ALTERNATE_REF
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
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
62 config VBT_DATA_SIZE_KB
66 config GFX_GMA_ANALOG_I2C_HDMI_B
69 config GFX_GMA_ANALOG_I2C_HDMI_C
72 config GFX_GMA_ANALOG_I2C_HDMI_D
75 config GFX_GMA_IGNORE_PRESENCE_STRAPS
77 depends on MAINBOARD_HAS_LIBGFXINIT
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.
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
95 depends on SOC_INTEL_ALDERLAKE
96 depends on MAINBOARD_USE_EARLY_LIBGFXINIT
97 select ROMSTAGE_LIBHWBASE
99 config GFX_GMA_DEFAULT_MMIO
101 depends on HWBASE_STATIC_MMIO && (GFX_GMA || EARLY_GFX_GMA)
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
109 depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT \
110 || MAINBOARD_HAS_EARLY_LIBGFXINIT
111 default n if GFX_GMA_PANEL_1_ON_LVDS
114 config GFX_GMA_PANEL_1_ON_LVDS
116 depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT \
117 || MAINBOARD_HAS_EARLY_LIBGFXINIT
118 default y if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_IRONLAKE
121 config INTEL_GMA_OPREGION_2_0
123 default n if INTEL_GMA_OPREGION_2_1
126 config INTEL_GMA_OPREGION_2_1
130 if GFX_GMA || EARLY_GFX_GMA
132 config GFX_GMA_DYN_CPU
135 Activates runtime CPU detection in libgfxinit.
137 config GFX_GMA_GENERATION
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
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
156 config GFX_GMA_PANEL_1_PORT
158 default "eDP" if GFX_GMA_PANEL_1_ON_EDP
161 config GFX_GMA_PANEL_2_PORT
165 config GFX_GMA_ANALOG_I2C_PORT
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
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.