google/oak: Config PANEL_LCD_POWER_EN for rev5
BRANCH=none BUG=none TEST=emerge-oak coreboot Change-Id: Ic2019a1d61cbc5949c1f42346b279ef05f725dfb Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: bf13606f01438bc2ea27ecccc6359a7320dc34cc Original-Change-Id: I3fcc403cb7a3429b9673be0e727fc7d8c9d4f556 Original-Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Original-Reviewed-on: https://chromium-review.googlesource.com/320027 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/13971 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
22d94ba8a2
commit
0443ecc5b2
|
@ -144,28 +144,24 @@ static void configure_usb(void)
|
|||
/* Setup backlight control pins as output pin and power-off by default */
|
||||
static void configure_backlight(void)
|
||||
{
|
||||
/* Configure PANEL_LCD_POWER_EN */
|
||||
switch (board_id()) {
|
||||
case 0:
|
||||
gpio_output(PAD_DISP_PWM0, 0); /* DISP_PWM0 */
|
||||
mt6391_gpio_output(MT6391_KP_ROW3, 0); /* PANEL_POWER_EN_6397 */
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
gpio_output(PAD_DISP_PWM0, 0); /* DISP_PWM0 */
|
||||
gpio_output(PAD_PCM_TX, 0); /* PANEL_POWER_EN */
|
||||
break;
|
||||
case 3:
|
||||
gpio_output(PAD_UCTS2, 0); /* PANEL_LCD_POWER_EN */
|
||||
gpio_output(PAD_DISP_PWM0, 0); /* DISP_PWM0 */
|
||||
gpio_output(PAD_PCM_TX, 0); /* PANEL_POWER_EN */
|
||||
gpio_output(PAD_UCTS2, 0);
|
||||
break;
|
||||
case 4:
|
||||
gpio_output(PAD_SRCLKENAI, 0);
|
||||
break;
|
||||
default:
|
||||
gpio_output(PAD_SRCLKENAI, 0); /* PANEL_LCD_POWER_EN */
|
||||
gpio_output(PAD_DISP_PWM0, 0); /* DISP_PWM0 */
|
||||
gpio_output(PAD_PCM_TX, 0); /* PANEL_POWER_EN */
|
||||
gpio_output(PAD_UTXD2, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
gpio_output(PAD_DISP_PWM0, 0); /* DISP_PWM0 */
|
||||
gpio_output(PAD_PCM_TX, 0); /* PANEL_POWER_EN */
|
||||
}
|
||||
|
||||
static void mainboard_init(device_t dev)
|
||||
|
|
Loading…
Reference in New Issue