src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / drivers / intel / gma / Kconfig
blobaa7eb5840d842cef8ff5c6974efbe80a12e8fef9
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## SPDX-License-Identifier: GPL-2.0-only
6 config INTEL_DDI
7         bool
8         default n
9         help
10           helper functions for intel DDI operations
12 config INTEL_EDID
13         bool
14         default n
16 config INTEL_INT15
17         bool
18         default n
20 config INTEL_GMA_ACPI
21         bool
22         default n
24 config INTEL_GMA_BCLV_OFFSET
25         hex
26         default 0xc8254
28 config INTEL_GMA_BCLV_WIDTH
29         int
30         default 16
32 config INTEL_GMA_BCLM_OFFSET
33         hex
34         default 0xc8256
36 config INTEL_GMA_BCLM_WIDTH
37         int
38         default 16
40 config INTEL_GMA_SSC_ALTERNATE_REF
41         bool
42         default n
43         help
44           Set when the SSC reference clock for LVDS runs at a different fre-
45           quency than the general display reference clock.
47           To be set by northbridge or mainboard Kconfig.  For most platforms,
48           there is no choice, i.e. for i945 and gm45 the SSC reference always
49           differs from the display reference clock (i945: 66Mhz SSC vs. 48MHz
50           DREF; gm45: 100MHz SSC vs. 96Mhz DREF), for Arrandale and newer, it's
51           the same frequency for SSC/non-SSC (120MHz).  The only, currently
52           supported platform with a choice seems to be Pineview, where the
53           alternative is 100MHz vs. the default 96MHz.
55 config INTEL_GMA_SWSMISCI
56         bool
57         default n
58         help
59           Select this option for Atom-based platforms which use the SWSMISCI
60           register (0xe0) rather than the SWSCI register (0xe8).
62 config INTEL_GMA_LIBGFXINIT_EDID
63         bool
65 config GFX_GMA_ANALOG_I2C_HDMI_B
66         bool
68 config GFX_GMA_ANALOG_I2C_HDMI_C
69         bool
71 config GFX_GMA_ANALOG_I2C_HDMI_D
72         bool
74 config GFX_GMA
75         def_bool y
76         depends on NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X \
77                 || NORTHBRIDGE_INTEL_IRONLAKE || NORTHBRIDGE_INTEL_SANDYBRIDGE \
78                 || NORTHBRIDGE_INTEL_HASWELL \
79                 || SOC_INTEL_BROADWELL || SOC_INTEL_SKYLAKE || SOC_INTEL_APOLLOLAKE \
80                 || SOC_INTEL_KABYLAKE || SOC_INTEL_COFFEELAKE \
81                 || SOC_INTEL_WHISKEYLAKE
82         depends on MAINBOARD_USE_LIBGFXINIT || INTEL_GMA_LIBGFXINIT_EDID
83         select RAMSTAGE_LIBHWBASE
85 config GFX_GMA_PANEL_1_ON_EDP
86         bool
87         depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT
88         default n if GFX_GMA_PANEL_1_ON_LVDS
89         default y
91 config GFX_GMA_PANEL_1_ON_LVDS
92         bool
93         depends on GFX_GMA || MAINBOARD_HAS_LIBGFXINIT
94         default y if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_IRONLAKE
95         default n
97 if GFX_GMA
99 config GFX_GMA_DYN_CPU
100         def_bool y
101         help
102           Activates runtime CPU detection in libgfxinit.
104 config GFX_GMA_GENERATION
105         string
106         default "Broxton" if SOC_INTEL_APOLLOLAKE
107         default "Skylake" if SOC_INTEL_SKYLAKE || SOC_INTEL_KABYLAKE || \
108                                 SOC_INTEL_COFFEELAKE || SOC_INTEL_WHISKEYLAKE
109         default "Haswell" if NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL
110         default "Ironlake" if NORTHBRIDGE_INTEL_IRONLAKE || NORTHBRIDGE_INTEL_SANDYBRIDGE
111         default "G45" if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X
113 config GFX_GMA_PANEL_1_PORT
114         string
115         default "eDP" if GFX_GMA_PANEL_1_ON_EDP
116         default "LVDS"
118 config GFX_GMA_PANEL_2_PORT
119         string
120         default "Disabled"
122 config GFX_GMA_ANALOG_I2C_PORT
123         string
124         default "PCH_HDMI_B" if GFX_GMA_ANALOG_I2C_HDMI_B
125         default "PCH_HDMI_C" if GFX_GMA_ANALOG_I2C_HDMI_C
126         default "PCH_HDMI_D" if GFX_GMA_ANALOG_I2C_HDMI_D
127         default "PCH_DAC"
128         help
129           Boards with a DVI-I connector share the I2C pins for both analog and
130           digital displays. In that case, the EDID for a VGA display has to be
131           read over the I2C interface of the coupled digital port.
133 endif