1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* This file is part of the coreboot project.
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <stdint.h>
#include <commonlib/helpers.h>
#include <northbridge/intel/gm45/gm45.h>
/*
* This contains a list of panel IDs and a known well working
* backlight PWM frequency.
*/
static const struct blc_pwm_t blc_entries[] = {
/* Vendor BIOS seems to intend to set PWM freq at 220Hz */
/* T400 */
{"B141EW04 V7 ", 110},
{"B141EW05 V3 ", 450},
{"LP141WX3-TLR1", 110},
{"LP141WX5-TLP2", 450},
{"LTN141AT12401", 450},
{"LTN141W1-L05", 110},
{"LTN141WD-L05", 110},
/* T500 */
{"LP154W02-TL06", 110},
{"LTN154P2-L05", 110},
{"LTN154P3-L02", 110},
{"LTN154X3-L02", 110},
{"LTN154U2-L05", 110},
/* R500 */
{"154WX5-TLB2", 220},
};
int get_blc_values(const struct blc_pwm_t **entries)
{
*entries = blc_entries;
return ARRAY_SIZE(blc_entries);
}
|