Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; version 2 of the License. |
| 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. |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 13 | */ |
| 14 | |
Iru Cai | d7ee9dd | 2016-02-24 15:03:58 +0800 | [diff] [blame] | 15 | #ifndef NORTHBRIDGE_INTEL_HASWELL_CHIP_H |
| 16 | #define NORTHBRIDGE_INTEL_HASWELL_CHIP_H |
| 17 | |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 18 | #include <drivers/intel/gma/i915.h> |
| 19 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 20 | /* |
| 21 | * Digital Port Hotplug Enable: |
Angel Pons | 1db5bc7 | 2020-01-15 00:49:03 +0100 | [diff] [blame] | 22 | * 0x04 = Enabled, 2ms short pulse |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 23 | * 0x05 = Enabled, 4.5ms short pulse |
Angel Pons | 1db5bc7 | 2020-01-15 00:49:03 +0100 | [diff] [blame] | 24 | * 0x06 = Enabled, 6ms short pulse |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 25 | * 0x07 = Enabled, 100ms short pulse |
| 26 | */ |
| 27 | struct northbridge_intel_haswell_config { |
| 28 | u8 gpu_dp_b_hotplug; /* Digital Port B Hotplug Config */ |
| 29 | u8 gpu_dp_c_hotplug; /* Digital Port C Hotplug Config */ |
| 30 | u8 gpu_dp_d_hotplug; /* Digital Port D Hotplug Config */ |
| 31 | |
| 32 | u8 gpu_panel_port_select; /* 0=LVDS 1=DP_B 2=DP_C 3=DP_D */ |
| 33 | u8 gpu_panel_power_cycle_delay; /* T4 time sequence */ |
| 34 | u16 gpu_panel_power_up_delay; /* T1+T2 time sequence */ |
| 35 | u16 gpu_panel_power_down_delay; /* T3 time sequence */ |
| 36 | u16 gpu_panel_power_backlight_on_delay; /* T5 time sequence */ |
| 37 | u16 gpu_panel_power_backlight_off_delay; /* Tx time sequence */ |
| 38 | |
Nico Huber | c2e4642 | 2020-03-23 01:22:49 +0100 | [diff] [blame] | 39 | unsigned int gpu_pch_backlight_pwm_hz; |
| 40 | enum { |
| 41 | GPU_BACKLIGHT_POLARITY_HIGH = 0, |
| 42 | GPU_BACKLIGHT_POLARITY_LOW, |
| 43 | } gpu_pch_backlight_polarity; |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 44 | |
Tristan Corrick | 1a73eb0 | 2018-10-31 02:27:29 +1300 | [diff] [blame] | 45 | bool gpu_ddi_e_connected; |
| 46 | |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 47 | struct i915_gpu_controller_info gfx; |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 48 | }; |
| 49 | |
Iru Cai | d7ee9dd | 2016-02-24 15:03:58 +0800 | [diff] [blame] | 50 | #endif /* NORTHBRIDGE_INTEL_HASWELL_CHIP_H */ |