blob: 3f8aadb63771dd65445baa81dddecbb772bbccce [file] [log] [blame]
Arthur Heymans20cb85f2017-04-29 14:31:32 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2017 arthur@aheymans.xyz
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <stdint.h>
17#include <commonlib/helpers.h>
18#include <northbridge/intel/gm45/gm45.h>
19
20static const struct blc_pwm_t blc_entries[] = {
Nico Huber36dafd82017-05-22 19:23:39 +020021 /* corrected to 320MHz CDClk, vendor set 753; works fine at both: */
22 {"LTD121EQ3B", 447},
Arthur Heymans20cb85f2017-04-29 14:31:32 +020023 {"LTD121EWVB", 165},
24 {"B121EW03 V6 ", 165},
25 /* datasheets: between 100 and 20k, typical 200 */
26 /* TESTED: works best at 400 */
27 {"B121EW09 V3 ", 400},
28 {"HV121WX4-120", 110}, /* Aftermarket AFFS lcd, works well at low pwm */
29 {"LTN121AT03001", 110},
30 {"LTN121AP03001", 750},
31 /* TODO: untested panels found on thinkwiki */
32 /* Generally CCFL runs best at lower PWM */
33 /* {"B121EW09 V2 ", 450}, */
34 /* {"N121IB-L05", 450}, */
35 {"LP121WX3-TLC1", 400}, /* TESTED to work best at this value */
36 /* {"LP121WX3-TLA1" 450}, */
37 /* {"B121EW03 V3 " 110}, */
38 /* {"LTN121AP02001" 110}, */
39};
40
41int get_blc_values(const struct blc_pwm_t **entries)
42{
43 *entries = blc_entries;
44 return ARRAY_SIZE(blc_entries);
45}