Arthur Heymans | 20cb85f | 2017-04-29 14:31:32 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 20 | static const struct blc_pwm_t blc_entries[] = { |
| 21 | {"LTD121EWVB", 165}, |
| 22 | {"B121EW03 V6 ", 165}, |
| 23 | /* datasheets: between 100 and 20k, typical 200 */ |
| 24 | /* TESTED: works best at 400 */ |
| 25 | {"B121EW09 V3 ", 400}, |
| 26 | {"HV121WX4-120", 110}, /* Aftermarket AFFS lcd, works well at low pwm */ |
| 27 | {"LTN121AT03001", 110}, |
| 28 | {"LTN121AP03001", 750}, |
| 29 | /* TODO: untested panels found on thinkwiki */ |
| 30 | /* Generally CCFL runs best at lower PWM */ |
| 31 | /* {"B121EW09 V2 ", 450}, */ |
| 32 | /* {"N121IB-L05", 450}, */ |
| 33 | {"LP121WX3-TLC1", 400}, /* TESTED to work best at this value */ |
| 34 | /* {"LP121WX3-TLA1" 450}, */ |
| 35 | /* {"B121EW03 V3 " 110}, */ |
| 36 | /* {"LTN121AP02001" 110}, */ |
| 37 | }; |
| 38 | |
| 39 | int get_blc_values(const struct blc_pwm_t **entries) |
| 40 | { |
| 41 | *entries = blc_entries; |
| 42 | return ARRAY_SIZE(blc_entries); |
| 43 | } |