• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <commonlib/helpers.h>
4 #include <northbridge/intel/gm45/gm45.h>
5 
6 /*
7  * This contains a list of panel IDs and a known well working
8  * backlight PWM frequency.
9  */
10 static const struct blc_pwm_t blc_entries[] = {
11 	/* Vendor BIOS seems to intend to set PWM freq at 220Hz */
12 	/* T400 */
13 	{"B141EW04 V7 ", 110},
14 	{"B141EW05 V3 ", 450},
15 	{"LP141WX3-TLR1", 110},
16 	{"LP141WX5-TLP2", 450},
17 	{"LTN141AT12401", 450},
18 	{"LTN141W1-L05", 110},
19 	{"LTN141WD-L05", 110},
20 	/* T500 */
21 	{"LP154W02-TL06", 110},
22 	{"LTN154P2-L05", 110},
23 	{"LTN154P3-L02", 110},
24 	{"LTN154X3-L02", 110},
25 	{"LTN154U2-L05", 110},
26 	/* R500 */
27 	{"154WX5-TLB2", 220},
28 };
29 
get_blc_values(const struct blc_pwm_t ** entries)30 int get_blc_values(const struct blc_pwm_t **entries)
31 {
32 	*entries = blc_entries;
33 	return ARRAY_SIZE(blc_entries);
34 }
35