summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorYidi Lin <yidi.lin@mediatek.com>2015-12-28 16:40:54 +0800
committerPatrick Georgi <pgeorgi@google.com>2016-03-12 09:08:09 +0100
commit0443ecc5b2816e9a45ecd3403b88dc02a09c0556 (patch)
tree4b99fa33e6c4a3cf009259d54583a5b528b1ca24 /src/mainboard/google
parent22d94ba8a2178b587660f75b221ec06dec776c34 (diff)
downloadcoreboot-0443ecc5b2816e9a45ecd3403b88dc02a09c0556.tar.xz
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>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/oak/mainboard.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/mainboard/google/oak/mainboard.c b/src/mainboard/google/oak/mainboard.c
index 1713c9bdf7..c330fac4a0 100644
--- a/src/mainboard/google/oak/mainboard.c
+++ b/src/mainboard/google/oak/mainboard.c
@@ -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)