| 1 |
|
| 2 |
|
| 3 |
#include <stdint.h> |
| 4 |
#include <commonlib/helpers.h> |
| 5 |
#include <console/console.h> |
| 6 |
#include <northbridge/intel/gm45/gm45.h> |
| 7 |
#include <device/pci.h> |
| 8 |
#include <drivers/intel/gma/opregion.h> |
| 9 |
|
| 10 |
static const struct blc_pwm_t blc_entries[] = { |
| 11 |
|
| 12 |
{"LTD121EQ3B", 447}, |
| 13 |
{"LTD121EWVB", 165}, |
| 14 |
{"LTD133EQ1B", 264}, |
| 15 |
{"B121EW03 V6 ", 165}, |
| 16 |
|
| 17 |
|
| 18 |
{"B121EW09 V3 ", 400}, |
| 19 |
{"HV121WX4-120", 110}, |
| 20 |
{"LTN121AT03001", 110}, |
| 21 |
{"LTN121AT07L02", 750}, |
| 22 |
{"LTN121AP03001", 750}, |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
{"LP121WX3-TLC1", 400}, |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
}; |
| 32 |
|
| 33 |
int get_blc_values(const struct blc_pwm_t **entries) |
| 34 |
{ |
| 35 |
*entries = blc_entries; |
| 36 |
return ARRAY_SIZE(blc_entries); |
| 37 |
} |
| 38 |
|
| 39 |
const char *mainboard_vbt_filename(void) |
| 40 |
{ |
| 41 |
u16 pwm_freq = get_blc_pwm_freq_value(); |
| 42 |
|
| 43 |
if (pwm_freq == 0) { |
| 44 |
printk(BIOS_DEBUG, |
| 45 |
"GMA: Display backlight type not found, assuming LED\n"); |
| 46 |
return "data_led.vbt"; |
| 47 |
} else if (pwm_freq > 200) { |
| 48 |
printk(BIOS_DEBUG, "GMA: Using LED backlight VBT\n"); |
| 49 |
return "data_led.vbt"; |
| 50 |
} else { |
| 51 |
printk(BIOS_DEBUG, "GMA: Using CCFL backlight VBT\n"); |
| 52 |
return "data_ccfl.vbt"; |
| 53 |
} |
| 54 |
} |