| 1 |
|
| 2 |
|
| 3 |
#ifndef _GMA_H_ |
| 4 |
#define _GMA_H_ |
| 5 |
|
| 6 |
#include <stdint.h> |
| 7 |
|
| 8 |
struct i915_gpu_controller_info { |
| 9 |
int use_spread_spectrum_clock; |
| 10 |
int ndid; |
| 11 |
u32 did[5]; |
| 12 |
}; |
| 13 |
|
| 14 |
|
| 15 |
struct i915_gpu_panel_config { |
| 16 |
unsigned int up_delay_ms; |
| 17 |
unsigned int down_delay_ms; |
| 18 |
unsigned int cycle_delay_ms; |
| 19 |
unsigned int backlight_on_delay_ms; |
| 20 |
unsigned int backlight_off_delay_ms; |
| 21 |
unsigned int backlight_pwm_hz; |
| 22 |
enum { |
| 23 |
GPU_BACKLIGHT_POLARITY_HIGH = 0, |
| 24 |
GPU_BACKLIGHT_POLARITY_LOW, |
| 25 |
} backlight_polarity; |
| 26 |
}; |
| 27 |
|
| 28 |
#define GMA_STATIC_DISPLAYS(ssc) { \ |
| 29 |
.use_spread_spectrum_clock = (ssc), \ |
| 30 |
.ndid = 3, .did = { 0x0100, 0x0240, 0x0410, } \ |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
#define GMA_DEFAULT_PANEL(ssc) { \ |
| 35 |
.use_spread_spectrum_clock = (ssc), \ |
| 36 |
.ndid = 1, .did = { 0x0400 } \ |
| 37 |
} |
| 38 |
|
| 39 |
void drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *conf); |
| 40 |
|
| 41 |
#endif |