update lcd driver

This commit is contained in:
钟勇汪
2010-06-09 03:08:37 +00:00
committed by 黄涛
parent 4cf237cf6c
commit 9b8e54ebae
5 changed files with 16 additions and 16 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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)

View File

@@ -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 ;

View File

@@ -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);