aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorimilka <pkzl22@gmail.com>2012-11-10 22:16:18 +0000
committerEspen Fjellvær Olsen <espen@mrfjo.org>2012-11-11 15:59:50 +0100
commit3c3b858c0168ae826525595ef2fb5d275484f989 (patch)
tree582c77f5deabe0604845fccde2b4186f4c82857a /drivers/video
parentb1b33a2c6e1af144fae79c803df637683502e5c8 (diff)
downloadkernel_samsung_smdk4412-3c3b858c0168ae826525595ef2fb5d275484f989.zip
kernel_samsung_smdk4412-3c3b858c0168ae826525595ef2fb5d275484f989.tar.gz
kernel_samsung_smdk4412-3c3b858c0168ae826525595ef2fb5d275484f989.tar.bz2
n7100 support
Change-Id: I111e3be9a1c6ea8b68eab5c87fa6c084ba9bb5c3
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/samsung/lcdfreq.c9
-rw-r--r--drivers/video/samsung/mdnie_table_t0.h108
2 files changed, 24 insertions, 93 deletions
diff --git a/drivers/video/samsung/lcdfreq.c b/drivers/video/samsung/lcdfreq.c
index 7e4af07..e32a902e 100644
--- a/drivers/video/samsung/lcdfreq.c
+++ b/drivers/video/samsung/lcdfreq.c
@@ -21,6 +21,10 @@
#include "s3cfb.h"
+#ifdef CONFIG_MACH_T0
+#include <linux/platform_data/mms152_ts.h>
+#endif
+
enum lcdfreq_level_idx {
LEVEL_NORMAL,
LEVEL_LIMIT,
@@ -293,7 +297,9 @@ static ssize_t level_store(struct device *dev,
dev_err(dev, "%s fail\n", __func__);
return -EINVAL;
}
-
+#ifdef CONFIG_MACH_T0
+ tsp_lcd_infom((bool *) value);
+#endif
return count;
}
@@ -555,3 +561,4 @@ err_1:
return ret;
}
+
diff --git a/drivers/video/samsung/mdnie_table_t0.h b/drivers/video/samsung/mdnie_table_t0.h
index a3e9325..94062c8 100644
--- a/drivers/video/samsung/mdnie_table_t0.h
+++ b/drivers/video/samsung/mdnie_table_t0.h
@@ -104,21 +104,13 @@ static const unsigned short tune_dynamic_video[] = {
static const unsigned short tune_dynamic_vt[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x008e, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x008a, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
0x0039, 0x0080, /*FA dnrWeight*/
0x0080, 0x0fff, /*DNR dirTh*/
0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
0x0082, 0xff16, /*DNR decon5Th maskTh*/
0x0083, 0x0000, /*DNR blTh*/
- 0x0092, 0x00e0, /*DE pe*/
- 0x0093, 0x00e0, /*DE pf*/
- 0x0094, 0x00e0, /*DE pb*/
- 0x0095, 0x00e0, /*DE ne*/
- 0x0096, 0x00e0, /*DE nf*/
- 0x0097, 0x00e0, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0010, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -204,12 +196,6 @@ static const unsigned short tune_movie_video[] = {
0x0000, 0x0000, /*BANK 0*/
0x0008, 0x00a0, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
- 0x0092, 0x0000, /*DE pe*/
- 0x0093, 0x0000, /*DE pf*/
- 0x0094, 0x0000, /*DE pb*/
- 0x0095, 0x0000, /*DE ne*/
- 0x0096, 0x0000, /*DE nf*/
- 0x0097, 0x0000, /*DE nb*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -243,21 +229,13 @@ static const unsigned short tune_movie_video[] = {
static const unsigned short tune_movie_vt[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x00ae, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x00aa, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
0x0039, 0x0080, /*FA dnrWeight*/
0x0080, 0x0fff, /*DNR dirTh*/
0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
0x0082, 0xff16, /*DNR decon5Th maskTh*/
0x0083, 0x0000, /*DNR blTh*/
- 0x0092, 0x0042, /*DE pe*/
- 0x0093, 0x0042, /*DE pf*/
- 0x0094, 0x0042, /*DE pb*/
- 0x0095, 0x0042, /*DE ne*/
- 0x0096, 0x0042, /*DE nf*/
- 0x0097, 0x0042, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0010, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -291,17 +269,9 @@ static const unsigned short tune_movie_vt[] = {
static const unsigned short tune_standard_gallery[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x0088, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
0x0090, 0x0080, /*DE egth*/
- 0x0092, 0x0030, /*DE pe*/
- 0x0093, 0x0060, /*DE pf*/
- 0x0094, 0x0060, /*DE pb*/
- 0x0095, 0x0030, /*DE ne*/
- 0x0096, 0x0060, /*DE nf*/
- 0x0097, 0x0060, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0100, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -346,7 +316,7 @@ static const unsigned short tune_standard_ui[] = {
static const unsigned short tune_standard_video[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x0088, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
0x0092, 0x0060, /*DE pe*/
0x0093, 0x0060, /*DE pf*/
@@ -389,21 +359,13 @@ static const unsigned short tune_standard_video[] = {
static const unsigned short tune_standard_vt[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x008e, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x008a, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
0x0039, 0x0080, /*FA dnrWeight*/
0x0080, 0x0fff, /*DNR dirTh*/
0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
0x0082, 0xff16, /*DNR decon5Th maskTh*/
0x0083, 0x0000, /*DNR blTh*/
- 0x0092, 0x00c0, /*DE pe*/
- 0x0093, 0x00c0, /*DE pf*/
- 0x0094, 0x00c0, /*DE pb*/
- 0x0095, 0x00c0, /*DE ne*/
- 0x0096, 0x00c0, /*DE nf*/
- 0x0097, 0x00c0, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0010, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -425,16 +387,9 @@ static const unsigned short tune_standard_vt[] = {
static const unsigned short tune_natural_gallery[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x00ac, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x00a8, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
0x0090, 0x0080, /*DE egth*/
- 0x0092, 0x0030, /*DE pe*/
- 0x0093, 0x0060, /*DE pf*/
- 0x0094, 0x0060, /*DE pb*/
- 0x0095, 0x0030, /*DE ne*/
- 0x0096, 0x0060, /*DE nf*/
- 0x0097, 0x0060, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
0x0099, 0x0100, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
@@ -504,17 +459,9 @@ static const unsigned short tune_natural_ui[] = {
static const unsigned short tune_natural_video[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x00ac, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x00a8, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
0x0090, 0x0080, /*DE egth*/
- 0x0092, 0x0030, /*DE pe*/
- 0x0093, 0x0060, /*DE pf*/
- 0x0094, 0x0060, /*DE pb*/
- 0x0095, 0x0030, /*DE ne*/
- 0x0096, 0x0060, /*DE nf*/
- 0x0097, 0x0060, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0100, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -548,21 +495,13 @@ static const unsigned short tune_natural_video[] = {
static const unsigned short tune_natural_vt[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x00ae, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x00aa, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
0x0039, 0x0080, /*FA dnrWeight*/
0x0080, 0x0fff, /*DNR dirTh*/
0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
0x0082, 0xff16, /*DNR decon5Th maskTh*/
0x0083, 0x0000, /*DNR blTh*/
- 0x0092, 0x00c0, /*DE pe*/
- 0x0093, 0x00c0, /*DE pf*/
- 0x0094, 0x00c0, /*DE pb*/
- 0x0095, 0x00c0, /*DE ne*/
- 0x0096, 0x00c0, /*DE nf*/
- 0x0097, 0x00c0, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0010, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -596,17 +535,9 @@ static const unsigned short tune_natural_vt[] = {
static const unsigned short tune_camera[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x000c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x0008, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
0x0090, 0x0080, /*DE egth*/
- 0x0092, 0x0030, /*DE pe*/
- 0x0093, 0x0060, /*DE pf*/
- 0x0094, 0x0060, /*DE pb*/
- 0x0095, 0x0030, /*DE ne*/
- 0x0096, 0x0060, /*DE nf*/
- 0x0097, 0x0060, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0100, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg ry*/
0x00b1, 0x1010, /*CS hg gc*/
0x00b2, 0x1010, /*CS hg bm*/
@@ -617,17 +548,9 @@ static const unsigned short tune_camera[] = {
static const unsigned short tune_camera_outdoor[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x040c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x0408, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
0x0090, 0x0080, /*DE egth*/
- 0x0092, 0x0030, /*DE pe*/
- 0x0093, 0x0060, /*DE pf*/
- 0x0094, 0x0060, /*DE pb*/
- 0x0095, 0x0030, /*DE ne*/
- 0x0096, 0x0060, /*DE nf*/
- 0x0097, 0x0060, /*DE nb*/
- 0x0098, 0x1000, /*DE max ratio*/
- 0x0099, 0x0100, /*DE min ratio*/
0x00b0, 0x1010, /*CS hg RY*/
0x00b1, 0x1010, /*CS hg GC*/
0x00b2, 0x1010, /*CS hg BM*/
@@ -641,7 +564,7 @@ static const unsigned short tune_camera_outdoor[] = {
static const unsigned short tune_cold[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x00ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x00e8, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0000, 0x0001, /*BANK 1*/
0x0001, 0x0064, /*MCM 10000K*/
0x0009, 0xa08b, /*MCM 5cb 1cr W*/
@@ -652,7 +575,7 @@ static const unsigned short tune_cold[] = {
static const unsigned short tune_cold_outdoor[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x04ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x04e8, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0000, 0x0001, /*BANK 1*/
0x0001, 0x0064, /*MCM 10000K*/
0x0009, 0xa08b, /*MCM 5cb 1cr W*/
@@ -665,7 +588,7 @@ static const unsigned short tune_cold_outdoor[] = {
static const unsigned short tune_normal_outdoor[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x04ac, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x04a8, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0000, 0x0001, /*BANK 1*/
0x00d0, 0x01c0, /*UC y*/
0x00d1, 0x01ff, /*UC cs*/
@@ -675,7 +598,7 @@ static const unsigned short tune_normal_outdoor[] = {
static const unsigned short tune_warm[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x00ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x00e8, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0000, 0x0001, /*BANK 1*/
0x0001, 0x0028, /*MCM 4000K*/
0x0007, 0x7878, /*MCM 1cb 2cb W*/
@@ -686,7 +609,7 @@ static const unsigned short tune_warm[] = {
static const unsigned short tune_warm_outdoor[] = {
0x0000, 0x0000, /*BANK 0*/
- 0x0008, 0x04ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
+ 0x0008, 0x04e8, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
0x0000, 0x0001, /*BANK 1*/
0x0001, 0x0028, /*MCM 4000K*/
0x0007, 0x7878, /*MCM 1cb 2cb W*/
@@ -761,3 +684,4 @@ struct mdnie_tunning_info camera_table[OUTDOOR_MAX] = {
#endif/* __MDNIE_TABLE_H__ */
+