1## SPDX-License-Identifier: GPL-2.0-only 2 3config INTEL_DDI 4 bool 5 default n 6 help 7 helper functions for intel DDI operations 8 9config INTEL_EDID 10 bool 11 default n 12 13config INTEL_INT15 14 bool 15 default n 16 17config INTEL_GMA_ACPI 18 bool 19 default n 20 21config INTEL_GMA_BCLV_OFFSET 22 hex 23 default 0xc8254 24 25config INTEL_GMA_BCLV_WIDTH 26 int 27 default 16 28 29config INTEL_GMA_BCLM_OFFSET 30 hex 31 default 0xc8256 32 33config INTEL_GMA_BCLM_WIDTH 34 int 35 default 16 36 37config 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. 43 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. 51 52config 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). 58 59config INTEL_GMA_LIBGFXINIT_EDID 60 bool 61 62config VBT_CBFS_COMPRESSION_DEFAULT_LZ4 63 def_bool n 64 help 65 Set LZ4 VBT compression. 66 67config VBT_CBFS_COMPRESSION_DEFAULT_NONE 68 def_bool n 69 help 70 Disable VBT compression. 71 72choice 73 prompt "VBT Compression algorithm" 74 depends on INTEL_GMA_ADD_VBT 75 default VBT_CBFS_COMPRESSION_LZ4 if VBT_CBFS_COMPRESSION_DEFAULT_LZ4 76 default VBT_CBFS_COMPRESSION_NONE if VBT_CBFS_COMPRESSION_DEFAULT_NONE 77 default VBT_CBFS_COMPRESSION_LZMA 78 79config VBT_CBFS_COMPRESSION_LZMA 80 bool "Compress VBT with LZMA algorithm" 81 82config VBT_CBFS_COMPRESSION_LZ4 83 bool "Compress VBT with LZ4 algorithm" 84 85config VBT_CBFS_COMPRESSION_NONE 86 bool "Do not compress VBT" 87 88endchoice 89 90config VBT_CBFS_COMPRESSION_ALGORITHM 91 string 92 default "lzma" if VBT_CBFS_COMPRESSION_LZMA 93 default "lz4" if VBT_CBFS_COMPRESSION_LZ4 94 default "none" if VBT_CBFS_COMPRESSION_NONE 95 96config GFX_GMA_ANALOG_I2C_HDMI_B 97 bool 98 99config GFX_GMA_ANALOG_I2C_HDMI_C 100 bool 101 102config GFX_GMA_ANALOG_I2C_HDMI_D 103 bool 104 105config GFX_GMA_IGNORE_PRESENCE_STRAPS 106 def_bool n 107 depends on MAINBOARD_HAS_LIBGFXINIT 108 help 109 libgfxinit uses the GPU presence straps to determine if a display port 110 is present/enabled. Select this option if a board doesn't correctly implement 111 these straps, causing libgfxinit to fail to detect an attached panel. 112 113config GFX_GMA 114 def_bool y 115 depends on NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X \ 116 || NORTHBRIDGE_INTEL_IRONLAKE || NORTHBRIDGE_INTEL_SANDYBRIDGE \ 117 || NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL \ 118 || SOC_INTEL_COMMON_SKYLAKE_BASE || SOC_INTEL_APOLLOLAKE \ 119 || SOC_INTEL_CANNONLAKE_BASE 120 depends on MAINBOARD_USE_LIBGFXINIT || INTEL_GMA_LIBGFXINIT_EDID 121 select RAMSTAGE_LIBHWBASE 122 123config EARLY_GFX_GMA 124 def_bool y 125 depends on SOC_INTEL_ALDERLAKE 126 depends on MAINBOARD_USE_EARLY_LIBGFXINIT 127 select ROMSTAGE_LIBHWBASE 128 129config GFX_GMA_DEFAULT_MMIO 130 hex 131 depends on HWBASE_STATIC_MMIO && (GFX_GMA || EARLY_GFX_GMA) 132 help 133 Graphics device MMIO address. This is typically an unused 134 memory mapping region which can be allocated to the MMIO 135 region as graphics PCI device Base Address Range zero. 136 137config GFX_GMA_PANEL_1_ON_EDP 138 bool 139 depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT \ 140 || MAINBOARD_HAS_EARLY_LIBGFXINIT 141 default n if GFX_GMA_PANEL_1_ON_LVDS 142 default y 143 144config GFX_GMA_PANEL_1_ON_LVDS 145 bool 146 depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT \ 147 || MAINBOARD_HAS_EARLY_LIBGFXINIT 148 default y if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_IRONLAKE 149 default n 150 151config INTEL_GMA_OPREGION_2_1 152 bool 153 default n 154 155config INTEL_GMA_VERSION_2 156 bool 157 default n 158 help 159 Intel display port and pipe related register definitions have changed since 160 Tiger Lake SoC. This option enables support for the updated `TRANS_DDI_FUNC_CTL` 161 register definitions. 162 163 SoCs that support Intel GMA Version 2 include: 164 * Alder Lake 165 * Meteor Lake 166 * Tiger Lake 167 168 If you are unsure whether your SoC supports Intel GMA Version 2, it is safe to 169 disable this option. 170 171if GFX_GMA || EARLY_GFX_GMA 172 173config GFX_GMA_DYN_CPU 174 def_bool y 175 help 176 Activates runtime CPU detection in libgfxinit. 177 178config GFX_GMA_GENERATION 179 string 180 default "Broxton" if SOC_INTEL_APOLLOLAKE 181 default "Skylake" if SOC_INTEL_COMMON_SKYLAKE_BASE || SOC_INTEL_CANNONLAKE_BASE 182 default "Haswell" if NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL 183 default "Ironlake" if NORTHBRIDGE_INTEL_IRONLAKE || NORTHBRIDGE_INTEL_SANDYBRIDGE 184 default "G45" if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X 185 default "Tigerlake" if SOC_INTEL_ALDERLAKE 186 187config GFX_GMA_PCH 188 string 189 default "Ibex_Peak" if NORTHBRIDGE_INTEL_IRONLAKE 190 default "Cougar_Point" if NORTHBRIDGE_INTEL_SANDYBRIDGE 191 default "Lynx_Point" if NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL 192 default "Sunrise_Point" if SOC_INTEL_COMMON_SKYLAKE_BASE 193 default "Cannon_Point" if SOC_INTEL_CANNONLAKE_BASE 194 default "Alder_Point" if SOC_INTEL_ALDERLAKE 195 default "No_PCH" 196 197config GFX_GMA_PANEL_1_PORT 198 string 199 default "eDP" if GFX_GMA_PANEL_1_ON_EDP 200 default "LVDS" 201 202config GFX_GMA_PANEL_2_PORT 203 string 204 default "Disabled" 205 206config GFX_GMA_ANALOG_I2C_PORT 207 string 208 default "PCH_HDMI_B" if GFX_GMA_ANALOG_I2C_HDMI_B 209 default "PCH_HDMI_C" if GFX_GMA_ANALOG_I2C_HDMI_C 210 default "PCH_HDMI_D" if GFX_GMA_ANALOG_I2C_HDMI_D 211 default "PCH_DAC" 212 help 213 Boards with a DVI-I connector share the I2C pins for both analog and 214 digital displays. In that case, the EDID for a VGA display has to be 215 read over the I2C interface of the coupled digital port. 216 217endif 218