From 9b8e54ebaeb3702aefb84252d7c9f0d6af2b81a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=92=9F=E5=8B=87=E6=B1=AA?= Date: Wed, 9 Jun 2010 03:08:37 +0000 Subject: [PATCH] update lcd driver --- drivers/video/display/screen/lcd_hl070vm4.c | 6 +++--- drivers/video/display/screen/lcd_hsd800x480.c | 8 ++++---- drivers/video/display/screen/lcd_nt35580.c | 4 ++-- drivers/video/display/screen/lcd_td043mgea1.c | 8 ++++---- drivers/video/display/screen/lcd_tj048nc01ca.c | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/video/display/screen/lcd_hl070vm4.c b/drivers/video/display/screen/lcd_hl070vm4.c index 5e487d736adf..69cf8bb49277 100755 --- a/drivers/video/display/screen/lcd_hl070vm4.c +++ b/drivers/video/display/screen/lcd_hl070vm4.c @@ -28,10 +28,10 @@ #define CS_OUT() gpio_direction_output(RK2818_PIN_PA4, 0) #define CS_SET() gpio_set_value(RK2818_PIN_PA4, GPIO_HIGH) #define CS_CLR() gpio_set_value(RK2818_PIN_PA4, GPIO_LOW) -#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C0_SCL +#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C1_SCL #define CLK_SET() gpio_set_value(RK2818_PIN_PE7, GPIO_HIGH) #define CLK_CLR() gpio_set_value(RK2818_PIN_PE7, GPIO_LOW) -#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C0_SDA +#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C1_SDA #define TXD_SET() gpio_set_value(RK2818_PIN_PE6, GPIO_HIGH) #define TXD_CLR() gpio_set_value(RK2818_PIN_PE6, GPIO_LOW) @@ -75,7 +75,7 @@ void screen_set_iomux(u8 enable) else { gpio_free(RK2818_PIN_PA4); - rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); + //rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); gpio_free(RK2818_PIN_PE7); gpio_free(RK2818_PIN_PE6); diff --git a/drivers/video/display/screen/lcd_hsd800x480.c b/drivers/video/display/screen/lcd_hsd800x480.c index 7113e8511c1c..bf1979ada631 100755 --- a/drivers/video/display/screen/lcd_hsd800x480.c +++ b/drivers/video/display/screen/lcd_hsd800x480.c @@ -30,10 +30,10 @@ #define CS_OUT() gpio_direction_output(RK2818_PIN_PA4, 0) #define CS_SET() gpio_set_value(RK2818_PIN_PA4, GPIO_HIGH) #define CS_CLR() gpio_set_value(RK2818_PIN_PA4, GPIO_LOW) -#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C0_SCL +#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C1_SCL #define CLK_SET() gpio_set_value(RK2818_PIN_PE7, GPIO_HIGH) #define CLK_CLR() gpio_set_value(RK2818_PIN_PE7, GPIO_LOW) -#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C0_SDA +#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C1_SDA #define TXD_SET() gpio_set_value(RK2818_PIN_PE6, GPIO_HIGH) #define TXD_CLR() gpio_set_value(RK2818_PIN_PE6, GPIO_LOW) @@ -77,8 +77,8 @@ void screen_set_iomux(u8 enable) else { gpio_free(RK2818_PIN_PA4); - rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); - + // rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); + gpio_free(RK2818_PIN_PE7); gpio_free(RK2818_PIN_PE6); rk2818_mux_api_set(GPIOE_U1IR_I2C1_NAME, 2); diff --git a/drivers/video/display/screen/lcd_nt35580.c b/drivers/video/display/screen/lcd_nt35580.c index 92c537ae5df0..354f6c1d3da6 100755 --- a/drivers/video/display/screen/lcd_nt35580.c +++ b/drivers/video/display/screen/lcd_nt35580.c @@ -30,10 +30,10 @@ #define CS_OUT() gpio_direction_output(RK2818_PIN_PA4, 0) #define CS_SET() gpio_set_value(RK2818_PIN_PA4, GPIO_HIGH) #define CS_CLR() gpio_set_value(RK2818_PIN_PA4, GPIO_LOW) -#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C0_SCL +#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C1_SCL #define CLK_SET() gpio_set_value(RK2818_PIN_PE7, GPIO_HIGH) #define CLK_CLR() gpio_set_value(RK2818_PIN_PE7, GPIO_LOW) -#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C0_SDA +#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C1_SDA #define TXD_SET() gpio_set_value(RK2818_PIN_PE6, GPIO_HIGH) #define TXD_CLR() gpio_set_value(RK2818_PIN_PE6, GPIO_LOW) #define TXD_IN() gpio_direction_input(RK2818_PIN_PE6) diff --git a/drivers/video/display/screen/lcd_td043mgea1.c b/drivers/video/display/screen/lcd_td043mgea1.c index d13b7934abf3..1b0752ca97b9 100755 --- a/drivers/video/display/screen/lcd_td043mgea1.c +++ b/drivers/video/display/screen/lcd_td043mgea1.c @@ -28,10 +28,10 @@ #define CS_OUT() gpio_direction_output(RK2818_PIN_PA4, 0) #define CS_SET() gpio_set_value(RK2818_PIN_PA4, GPIO_HIGH) #define CS_CLR() gpio_set_value(RK2818_PIN_PA4, GPIO_LOW) -#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C0_SCL +#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C1_SCL #define CLK_SET() gpio_set_value(RK2818_PIN_PE7, GPIO_HIGH) #define CLK_CLR() gpio_set_value(RK2818_PIN_PE7, GPIO_LOW) -#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C0_SDA +#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C1_SDA #define TXD_SET() gpio_set_value(RK2818_PIN_PE6, GPIO_HIGH) #define TXD_CLR() gpio_set_value(RK2818_PIN_PE6, GPIO_LOW) @@ -73,12 +73,12 @@ void screen_set_iomux(u8 enable) else { gpio_free(RK2818_PIN_PA4); - rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); + // rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); gpio_free(RK2818_PIN_PE7); gpio_free(RK2818_PIN_PE6); rk2818_mux_api_set(GPIOE_U1IR_I2C1_NAME, 2); - } + } return ; pin_err: return ; diff --git a/drivers/video/display/screen/lcd_tj048nc01ca.c b/drivers/video/display/screen/lcd_tj048nc01ca.c index 41991eeebc73..717d396563d5 100755 --- a/drivers/video/display/screen/lcd_tj048nc01ca.c +++ b/drivers/video/display/screen/lcd_tj048nc01ca.c @@ -29,10 +29,10 @@ #define CS_OUT() gpio_direction_output(RK2818_PIN_PA4, 0) #define CS_SET() gpio_set_value(RK2818_PIN_PA4, GPIO_HIGH) #define CS_CLR() gpio_set_value(RK2818_PIN_PA4, GPIO_LOW) -#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C0_SCL +#define CLK_OUT() gpio_direction_output(RK2818_PIN_PE7, 0) //I2C1_SCL #define CLK_SET() gpio_set_value(RK2818_PIN_PE7, GPIO_HIGH) #define CLK_CLR() gpio_set_value(RK2818_PIN_PE7, GPIO_LOW) -#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C0_SDA +#define TXD_OUT() gpio_direction_output(RK2818_PIN_PE6, 0) //I2C1_SDA #define TXD_SET() gpio_set_value(RK2818_PIN_PE6, GPIO_HIGH) #define TXD_CLR() gpio_set_value(RK2818_PIN_PE6, GPIO_LOW) @@ -76,7 +76,7 @@ void screen_set_iomux(u8 enable) else { gpio_free(RK2818_PIN_PA4); - rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); + // rk2818_mux_api_set(CXGPIO_HSADC_SEL_NAME, 1); gpio_free(RK2818_PIN_PE7); gpio_free(RK2818_PIN_PE6); -- 2.34.1