Tony Lindgren | f4e4c32 | 2006-12-07 13:57:38 -0800 | [diff] [blame] | 1 | #ifndef __LCD_MIPID_H |
| 2 | #define __LCD_MIPID_H |
| 3 | |
| 4 | enum mipid_test_num { |
| 5 | MIPID_TEST_RGB_LINES, |
| 6 | }; |
| 7 | |
| 8 | enum mipid_test_result { |
| 9 | MIPID_TEST_SUCCESS, |
| 10 | MIPID_TEST_INVALID, |
| 11 | MIPID_TEST_FAILED, |
| 12 | }; |
| 13 | |
| 14 | #ifdef __KERNEL__ |
| 15 | |
| 16 | struct mipid_platform_data { |
| 17 | int nreset_gpio; |
| 18 | int data_lines; |
Imre Deak | 66d2f99 | 2009-09-22 16:46:41 -0700 | [diff] [blame] | 19 | |
Tony Lindgren | f4e4c32 | 2006-12-07 13:57:38 -0800 | [diff] [blame] | 20 | void (*shutdown)(struct mipid_platform_data *pdata); |
Imre Deak | 66d2f99 | 2009-09-22 16:46:41 -0700 | [diff] [blame] | 21 | void (*set_bklight_level)(struct mipid_platform_data *pdata, |
| 22 | int level); |
| 23 | int (*get_bklight_level)(struct mipid_platform_data *pdata); |
| 24 | int (*get_bklight_max)(struct mipid_platform_data *pdata); |
Tony Lindgren | f4e4c32 | 2006-12-07 13:57:38 -0800 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | #endif |
| 28 | |
| 29 | #endif |