mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
update lcd driver
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 ;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user