Nami: trigger type of LCD backlight

Modify for low active design.

BUG=b:71839295
BRANCH=none
TEST=Verify Nami LCD backlight turn on.

Change-Id: I26f1e744921da5fa62f5f561fd6d16a76f2c5f4e
Signed-off-by: Elmo_Lan <elmo_lan@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/861583
Commit-Ready: Elmo Lan <elmo_lan@compal.corp-partner.google.com>
Tested-by: Elmo Lan <elmo_lan@compal.corp-partner.google.com>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Elmo_Lan
2018-01-19 05:09:54 -05:00
committed by chrome-bot
parent 8944d0824a
commit e68469b524
3 changed files with 4 additions and 3 deletions

View File

@@ -645,13 +645,13 @@ void lid_angle_peripheral_enable(int enable)
/* Called on AP S3 -> S0 transition */
static void board_chipset_resume(void)
{
gpio_set_level(GPIO_ENABLE_BACKLIGHT, 1);
gpio_set_level(GPIO_ENABLE_BACKLIGHT_L, 0);
}
DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT);
/* Called on AP S0 -> S3 transition */
static void board_chipset_suspend(void)
{
gpio_set_level(GPIO_ENABLE_BACKLIGHT, 0);
gpio_set_level(GPIO_ENABLE_BACKLIGHT_L, 1);
}
DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT);

View File

@@ -17,6 +17,7 @@
/* EC */
#define CONFIG_ADC
#define CONFIG_BACKLIGHT_LID
#define CONFIG_BACKLIGHT_LID_ACTIVE_LOW
#define CONFIG_BOARD_VERSION
#define CONFIG_BOARD_SPECIFIC_VERSION
#define CONFIG_CASE_CLOSED_DEBUG_EXTERNAL

View File

@@ -40,7 +40,7 @@ GPIO_INT(ACCELGYRO3_INT_L, PIN(3, 6), GPIO_INT_FALLING | GPIO_SEL_1P8V, bmi160_i
/* GPIO_INT(3AXIS_INT, PIN(9, 5),,) dnojiri: Revisit */
/* GPIO_INT(TABLET_MODE_L, PIN(7, 2), GPIO_INT_BOTH, tablet_mode_interrupt) dnojiri: Revisit */
GPIO(ENABLE_BACKLIGHT, PIN(6, 7), GPIO_OUT_LOW) /* LCD backlight */
GPIO(ENABLE_BACKLIGHT_L, PIN(6, 7), GPIO_OUT_LOW) /* LCD backlight */
GPIO(PP3300_DX_WLAN, PIN(B, 1), GPIO_OUT_LOW) /* Enable WLAN 3.3V Power */
GPIO(CPU_PROCHOT, PIN(8, 1), GPIO_OUT_HIGH) /* PROCHOT# to SOC */
GPIO(PCH_ACPRESENT, PIN(5, 0), GPIO_ODR_LOW) /* ACOK to SOC */