1 /*inclue/linux/ld9040.h
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
6 * Header file for Samsung Display Panel(AMOLED) driver
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #include <linux/types.h>
14 struct ld9040_panel_data {
15 const unsigned short *seq_user_set;
16 const unsigned short *seq_displayctl_set;
17 const unsigned short *seq_gtcon_set;
18 const unsigned short *seq_panelcondition_set;
19 const unsigned short *seq_pwrctl_set;
20 const unsigned short *display_on;
21 const unsigned short *display_off;
22 const unsigned short *sleep_in;
23 const unsigned short *sleep_out;
24 const unsigned short *acl_on;
25 const unsigned short **acl_table;
26 const unsigned short *elvss_on;
27 const unsigned short **elvss_table;
28 const unsigned short **gamma19_table;
29 const unsigned short **gamma22_table;
30 const unsigned short lcdtype;
36 void (*setcs)(u8 is_on);
37 void (*setsck)(u8 is_on);
38 void (*setmosi)(u8 is_on);
39 void (*setmosi2miso)(u8 is_on);
40 unsigned int (*getmiso)(void);
43 #define LCDTYPE_M2 (1)
44 #define LCDTYPE_SM2_A1 (0)
45 #define LCDTYPE_SM2_A2 (2)