| 1 |
|
| 2 |
|
| 3 |
#ifndef NORTHBRIDGE_INTEL_SANDYBRIDGE_CHIP_H |
| 4 |
#define NORTHBRIDGE_INTEL_SANDYBRIDGE_CHIP_H |
| 5 |
|
| 6 |
#include <drivers/intel/gma/i915.h> |
| 7 |
#include <stdbool.h> |
| 8 |
#include <stdint.h> |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
struct northbridge_intel_sandybridge_config { |
| 18 |
u8 gpu_dp_b_hotplug; |
| 19 |
u8 gpu_dp_c_hotplug; |
| 20 |
u8 gpu_dp_d_hotplug; |
| 21 |
|
| 22 |
enum { |
| 23 |
PANEL_PORT_LVDS = 0, |
| 24 |
PANEL_PORT_DP_A = 1, |
| 25 |
PANEL_PORT_DP_C = 2, |
| 26 |
PANEL_PORT_DP_D = 3, |
| 27 |
} gpu_panel_port_select; |
| 28 |
|
| 29 |
u8 gpu_panel_power_cycle_delay; |
| 30 |
u16 gpu_panel_power_up_delay; |
| 31 |
u16 gpu_panel_power_down_delay; |
| 32 |
u16 gpu_panel_power_backlight_on_delay; |
| 33 |
u16 gpu_panel_power_backlight_off_delay; |
| 34 |
|
| 35 |
u32 gpu_cpu_backlight; |
| 36 |
u32 gpu_pch_backlight; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
u16 max_mem_clock_mhz; |
| 43 |
|
| 44 |
struct i915_gpu_controller_info gfx; |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
u8 spd_addresses[4]; |
| 50 |
|
| 51 |
|
| 52 |
u8 ts_addresses[4]; |
| 53 |
|
| 54 |
bool ec_present; |
| 55 |
bool ddr3lv_support; |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
enum { |
| 64 |
DDR_NMODE_AUTO = 0, |
| 65 |
DDR_NMODE_1N, |
| 66 |
DDR_NMODE_2N, |
| 67 |
} nmode; |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
enum { |
| 78 |
DDR_REFRESH_RATE_TEMP_THRES = 0, |
| 79 |
DDR_REFRESH_REATE_NORMAL, |
| 80 |
DDR_REFRESH_RATE_DOUBLE, |
| 81 |
} ddr_refresh_rate_config; |
| 82 |
|
| 83 |
struct { |
| 84 |
|
| 85 |
u8 mode : 2; |
| 86 |
|
| 87 |
u8 hs_port_switch_mask : 4; |
| 88 |
|
| 89 |
u8 preboot_support : 1; |
| 90 |
|
| 91 |
u8 xhci_streams : 1; |
| 92 |
} usb3; |
| 93 |
}; |
| 94 |
|
| 95 |
#endif |