summaryrefstree
path: root/kernel/drivers/video/exynos/decon/panels/aid_dimming.h
blob: 40e5f50434bf67d41a7c59ea2e83b63d41f561a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* linux/drivers/video/exynos_decon/panel/aid_dimming.h
 *
 * Header file for Samsung AID Dimming Driver.
 *
 * Copyright (c) 2013 Samsung Electronics
 * Minwoo Kim <minwoo7945.kim@samsung.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/

#ifndef __AID_DIMMING_H__
#define __AID_DIMMING_H__

#if defined(CONFIG_PANEL_S6E3HA2_DYNAMIC)
#include "s6e3ha2_wqhd_dimming.h"
#elif defined(CONFIG_PANEL_S6E3HA3_DYNAMIC)
#include "s6e3ha3_wqhd_dimming.h"
#elif defined(CONFIG_PANEL_S6E3HF3_DYNAMIC)
#include "s6e3ha3_wqhd_dimming.h"
#elif defined(CONFIG_PANEL_S6E3HF2_DYNAMIC)
#include "s6e3hf2_wqhd_dimming.h"
#elif defined(CONFIG_PANEL_S6E3FA3_A8XE)
#include "s6e3fa3_a8xe_dimming.h"
#else
#error "ERROR !! Check LCD Panel Header File"
#endif

#define	DIMMING_METHOD_AID				0
#define DIMMING_METHOD_FILL_CENTER		1
#define DIMMING_METHOD_INTERPOLATION	2
#define DIMMING_METHOD_FILL_HBM			3
#define DIMMING_METHOD_MAX				4

#define W1	DIMMING_METHOD_AID
#define W2	DIMMING_METHOD_FILL_CENTER
#define W3	DIMMING_METHOD_INTERPOLATION
#define W4	DIMMING_METHOD_FILL_HBM
enum {
	CI_RED = 0,
	CI_GREEN,
	CI_BLUE,
	CI_MAX,
};

struct dim_data {
	int t_gamma[NUM_VREF][CI_MAX];
	int mtp[NUM_VREF][CI_MAX];
	int volt[MAX_GRADATION][CI_MAX];
	int volt_vt[CI_MAX];
	int vt_mtp[CI_MAX];
	int look_volt[NUM_VREF][CI_MAX];
};

struct SmtDimInfo {
	unsigned int br;
	unsigned int refBr;
	const unsigned int *cGma;
	signed char *rTbl;
	signed char *cTbl;
	unsigned char *aid;
	unsigned char *elvCaps;
	unsigned char *elv;
	unsigned char gamma[OLED_CMD_GAMMA_CNT];
	unsigned int way;
};

#endif