From cc4befdd71212defa220fef8873f60dd910c1e17 Mon Sep 17 00:00:00 2001 From: daeinki Date: Thu, 3 Dec 2009 17:51:11 +0900 Subject: [PATCH] s5pc110: lcd: registerd calls for ams701ka LCD Panel driver to framebuffer. Signed-off-by: daeinki --- drivers/video/ams701ka.c | 10 +++++----- drivers/video/s5p-fb.c | 6 +++--- drivers/video/s5p-fb.h | 6 +++++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/video/ams701ka.c b/drivers/video/ams701ka.c index 80e9148..8ba553c 100644 --- a/drivers/video/ams701ka.c +++ b/drivers/video/ams701ka.c @@ -101,7 +101,7 @@ const unsigned short SEQ_STANDBY_OFF[] = { const unsigned short GAMMA_SETTING[] = { 0x3f, 0x0000, /* gamma setting : ams701ka */ -#if 0 /* 0.0 */ +#if 0 /* 0.0 */ /* Low Red Gamma */ 0x4c, 0xc209, 0x4d, 0xdac8, @@ -120,7 +120,7 @@ const unsigned short GAMMA_SETTING[] = { 0x56, 0xbcc4, 0x57, 0x00b7, #endif -#if 1/* 1.0 */ +#if 1 /* 1.0 */ /* High Red Gamma */ 0x40, 0x0720, 0x41, 0xCBA7, @@ -314,7 +314,7 @@ static void ams701ka_panel_send_sequence(const unsigned short *wbuf) } } -void lcd_panel_power_on(void) +void ams701ka_lcd_panel_power_on(void) { /* set gpio data for MLCD_RST to HIGH */ gpio_set_value(&gpio->gpio_mp0_5, 5, 1); @@ -346,7 +346,7 @@ static inline void ams701ka_c110_panel_hw_reset(void) udelay(10000); } -void lcd_panel_enable(void) +void ams701ka_lcd_panel_enable(void) { ams701ka_panel_send_sequence(SEQ_DISPLAY_ON); } @@ -357,7 +357,7 @@ static void ams701ka_panel_disable(void) } -void lcd_panel_init(void) +void ams701ka_lcd_panel_init(void) { /* set gpio pin for DISPLAY_CS to HIGH */ gpio_set_value(&gpio->gpio_mp0_1, 1, 1); diff --git a/drivers/video/s5p-fb.c b/drivers/video/s5p-fb.c index f906387..dd00583 100644 --- a/drivers/video/s5p-fb.c +++ b/drivers/video/s5p-fb.c @@ -303,9 +303,9 @@ static void s5pc_init_panel_info(vidinfo_t *vid, struct lcd_panel_operation *cal vid->vl_bfw = 6, vid->vl_efw = 8, - calls->lcd_panel_init = /* */; - calls->lcd_panel_power_on = /* */; - calls->lcd_panel_enable = /* */; + calls->lcd_panel_init = ams701ka_lcd_panel_init; + calls->lcd_panel_power_on = ams701ka_lcd_panel_power_on; + calls->lcd_panel_enable = ams701ka_lcd_panel_enable; #endif panel_width = vid->vl_col; diff --git a/drivers/video/s5p-fb.h b/drivers/video/s5p-fb.h index 9bc62a3..3d89750 100644 --- a/drivers/video/s5p-fb.h +++ b/drivers/video/s5p-fb.h @@ -14,7 +14,7 @@ #ifndef _S5PCFB_H_ #define _S5PCFB_H_ -#define ON 1 +#define ON 1 #define OFF 0 #define DEBUG @@ -257,5 +257,9 @@ extern void s6e63m0_lcd_panel_init(void); extern void s6e63m0_lcd_panel_power_on(void); extern void s6e63m0_lcd_panel_enable(void); +extern void ams701ka_lcd_panel_init(void); +extern void ams701ka_lcd_panel_power_on(void); +extern void ams701ka_lcd_panel_enable(void); + #endif -- 2.7.4