mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
fix lcd commend to make i2c errarch/arm/mach-rk2818/board-infoit50.c
This commit is contained in:
5
arch/arm/mach-rk2818/board-infosdk.c
Executable file → Normal file
5
arch/arm/mach-rk2818/board-infosdk.c
Executable file → Normal file
@@ -1138,6 +1138,11 @@ static int rk2818_lcd_io_deinit(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
gpio_direction_output(LCD_CLK_PIN, 0);
|
||||
gpio_set_value(LCD_CLK_PIN, GPIO_HIGH);
|
||||
gpio_direction_output(LCD_TXD_PIN, 0);
|
||||
gpio_set_value(LCD_TXD_PIN, GPIO_HIGH);
|
||||
|
||||
gpio_free(LCD_CS_PIN);
|
||||
rk2818_mux_api_mode_resume(LCD_CS_MUX_NAME);
|
||||
gpio_free(LCD_CLK_PIN);
|
||||
|
||||
@@ -1554,6 +1554,12 @@ err1:
|
||||
static int rk2818_lcd_io_deinit(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
gpio_direction_output(LCD_CLK_PIN, 0);
|
||||
gpio_set_value(LCD_CLK_PIN, GPIO_HIGH);
|
||||
gpio_direction_output(LCD_TXD_PIN, 0);
|
||||
gpio_set_value(LCD_TXD_PIN, GPIO_HIGH);
|
||||
|
||||
gpio_free(LCD_CS_PIN);
|
||||
rk2818_mux_api_mode_resume(LCD_CS_MUX_NAME);
|
||||
gpio_free(LCD_CLK_PIN);
|
||||
|
||||
6
arch/arm/mach-rk2818/board-rahosdk.c
Executable file → Normal file
6
arch/arm/mach-rk2818/board-rahosdk.c
Executable file → Normal file
@@ -1551,6 +1551,12 @@ err1:
|
||||
static int rk2818_lcd_io_deinit(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
gpio_direction_output(LCD_CLK_PIN, 0);
|
||||
gpio_set_value(LCD_CLK_PIN, GPIO_HIGH);
|
||||
gpio_direction_output(LCD_TXD_PIN, 0);
|
||||
gpio_set_value(LCD_TXD_PIN, GPIO_HIGH);
|
||||
|
||||
gpio_free(LCD_CS_PIN);
|
||||
rk2818_mux_api_mode_resume(LCD_CS_MUX_NAME);
|
||||
gpio_free(LCD_CLK_PIN);
|
||||
|
||||
Reference in New Issue
Block a user