| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 1 | -- |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 2 | -- Copyright (C) 2015-2019 secunet Security Networks AG |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 3 | -- |
| 4 | -- This program is free software; you can redistribute it and/or modify |
| 5 | -- it under the terms of the GNU General Public License as published by |
| Nico Huber | 125a29e | 2016-10-18 00:23:54 +0200 | [diff] [blame] | 6 | -- the Free Software Foundation; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 8 | -- |
| 9 | -- This program is distributed in the hope that it will be useful, |
| 10 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | -- GNU General Public License for more details. |
| 13 | -- |
| 14 | |
| Nico Huber | 8a9062a | 2018-06-17 23:15:52 +0200 | [diff] [blame] | 15 | pragma Restrictions (No_Elaboration_Code); |
| 16 | |
| Nico Huber | 27088aa | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 17 | private package HW.GFX.GMA.Config is |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 18 | |
| Nico Huber | 6621a14 | 2018-06-07 23:56:54 +0200 | [diff] [blame] | 19 | Gen : constant Generation := <<GEN>>; |
| 20 | |
| Nico Huber | d7809ab | 2018-06-10 15:44:23 +0200 | [diff] [blame] | 21 | CPU_First : constant CPU_Type := |
| 22 | (case Gen is |
| 23 | when G45 => G45, |
| 24 | when Ironlake => Ironlake, |
| 25 | when Haswell => Haswell, |
| 26 | when Broxton => Broxton, |
| 27 | when Skylake => Skylake); |
| 28 | CPU_Last : constant CPU_Type := |
| 29 | (case Gen is |
| Nico Huber | 7f3e280 | 2019-09-28 20:40:55 +0200 | [diff] [blame] | 30 | when G45 => GM45, |
| Nico Huber | d7809ab | 2018-06-10 15:44:23 +0200 | [diff] [blame] | 31 | when Ironlake => Ivybridge, |
| 32 | when Haswell => Broadwell, |
| 33 | when Broxton => Broxton, |
| Nico Huber | 88badbe | 2018-09-27 16:36:47 +0200 | [diff] [blame] | 34 | when Skylake => Kabylake); |
| Nico Huber | d7809ab | 2018-06-10 15:44:23 +0200 | [diff] [blame] | 35 | CPU_Var_Last : constant CPU_Variant := |
| 36 | (case Gen is |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 37 | when Haswell | Skylake => ULX, |
| Nico Huber | d7809ab | 2018-06-10 15:44:23 +0200 | [diff] [blame] | 38 | when others => Normal); |
| 39 | subtype Gen_CPU_Type is CPU_Type range CPU_First .. CPU_Last; |
| 40 | subtype Gen_CPU_Variant is CPU_Variant range Normal .. CPU_Var_Last; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 41 | |
| Nico Huber | d7809ab | 2018-06-10 15:44:23 +0200 | [diff] [blame] | 42 | CPU : constant Gen_CPU_Type := <<CPU>>; |
| 43 | |
| 44 | CPU_Var : constant Gen_CPU_Variant := <<CPU_VARIANT>>; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 45 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 46 | Panel_Ports : constant array (Valid_Panels) of Port_Type := |
| Nico Huber | 5dbaf4b | 2020-01-08 17:24:58 +0100 | [diff] [blame] | 47 | (Panel_1 => <<PANEL_1_PORT>>, |
| 48 | Panel_2 => <<PANEL_2_PORT>>); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 49 | |
| Nico Huber | d55afeb | 2016-10-21 14:31:10 +0200 | [diff] [blame] | 50 | Analog_I2C_Port : constant PCH_Port := <<ANALOG_I2C_PORT>>; |
| 51 | |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 52 | EDP_Low_Voltage_Swing : constant Boolean := False; |
| 53 | |
| Nico Huber | 247adf3 | 2017-06-12 14:39:11 +0200 | [diff] [blame] | 54 | DDI_HDMI_Buffer_Translation : constant Integer := -1; |
| 55 | |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 56 | Default_MMIO_Base : constant := <<DEFAULT_MMIO_BASE>>; |
| 57 | |
| 58 | LVDS_Dual_Threshold : constant := 95_000_000; |
| 59 | |
| 60 | ---------------------------------------------------------------------------- |
| 61 | |
| Nico Huber | 07ff1b9 | 2019-09-29 00:03:17 +0200 | [diff] [blame] | 62 | -- On older generations dot clocks are limited to 90% of |
| 63 | -- the CDClk rate. To ease proofs, we limit CDClk's range. |
| 64 | CDClk_Min : constant Frequency_Type := |
| 65 | (case Gen is |
| 66 | when G45 .. Ironlake => Frequency_Type'First * 100 / 90 + 1, |
| 67 | when others => Frequency_Type'First); |
| 68 | subtype CDClk_Range is Frequency_Type range CDClk_Min .. Frequency_Type'Last; |
| 69 | |
| 70 | ---------------------------------------------------------------------------- |
| 71 | |
| Nico Huber | 30e8408 | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 72 | type Valid_Port_Array is array (Port_Type) of Boolean; |
| 73 | type Variable_Config is record |
| 74 | Valid_Port : Valid_Port_Array; |
| Nico Huber | 07ff1b9 | 2019-09-29 00:03:17 +0200 | [diff] [blame] | 75 | CDClk : CDClk_Range; |
| 76 | Max_CDClk : CDClk_Range; |
| Nico Huber | 30e8408 | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 77 | Raw_Clock : Frequency_Type; |
| Nico Huber | adfe11f | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 78 | Dyn_CPU : Gen_CPU_Type; |
| 79 | Dyn_CPU_Var : Gen_CPU_Variant; |
| Nico Huber | 30e8408 | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 80 | end record; |
| 81 | |
| Nico Huber | 27088aa | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 82 | Initial_Settings : constant Variable_Config := |
| Nico Huber | 30e8408 | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 83 | (Valid_Port => (others => False), |
| Nico Huber | 07ff1b9 | 2019-09-29 00:03:17 +0200 | [diff] [blame] | 84 | CDClk => CDClk_Range'First, |
| 85 | Max_CDClk => CDClk_Range'First, |
| Nico Huber | adfe11f | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 86 | Raw_Clock => Frequency_Type'First, |
| 87 | Dyn_CPU => Gen_CPU_Type'First, |
| 88 | Dyn_CPU_Var => Gen_CPU_Variant'First); |
| Nico Huber | 27088aa | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 89 | |
| Nico Huber | e317e9c | 2019-09-29 03:03:18 +0200 | [diff] [blame] | 90 | Variable : Variable_Config with Part_Of => GMA.State; |
| Nico Huber | 30e8408 | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 91 | |
| 92 | Valid_Port : Valid_Port_Array renames Variable.Valid_Port; |
| Nico Huber | 07ff1b9 | 2019-09-29 00:03:17 +0200 | [diff] [blame] | 93 | CDClk : CDClk_Range renames Variable.CDClk; |
| 94 | Max_CDClk : CDClk_Range renames Variable.Max_CDClk; |
| Nico Huber | 30e8408 | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 95 | Raw_Clock : Frequency_Type renames Variable.Raw_Clock; |
| Nico Huber | adfe11f | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 96 | CPU : Gen_CPU_Type renames Variable.Dyn_CPU; |
| 97 | CPU_Var : Gen_CPU_Variant renames Variable.Dyn_CPU_Var; |
| Nico Huber | 30e8408 | 2018-06-10 13:28:05 +0200 | [diff] [blame] | 98 | |
| 99 | ---------------------------------------------------------------------------- |
| 100 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 101 | -- To support both static configurations, that are compiled for a |
| 102 | -- fixed CPU, and dynamic configurations, where the CPU and its |
| 103 | -- variant are detected at runtime, all derived config values are |
| 104 | -- tagged based on their dependencies. |
| 105 | -- |
| 106 | -- Booleans that only depend on the generation should be tagged |
| 107 | -- <genbool>. Those that may depend on the CPU are tagged with the |
| 108 | -- generations where that is the case. For instance `CPU_Ivybridge` |
| 109 | -- can be decided purely based on the generation unless the gene- |
| 110 | -- ration is Ironlake, thus, it is tagged <ilkbool>. |
| 111 | -- |
| 112 | -- For non-boolean constants, per generation tags <...var> are |
| 113 | -- used (e.g. <ilkvar>). |
| 114 | -- |
| 115 | -- To ease parsing, all multiline expressions of tagged config |
| 116 | -- values start after a line break. |
| Nico Huber | 6621a14 | 2018-06-07 23:56:54 +0200 | [diff] [blame] | 117 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 118 | Gen_G45 : <genbool> := Gen = G45; |
| 119 | Gen_Ironlake : <genbool> := Gen = Ironlake; |
| 120 | Gen_Haswell : <genbool> := Gen = Haswell; |
| 121 | Gen_Broxton : <genbool> := Gen = Broxton; |
| 122 | Gen_Skylake : <genbool> := Gen = Skylake; |
| Nico Huber | 6621a14 | 2018-06-07 23:56:54 +0200 | [diff] [blame] | 123 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 124 | Up_To_Ironlake : <genbool> := Gen <= Ironlake; |
| 125 | Ironlake_On : <genbool> := Gen >= Ironlake; |
| 126 | Haswell_On : <genbool> := Gen >= Haswell; |
| 127 | Broxton_On : <genbool> := Gen >= Broxton; |
| 128 | Skylake_On : <genbool> := Gen >= Skylake; |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 129 | |
| Nico Huber | b47a5c4 | 2019-09-29 00:07:21 +0200 | [diff] [blame] | 130 | GMCH_GM45 : <g45bool> := Gen_G45 and then CPU = GM45; |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 131 | CPU_Ironlake : <ilkbool> := Gen_Ironlake and then CPU = Ironlake; |
| 132 | CPU_Sandybridge : <ilkbool> := Gen_Ironlake and then CPU = Sandybridge; |
| 133 | CPU_Ivybridge : <ilkbool> := Gen_Ironlake and then CPU = Ivybridge; |
| 134 | CPU_Haswell : <hswbool> := Gen_Haswell and then CPU = Haswell; |
| 135 | CPU_Broadwell : <hswbool> := Gen_Haswell and then CPU = Broadwell; |
| Nico Huber | 88badbe | 2018-09-27 16:36:47 +0200 | [diff] [blame] | 136 | CPU_Skylake : <sklbool> := Gen_Skylake and then CPU = Skylake; |
| 137 | CPU_Kabylake : <sklbool> := Gen_Skylake and then CPU = Kabylake; |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 138 | |
| 139 | Sandybridge_On : <ilkbool> := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 140 | ((Gen_Ironlake and then CPU >= Sandybridge) or Haswell_On); |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 141 | Ivybridge_On : <ilkbool> := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 142 | ((Gen_Ironlake and then CPU >= Ivybridge) or Haswell_On); |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 143 | Broadwell_On : <hswbool> := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 144 | ((Gen_Haswell and then CPU >= Broadwell) or Broxton_On); |
| 145 | |
| Nico Huber | 6621a14 | 2018-06-07 23:56:54 +0200 | [diff] [blame] | 146 | ---------------------------------------------------------------------------- |
| 147 | |
| Nico Huber | 117db37 | 2018-06-09 17:56:05 +0200 | [diff] [blame] | 148 | Have_HDMI_Buf_Override : constant Boolean := DDI_HDMI_Buffer_Translation >= 0; |
| Nico Huber | 2b6f699 | 2017-07-09 18:11:34 +0200 | [diff] [blame] | 149 | Default_MMIO_Base_Set : constant Boolean := Default_MMIO_Base /= 0; |
| 150 | |
| Nico Huber | 1bc496f | 2017-06-09 22:23:28 +0200 | [diff] [blame] | 151 | Have_DVI_I : constant Boolean := Analog_I2C_Port /= PCH_DAC; |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 152 | |
| 153 | Has_Presence_Straps : <genbool> := not Gen_Broxton; |
| 154 | Is_ULT : <hswsklbool> := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 155 | ((Gen_Haswell or Gen_Skylake) and then CPU_Var = ULT); |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 156 | Is_ULX : <hswsklbool> := |
| 157 | ((Gen_Haswell or Gen_Skylake) and then CPU_Var = ULX); |
| 158 | Is_LP : <hswsklbool> := Is_ULT or Is_ULX; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 159 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 160 | ---------- CPU pipe: --------- |
| 161 | Has_Tertiary_Pipe : <ilkbool> := Ivybridge_On; |
| 162 | Disable_Trickle_Feed : <genbool> := not Gen_Haswell; |
| 163 | Pipe_Enabled_Workaround : <hswbool> := CPU_Broadwell; |
| 164 | Has_EDP_Transcoder : <genbool> := Haswell_On; |
| 165 | Use_PDW_For_EDP_Scaling : <hswbool> := CPU_Haswell; |
| 166 | Has_Pipe_DDI_Func : <genbool> := Haswell_On; |
| 167 | Has_Trans_Clk_Sel : <genbool> := Haswell_On; |
| 168 | Has_Pipe_MSA_Misc : <genbool> := Haswell_On; |
| 169 | Has_Pipeconf_Misc : <hswbool> := Broadwell_On; |
| 170 | Has_Pipeconf_BPC : <hswbool> := not CPU_Haswell; |
| 171 | Has_Plane_Control : <genbool> := Broxton_On; |
| 172 | Has_DSP_Linoff : <genbool> := Up_To_Ironlake; |
| 173 | Has_PF_Pipe_Select : <ilkhswbool> := CPU_Ivybridge or CPU_Haswell; |
| Nico Huber | 75a707f | 2018-06-18 16:28:33 +0200 | [diff] [blame] | 174 | Has_Ivybridge_Cursors : <ilkbool> := Ivybridge_On; |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 175 | VGA_Plane_Workaround : <ilkbool> := CPU_Ivybridge; |
| 176 | Has_GMCH_DP_Transcoder : <genbool> := Gen_G45; |
| 177 | Has_GMCH_VGACNTRL : <genbool> := Gen_G45; |
| 178 | Has_GMCH_PFIT_CONTROL : <genbool> := Gen_G45; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 179 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 180 | --------- Panel power: ------- |
| 181 | Has_PP_Write_Protection : <genbool> := Up_To_Ironlake; |
| 182 | Has_PP_Port_Select : <genbool> := Up_To_Ironlake; |
| 183 | Use_PP_VDD_Override : <genbool> := Up_To_Ironlake; |
| 184 | Has_PCH_Panel_Power : <genbool> := Ironlake_On; |
| Nico Huber | 3ea5d60 | 2020-01-06 17:57:59 +0100 | [diff] [blame] | 185 | Has_PP_Divisor_Reg : <genbool> := not Gen_Broxton; |
| Nico Huber | 1f63d51 | 2020-01-08 14:10:40 +0100 | [diff] [blame] | 186 | Has_New_Backlight_Control : <genbool> := Gen_Broxton; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 187 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 188 | ----------- PCH/FDI: --------- |
| 189 | Has_PCH : <genbool> := not Gen_Broxton and not Gen_G45; |
| 190 | Has_PCH_DAC : <hswbool> := |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 191 | (Gen_Ironlake or (Gen_Haswell and then not Is_LP)); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 192 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 193 | Has_PCH_Aux_Channels : <genbool> := Gen_Ironlake or Gen_Haswell; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 194 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 195 | VGA_Has_Sync_Disable : <genbool> := Up_To_Ironlake; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 196 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 197 | Has_Trans_Timing_Ovrrde : <ilkbool> := Sandybridge_On; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 198 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 199 | Has_DPLL_SEL : <genbool> := Gen_Ironlake; |
| 200 | Has_FDI_BPC : <genbool> := Gen_Ironlake; |
| 201 | Has_FDI_Composite_Sel : <ilkbool> := CPU_Ivybridge; |
| 202 | Has_New_FDI_Sink : <ilkbool> := Sandybridge_On; |
| 203 | Has_New_FDI_Source : <ilkbool> := Ivybridge_On; |
| 204 | Has_Trans_DP_Ctl : <ilkbool> := CPU_Sandybridge or CPU_Ivybridge; |
| 205 | Has_FDI_C : <ilkbool> := CPU_Ivybridge; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 206 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 207 | Has_FDI_RX_Power_Down : <genbool> := Gen_Haswell; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 208 | |
| Nico Huber | d0f84b9 | 2019-09-22 21:31:52 +0200 | [diff] [blame] | 209 | ---------- Clocks: ----------- |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 210 | Has_GMCH_RawClk : <genbool> := Gen_G45; |
| Nico Huber | b47a5c4 | 2019-09-29 00:07:21 +0200 | [diff] [blame] | 211 | Has_GMCH_Mobile_VCO : <g45bool> := GMCH_GM45; |
| Nico Huber | d0f84b9 | 2019-09-22 21:31:52 +0200 | [diff] [blame] | 212 | Has_Broadwell_CDClk : <hswbool> := CPU_Broadwell; |
| 213 | Can_Switch_CDClk : <hswbool> := Broadwell_On; |
| Arthur Heymans | 73ea032 | 2018-03-28 17:17:07 +0200 | [diff] [blame] | 214 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 215 | ----------- DDI: ------------- |
| 216 | End_EDP_Training_Late : <genbool> := Gen_Haswell; |
| 217 | Has_Per_DDI_Clock_Sel : <genbool> := Gen_Haswell; |
| 218 | Has_HOTPLUG_CTL : <genbool> := Gen_Haswell; |
| 219 | Has_SHOTPLUG_CTL_A : <hswbool> := |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 220 | ((Gen_Haswell and then Is_LP) or Skylake_On); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 221 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 222 | Has_DDI_PHYs : <genbool> := Gen_Broxton; |
| Nico Huber | 19729a7 | 2017-07-30 01:05:05 +0200 | [diff] [blame] | 223 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 224 | Has_DDI_D : <hswsklbool> := |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 225 | ((Gen_Haswell or Gen_Skylake) and then not Is_LP); |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 226 | -- might be disabled by x4 eDP: |
| 227 | Has_DDI_E : <hswsklbool> := Has_DDI_D; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 228 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 229 | Has_DDI_Buffer_Trans : <genbool> := Haswell_On and not Has_DDI_PHYs; |
| 230 | Has_Low_Voltage_Swing : <genbool> := Broxton_On; |
| 231 | Has_Iboost_Config : <genbool> := Skylake_On; |
| Nico Huber | 88badbe | 2018-09-27 16:36:47 +0200 | [diff] [blame] | 232 | Use_KBL_DDI_Buf_Trans : <sklbool> := CPU_Kabylake; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 233 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 234 | Need_DP_Aux_Mutex : <genbool> := False; -- Skylake & (PSR | GTC) |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 235 | |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 236 | ----- DP: -------------------- |
| 237 | DP_Max_2_7_GHz : <hswbool> := |
| 238 | (not Haswell_On or else (CPU_Haswell and Is_ULX)); |
| 239 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 240 | ----------- GMBUS: ----------- |
| 241 | Ungate_GMBUS_Unit_Level : <genbool> := Skylake_On; |
| 242 | GMBUS_Alternative_Pins : <genbool> := Gen_Broxton; |
| 243 | Has_PCH_GMBUS : <genbool> := Ironlake_On; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 244 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 245 | ----------- Power: ----------- |
| 246 | Has_IPS : <hswbool> := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 247 | (Gen_Haswell and then |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 248 | ((CPU_Haswell and Is_LP) or CPU_Broadwell)); |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 249 | Has_IPS_CTL_Mailbox : <hswbool> := CPU_Broadwell; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 250 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 251 | Has_Per_Pipe_SRD : <hswbool> := Broadwell_On; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 252 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 253 | ----------- GTT: ------------- |
| 254 | Has_64bit_GTT : <hswbool> := Broadwell_On; |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 255 | |
| 256 | ---------------------------------------------------------------------------- |
| 257 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 258 | Max_Pipe : <ilkvar> Pipe_Index := |
| Nico Huber | d58de7d | 2018-06-07 23:06:55 +0200 | [diff] [blame] | 259 | (if Has_Tertiary_Pipe then Tertiary else Secondary); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 260 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 261 | Last_Digital_Port : <hswsklvar> Digital_Port := |
| Nico Huber | 208857d | 2017-07-29 21:30:24 +0200 | [diff] [blame] | 262 | (if Has_DDI_E then DIGI_E else DIGI_C); |
| Nico Huber | ac455ad | 2017-02-14 14:41:19 +0100 | [diff] [blame] | 263 | |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 264 | ---------------------------------------------------------------------------- |
| 265 | |
| Nico Huber | 3c544ee | 2016-11-20 04:56:58 +0100 | [diff] [blame] | 266 | type FDI_Per_Port is array (Port_Type) of Boolean; |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 267 | Is_FDI_Port : <hswvar> FDI_Per_Port := |
| Nico Huber | 6621a14 | 2018-06-07 23:56:54 +0200 | [diff] [blame] | 268 | (Disabled => False, |
| Nico Huber | 8beafd7 | 2020-01-07 14:59:44 +0100 | [diff] [blame] | 269 | eDP => False, |
| 270 | LVDS => Gen_Ironlake, |
| Nico Huber | 6621a14 | 2018-06-07 23:56:54 +0200 | [diff] [blame] | 271 | DP1 .. HDMI3 => Gen_Ironlake, |
| 272 | Analog => Has_PCH_DAC); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 273 | |
| 274 | type FDI_Lanes_Per_Port is array (GPU_Port) of DP_Lane_Count; |
| 275 | FDI_Lane_Count : constant FDI_Lanes_Per_Port := |
| 276 | (DIGI_D => DP_Lane_Count_2, |
| Nico Huber | 6621a14 | 2018-06-07 23:56:54 +0200 | [diff] [blame] | 277 | others => (if Gen_Ironlake then DP_Lane_Count_4 else DP_Lane_Count_2)); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 278 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 279 | FDI_Training : <ilkvar> FDI_Training_Type := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 280 | (if CPU_Ironlake then Simple_Training |
| 281 | elsif CPU_Sandybridge then Full_Training |
| 282 | else Auto_Training); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 283 | |
| Nico Huber | f54d096 | 2016-10-20 14:17:18 +0200 | [diff] [blame] | 284 | ---------------------------------------------------------------------------- |
| 285 | |
| Nico Huber | 88badbe | 2018-09-27 16:36:47 +0200 | [diff] [blame] | 286 | DDI_Buffer_Iboost : <hswsklvar> Natural := |
| 287 | (if Is_ULX or (CPU_Kabylake and Is_ULT) then 3 else 1); |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 288 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 289 | Default_DDI_HDMI_Buffer_Translation : <hswvar> DDI_HDMI_Buf_Trans_Range := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 290 | (if CPU_Haswell then 6 |
| 291 | elsif CPU_Broadwell then 7 |
| 292 | elsif Broxton_On then 8 |
| 293 | else 0); |
| Nico Huber | 247adf3 | 2017-06-12 14:39:11 +0200 | [diff] [blame] | 294 | |
| 295 | ---------------------------------------------------------------------------- |
| 296 | |
| Nico Huber | 07ff1b9 | 2019-09-29 00:03:17 +0200 | [diff] [blame] | 297 | Default_CDClk_Freq : <ilkhswvar> CDClk_Range := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 298 | (if Gen_G45 then 320_000_000 -- unused |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 299 | elsif CPU_Ironlake then 450_000_000 |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 300 | elsif CPU_Sandybridge or CPU_Ivybridge then 400_000_000 |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 301 | elsif Gen_Haswell and then Is_ULX then 337_500_000 |
| 302 | elsif Gen_Haswell then 450_000_000 |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 303 | elsif Gen_Broxton then 288_000_000 |
| 304 | elsif Gen_Skylake then 337_500_000 |
| Nico Huber | 07ff1b9 | 2019-09-29 00:03:17 +0200 | [diff] [blame] | 305 | else CDClk_Range'First); |
| Nico Huber | abe3de2 | 2016-10-20 15:03:46 +0200 | [diff] [blame] | 306 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 307 | Default_RawClk_Freq : <hswvar> Frequency_Type := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 308 | (if Gen_G45 then 100_000_000 -- unused, depends on FSB |
| 309 | elsif Gen_Ironlake then 125_000_000 |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 310 | elsif Gen_Haswell then (if Is_LP then 24_000_000 else 125_000_000) |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 311 | elsif Gen_Broxton then Frequency_Type'First -- none needed |
| 312 | elsif Gen_Skylake then 24_000_000 |
| 313 | else Frequency_Type'First); |
| Nico Huber | f54d096 | 2016-10-20 14:17:18 +0200 | [diff] [blame] | 314 | |
| Nico Huber | dcd274b | 2016-11-03 20:15:39 +0100 | [diff] [blame] | 315 | ---------------------------------------------------------------------------- |
| 316 | |
| 317 | -- Maximum source width with enabled scaler. This only accounts |
| 318 | -- for simple 1:1 pipe:scaler mappings. |
| 319 | |
| Nico Huber | c5c767a | 2018-06-03 01:09:04 +0200 | [diff] [blame] | 320 | type Width_Per_Pipe is array (Pipe_Index) of Width_Type; |
| Nico Huber | dcd274b | 2016-11-03 20:15:39 +0100 | [diff] [blame] | 321 | |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 322 | Maximum_Scalable_Width : <hswvar> Width_Per_Pipe := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 323 | (if Gen_G45 then -- TODO: Is this true? |
| 324 | (Primary => 4096, |
| 325 | Secondary => 2048, |
| 326 | Tertiary => Pos32'First) |
| 327 | elsif Gen_Ironlake or CPU_Haswell then |
| 328 | (Primary => 4096, |
| 329 | Secondary => 2048, |
| 330 | Tertiary => 2048) |
| 331 | else |
| 332 | (Primary => 4096, |
| 333 | Secondary => 4096, |
| 334 | Tertiary => 4096)); |
| Nico Huber | dcd274b | 2016-11-03 20:15:39 +0100 | [diff] [blame] | 335 | |
| Nico Huber | a02b2c6 | 2018-01-09 15:58:34 +0100 | [diff] [blame] | 336 | -- Maximum X position of hardware cursors |
| Nico Huber | d936561 | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 337 | Maximum_Cursor_X : constant := |
| 338 | (case Gen is |
| 339 | when G45 .. Ironlake => 4095, |
| 340 | when Haswell .. Skylake => 8191); |
| Nico Huber | a02b2c6 | 2018-01-09 15:58:34 +0100 | [diff] [blame] | 341 | |
| 342 | Maximum_Cursor_Y : constant := 4095; |
| 343 | |
| Nico Huber | 74ec962 | 2016-11-19 03:00:43 +0100 | [diff] [blame] | 344 | ---------------------------------------------------------------------------- |
| 345 | |
| Nico Huber | 21da574 | 2017-01-20 14:00:53 +0100 | [diff] [blame] | 346 | -- FIXME: Unknown for Broxton, Linux' i915 contains a fixme too :-D |
| Nico Huber | 74ec962 | 2016-11-19 03:00:43 +0100 | [diff] [blame] | 347 | HDMI_Max_Clock_24bpp : constant Frequency_Type := |
| Nico Huber | 530651b | 2019-10-03 14:59:38 +0200 | [diff] [blame] | 348 | (case Gen is |
| 349 | when Generation'First .. G45 => 165_000_000, |
| 350 | when Ironlake => 225_000_000, |
| 351 | when Haswell .. Generation'Last => 300_000_000); |
| Nico Huber | 74ec962 | 2016-11-19 03:00:43 +0100 | [diff] [blame] | 352 | |
| Nico Huber | b8ae618 | 2017-07-15 20:03:56 +0200 | [diff] [blame] | 353 | ---------------------------------------------------------------------------- |
| 354 | |
| Nico Huber | adfe11f | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 355 | GTT_PTE_Size : <hswvar> Natural := (if Has_64bit_GTT then 8 else 4); |
| Nico Huber | b8ae618 | 2017-07-15 20:03:56 +0200 | [diff] [blame] | 356 | |
| Nico Huber | adfe11f | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 357 | Fence_Base : <ilkvar> Natural := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 358 | (if not Sandybridge_On then 16#0000_3000# else 16#0010_0000#); |
| Nico Huber | b03c8f1 | 2017-08-25 13:29:08 +0200 | [diff] [blame] | 359 | |
| Nico Huber | adfe11f | 2018-06-10 14:59:04 +0200 | [diff] [blame] | 360 | Fence_Count : <ilkvar> Natural := |
| Nico Huber | 998ee2b | 2018-06-12 23:02:17 +0200 | [diff] [blame] | 361 | (if not Ivybridge_On then 16 else 32); |
| Nico Huber | b03c8f1 | 2017-08-25 13:29:08 +0200 | [diff] [blame] | 362 | |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 363 | ---------------------------------------------------------------------------- |
| 364 | |
| 365 | use type HW.Word16; |
| 366 | |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 367 | -- GMA PCI IDs: |
| 368 | -- |
| 369 | -- Rather catch too much here than too little, it's |
| 370 | -- mostly used to distinguish generations. Best public |
| 371 | -- reference for these IDs is Linux' i915. |
| 372 | -- |
| 373 | -- Since Sandybridge, bits 4 and 5 encode the compu- |
| 374 | -- tational capabilities and can mostly be ignored. |
| 375 | -- From Haswell on, we have to distinguish between |
| 376 | -- Normal, ULT (U CPU lines) and ULX (Y CPU lines). |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 377 | |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 378 | function Is_Haswell_Y (Device_Id : Word16) return Boolean is |
| 379 | ((Device_Id and 16#ffef#) = 16#0a0e#); |
| 380 | function Is_Haswell_U (Device_Id : Word16) return Boolean is |
| 381 | (((Device_Id and 16#ffc3#) = 16#0a02# or |
| 382 | (Device_Id and 16#ffcf#) = 16#0a0b#) and |
| 383 | not Is_Haswell_Y (Device_Id)); |
| 384 | function Is_Haswell (Device_Id : Word16) return Boolean is |
| 385 | ((Device_Id and 16#ffc3#) = 16#0402# or |
| 386 | (Device_Id and 16#ffcf#) = 16#040b# or |
| 387 | (Device_Id and 16#ffc3#) = 16#0c02# or |
| 388 | (Device_Id and 16#ffcf#) = 16#0c0b# or |
| 389 | (Device_Id and 16#ffc3#) = 16#0d02# or |
| 390 | (Device_Id and 16#ffcf#) = 16#0d0b#); |
| 391 | |
| 392 | function Is_Broadwell_Y (Device_Id : Word16) return Boolean is |
| 393 | ((Device_Id and 16#ffcf#) = 16#160e#); |
| 394 | function Is_Broadwell_U (Device_Id : Word16) return Boolean is |
| 395 | ((Device_Id and 16#ffcf#) = 16#1606# or |
| 396 | (Device_Id and 16#ffcf#) = 16#160b#); |
| 397 | function Is_Broadwell (Device_Id : Word16) return Boolean is |
| 398 | ((Device_Id and 16#ffc7#) = 16#1602# or |
| 399 | (Device_Id and 16#ffcf#) = 16#160d#); |
| 400 | |
| 401 | function Is_Skylake_Y (Device_Id : Word16) return Boolean is |
| 402 | ((Device_Id and 16#ffcf#) = 16#190e#); |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 403 | function Is_Skylake_U (Device_Id : Word16) return Boolean is |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 404 | ((Device_Id and 16#ffc9#) = 16#1901# or |
| 405 | (Device_Id and 16#ffcf#) = 16#1906#); |
| 406 | function Is_Skylake (Device_Id : Word16) return Boolean is |
| 407 | ((Device_Id and 16#ffc7#) = 16#1902# or |
| 408 | (Device_Id and 16#ffcf#) = 16#190b# or |
| 409 | (Device_Id and 16#ffcf#) = 16#190d#); |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 410 | |
| Nico Huber | 88badbe | 2018-09-27 16:36:47 +0200 | [diff] [blame] | 411 | function Is_Kaby_Lake_Y (Device_Id : Word16) return Boolean is |
| 412 | ((Device_Id and 16#ffcf#) = 16#5905# or |
| 413 | (Device_Id and 16#ffcf#) = 16#590e#); |
| 414 | function Is_Kaby_Lake_Y_AML (Device_Id : Word16) return Boolean is |
| 415 | (Device_Id = 16#591c# or Device_Id = 16#87c0#); |
| 416 | function Is_Kaby_Lake_U (Device_Id : Word16) return Boolean is |
| 417 | ((Device_Id and 16#ffcd#) = 16#5901# or |
| 418 | (Device_Id and 16#ffce#) = 16#5906#); |
| 419 | function Is_Kaby_Lake (Device_Id : Word16) return Boolean is |
| 420 | ((Device_Id and 16#ffc7#) = 16#5902# or |
| 421 | (Device_Id and 16#ffcf#) = 16#5908# or |
| 422 | (Device_Id and 16#ffcf#) = 16#590b# or |
| 423 | (Device_Id and 16#ffcf#) = 16#590d#); |
| 424 | |
| Nico Huber | 2c92794 | 2019-02-17 19:07:31 +0100 | [diff] [blame] | 425 | function Is_Coffee_Lake_Y_AML (Device_Id : Word16) return Boolean is |
| 426 | (Device_Id = 16#87ca#); |
| 427 | -- Including Whiskey Lake: |
| 428 | function Is_Coffee_Lake_U (Device_Id : Word16) return Boolean is |
| 429 | ((Device_Id and 16#fff0#) = 16#3ea0#); |
| 430 | function Is_Coffee_Lake (Device_Id : Word16) return Boolean is |
| 431 | ((Device_Id and 16#fff0#) = 16#3e90#); |
| 432 | |
| Nico Huber | cdbfce2 | 2019-10-29 20:00:43 +0100 | [diff] [blame] | 433 | function Is_Comet_Lake_U (Device_Id : Word16) return Boolean is |
| 434 | ((Device_Id and 16#ff9f#) = 16#9b01# or |
| 435 | (Device_Id and 16#ff9f#) = 16#9b8a# or |
| 436 | (Device_Id and 16#ff9f#) = 16#9b8c#); |
| 437 | function Is_Comet_Lake (Device_Id : Word16) return Boolean is |
| 438 | ((Device_Id and 16#ff8f#) = 16#9b82# or |
| 439 | (Device_Id and 16#ff8f#) = 16#9b84# or |
| 440 | (Device_Id and 16#ff8f#) = 16#9b85# or |
| 441 | (Device_Id and 16#ff8f#) = 16#9b86# or |
| 442 | (Device_Id and 16#ff8f#) = 16#9b88#); |
| 443 | |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 444 | function Is_GPU (Device_Id : Word16; CPU : CPU_Type; CPU_Var : CPU_Variant) |
| 445 | return Boolean is |
| 446 | (case CPU is |
| Nico Huber | 7f3e280 | 2019-09-28 20:40:55 +0200 | [diff] [blame] | 447 | when G45 => (Device_Id and 16#ff02#) = 16#2e02#, |
| 448 | when GM45 => (Device_Id and 16#fffe#) = 16#2a42#, |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 449 | when Ironlake => (Device_Id and 16#fff3#) = 16#0042#, |
| 450 | when Sandybridge => (Device_Id and 16#ffc2#) = 16#0102#, |
| 451 | when Ivybridge => (Device_Id and 16#ffc3#) = 16#0142#, |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 452 | when Haswell => (case CPU_Var is |
| 453 | when Normal => Is_Haswell (Device_Id), |
| 454 | when ULT => Is_Haswell_U (Device_Id), |
| 455 | when ULX => Is_Haswell_Y (Device_Id)), |
| 456 | when Broadwell => (case CPU_Var is |
| 457 | when Normal => Is_Broadwell (Device_Id), |
| 458 | when ULT => Is_Broadwell_U (Device_Id), |
| 459 | when ULX => Is_Broadwell_Y (Device_Id)), |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 460 | when Broxton => (Device_Id and 16#fffe#) = 16#5a84#, |
| Nico Huber | 25fdb15 | 2019-02-17 15:54:39 +0100 | [diff] [blame] | 461 | when Skylake => (case CPU_Var is |
| 462 | when Normal => Is_Skylake (Device_Id), |
| 463 | when ULT => Is_Skylake_U (Device_Id), |
| Nico Huber | 88badbe | 2018-09-27 16:36:47 +0200 | [diff] [blame] | 464 | when ULX => Is_Skylake_Y (Device_Id)), |
| 465 | when Kabylake => (case CPU_Var is |
| Nico Huber | 2c92794 | 2019-02-17 19:07:31 +0100 | [diff] [blame] | 466 | when Normal => |
| 467 | Is_Kaby_Lake (Device_Id) or |
| Nico Huber | cdbfce2 | 2019-10-29 20:00:43 +0100 | [diff] [blame] | 468 | Is_Coffee_Lake (Device_Id) or |
| 469 | Is_Comet_Lake (Device_Id), |
| Nico Huber | 2c92794 | 2019-02-17 19:07:31 +0100 | [diff] [blame] | 470 | when ULT => |
| 471 | Is_Kaby_Lake_U (Device_Id) or |
| Nico Huber | cdbfce2 | 2019-10-29 20:00:43 +0100 | [diff] [blame] | 472 | Is_Coffee_Lake_U (Device_Id) or |
| 473 | Is_Comet_Lake_U (Device_Id), |
| Nico Huber | 2c92794 | 2019-02-17 19:07:31 +0100 | [diff] [blame] | 474 | when ULX => |
| 475 | Is_Kaby_Lake_Y (Device_Id) or |
| 476 | Is_Kaby_Lake_Y_AML (Device_Id) or |
| 477 | Is_Coffee_Lake_Y_AML (Device_Id))); |
| Nico Huber | e7ac6eb | 2017-09-04 23:54:13 +0200 | [diff] [blame] | 478 | |
| 479 | function Compatible_GPU (Device_Id : Word16) return Boolean is |
| 480 | (Is_GPU (Device_Id, CPU, CPU_Var)); |
| 481 | |
| Nico Huber | 6a996dc | 2018-06-17 16:30:33 +0200 | [diff] [blame] | 482 | pragma Warnings (GNATprove, Off, "subprogram ""Detect_CPU"" has no effect", |
| 483 | Reason => "only effective in dynamic cpu config"); |
| 484 | procedure Detect_CPU (Device : Word16)<cpunull>; |
| 485 | |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 486 | end HW.GFX.GMA.Config; |