Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 2 | |
Iru Cai | d7ee9dd | 2016-02-24 15:03:58 +0800 | [diff] [blame] | 3 | #ifndef NORTHBRIDGE_INTEL_HASWELL_CHIP_H |
| 4 | #define NORTHBRIDGE_INTEL_HASWELL_CHIP_H |
| 5 | |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 6 | #include <drivers/intel/gma/i915.h> |
| 7 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 8 | /* |
| 9 | * Digital Port Hotplug Enable: |
Angel Pons | 1db5bc7 | 2020-01-15 00:49:03 +0100 | [diff] [blame] | 10 | * 0x04 = Enabled, 2ms short pulse |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 11 | * 0x05 = Enabled, 4.5ms short pulse |
Angel Pons | 1db5bc7 | 2020-01-15 00:49:03 +0100 | [diff] [blame] | 12 | * 0x06 = Enabled, 6ms short pulse |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 13 | * 0x07 = Enabled, 100ms short pulse |
| 14 | */ |
| 15 | struct northbridge_intel_haswell_config { |
| 16 | u8 gpu_dp_b_hotplug; /* Digital Port B Hotplug Config */ |
| 17 | u8 gpu_dp_c_hotplug; /* Digital Port C Hotplug Config */ |
| 18 | u8 gpu_dp_d_hotplug; /* Digital Port D Hotplug Config */ |
| 19 | |
Michael Niewöhner | 44fa0d4 | 2020-12-28 15:00:39 +0100 | [diff] [blame^] | 20 | u16 gpu_panel_power_cycle_delay_ms; /* T4 time sequence */ |
| 21 | u16 gpu_panel_power_up_delay_ms; /* T1+T2 time sequence */ |
| 22 | u16 gpu_panel_power_down_delay_ms; /* T3 time sequence */ |
| 23 | u16 gpu_panel_power_backlight_on_delay_ms; /* T5 time sequence */ |
| 24 | u16 gpu_panel_power_backlight_off_delay_ms; /* Tx time sequence */ |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 25 | |
Nico Huber | c2e4642 | 2020-03-23 01:22:49 +0100 | [diff] [blame] | 26 | unsigned int gpu_pch_backlight_pwm_hz; |
| 27 | enum { |
| 28 | GPU_BACKLIGHT_POLARITY_HIGH = 0, |
| 29 | GPU_BACKLIGHT_POLARITY_LOW, |
| 30 | } gpu_pch_backlight_polarity; |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 31 | |
Tristan Corrick | 1a73eb0 | 2018-10-31 02:27:29 +1300 | [diff] [blame] | 32 | bool gpu_ddi_e_connected; |
| 33 | |
Angel Pons | 8aab787 | 2020-07-04 01:24:59 +0200 | [diff] [blame] | 34 | bool ec_present; |
| 35 | |
| 36 | bool dq_pins_interleaved; |
| 37 | |
| 38 | bool usb_xhci_on_resume; |
| 39 | |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 40 | struct i915_gpu_controller_info gfx; |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 41 | }; |
| 42 | |
Iru Cai | d7ee9dd | 2016-02-24 15:03:58 +0800 | [diff] [blame] | 43 | #endif /* NORTHBRIDGE_INTEL_HASWELL_CHIP_H */ |