rockchip/rk3288: use bl_en instead lcd_bl to fill_lb_gpio
in depthcharge we will use "backlight" gpio which in lb_gpio table to control backlight, we use lcd_bl before, but it will not meet the backlight power sequence, so we change it to bl_en. BUG=chrome-os-partner:37348 TEST=Boot from speedy, and backlight work well BRANCH=None Change-Id: I19e488c7d3f1fe5cb91f8a93fae6b848f58b36b7 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: cb594ce612e1cedeabced4531fbd954f3698da98 Original-Change-Id: Ib0dac7c48bce7d0b28ec287b32d8c5bad575893f Original-Signed-off-by: huang lin <hl@rock-chips.com> Original-Reviewed-on: https://chromium-review.googlesource.com/259900 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: http://review.coreboot.org/9864 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
fe4253c859
commit
8eb99d0524
9 changed files with 21 additions and 21 deletions
|
@ -23,7 +23,7 @@
|
|||
#include <boardid.h>
|
||||
#include <gpio.h>
|
||||
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 0)
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 2)
|
||||
#define GPIO_RESET GPIO(0, B, 5)
|
||||
|
||||
void setup_chromeos_gpios(void);
|
||||
|
|
|
@ -151,17 +151,17 @@ void mainboard_power_on_backlight(void)
|
|||
{
|
||||
switch (board_id()) {
|
||||
case 2:
|
||||
gpio_output(GPIO_BACKLIGHT, 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
||||
break;
|
||||
default:
|
||||
gpio_output(GPIO(2, B, 4), 1); /* BL_PWR_EN */
|
||||
mdelay(20);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* LCD_BL */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO(7, A, 2), 1); /* BL_EN */
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <boardid.h>
|
||||
#include <gpio.h>
|
||||
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 0)
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 2)
|
||||
#define GPIO_RESET GPIO(0, B, 5)
|
||||
|
||||
void setup_chromeos_gpios(void);
|
||||
|
|
|
@ -151,17 +151,17 @@ void mainboard_power_on_backlight(void)
|
|||
{
|
||||
switch (board_id()) {
|
||||
case 0:
|
||||
gpio_output(GPIO_BACKLIGHT, 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
||||
break;
|
||||
default:
|
||||
gpio_output(GPIO(2, B, 4), 1); /* BL_PWR_EN */
|
||||
mdelay(20);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* LCD_BL */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO(7, A, 2), 1); /* BL_EN */
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <boardid.h>
|
||||
#include <gpio.h>
|
||||
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 0)
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 2)
|
||||
#define GPIO_RESET (board_id() > 0 ? GPIO(0, B, 5) : GPIO(0, B, 2))
|
||||
|
||||
void setup_chromeos_gpios(void);
|
||||
|
|
|
@ -197,17 +197,17 @@ void mainboard_power_on_backlight(void)
|
|||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
gpio_output(GPIO_BACKLIGHT, 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
||||
break;
|
||||
default:
|
||||
gpio_output(GPIO(2, B, 4), 1); /* BL_PWR_EN */
|
||||
mdelay(20);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* LCD_BL */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO(7, A, 2), 1); /* BL_EN */
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <boardid.h>
|
||||
#include <gpio.h>
|
||||
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 0)
|
||||
#define GPIO_BACKLIGHT GPIO(7, A, 2)
|
||||
#define GPIO_RESET GPIO(0, B, 5)
|
||||
|
||||
void setup_chromeos_gpios(void);
|
||||
|
|
|
@ -151,17 +151,17 @@ void mainboard_power_on_backlight(void)
|
|||
{
|
||||
switch (board_id()) {
|
||||
case 0:
|
||||
gpio_output(GPIO_BACKLIGHT, 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
||||
break;
|
||||
default:
|
||||
gpio_output(GPIO(2, B, 4), 1); /* BL_PWR_EN */
|
||||
mdelay(20);
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* LCD_BL */
|
||||
gpio_output(GPIO(7, A, 0), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO(7, A, 2), 1); /* BL_EN */
|
||||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue