diff options
author | Philip Chen <philipchen@google.com> | 2019-06-26 12:17:37 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-02 02:07:58 +0000 |
commit | cd551f358fb00379ff9b539a840b17a2c56e0b61 (patch) | |
tree | 54167253d58286ae197a624b7096bd70304acf3d /board | |
parent | a2454fb3674c948fa0eb78a305cfb184c3fade60 (diff) | |
download | chrome-ec-cd551f358fb00379ff9b539a840b17a2c56e0b61.tar.gz |
hatch/helios/kindred/kohaku: Enable EC-based display backlight control
This patch allows EC to override display backlight control for
hatch family.
Also enable CONFIG_BACKLIGHT_LID so that EC can specifically
turn off display backlight when the lid is closed.
BUG=b:135511415
BRANCH=none
TEST=On hatch rev1 board, turn off/on display backlight by
'ectool backlight 0' and 'ectool backlight 1'
TEST='emerge-hatch chromeos-ec'
Change-Id: I894ef2879fb584ccf84cd643cc4c0cd5fdcb8525
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1679047
Reviewed-by: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Commit-Queue: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/hatch/gpio.inc | 1 | ||||
-rw-r--r-- | board/helios/gpio.inc | 1 | ||||
-rw-r--r-- | board/kindred/gpio.inc | 1 | ||||
-rw-r--r-- | board/kohaku/gpio.inc | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/board/hatch/gpio.inc b/board/hatch/gpio.inc index 91ee333503..5b7d5b9d5f 100644 --- a/board/hatch/gpio.inc +++ b/board/hatch/gpio.inc @@ -73,6 +73,7 @@ GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* White (hatch) GPIO(LED_3_L, PIN(C, 2), GPIO_OUT_HIGH) GPIO(LED_4_L, PIN(6, 0), GPIO_OUT_HIGH) GPIO(EC_KB_BL_EN, PIN(8, 6), GPIO_OUT_LOW) /* Keyboard backlight */ +GPIO(EDP_BKLTEN_OD, PIN(D, 3), GPIO_ODR_HIGH) /* Display backlight */ GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_LOW) GPIO(EN_MST, PIN(9, 6), GPIO_OUT_LOW) diff --git a/board/helios/gpio.inc b/board/helios/gpio.inc index a3c37362fd..b188baf783 100644 --- a/board/helios/gpio.inc +++ b/board/helios/gpio.inc @@ -67,6 +67,7 @@ GPIO(LED_1_L, PIN(C, 4), GPIO_OUT_HIGH) /* Yellow (hatch GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* White (hatch) */ GPIO(LED_3_L, PIN(C, 2), GPIO_OUT_HIGH) GPIO(EC_KB_BL_EN, PIN(8, 6), GPIO_OUT_LOW) /* Keyboard backlight */ +GPIO(EDP_BKLTEN_OD, PIN(D, 3), GPIO_ODR_HIGH) /* Display backlight */ GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_LOW) /* I2C pins - Alternate function below configures I2C module on these pins */ diff --git a/board/kindred/gpio.inc b/board/kindred/gpio.inc index 63ac5a2271..cac7cde055 100644 --- a/board/kindred/gpio.inc +++ b/board/kindred/gpio.inc @@ -72,6 +72,7 @@ GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* White (hatch) GPIO(LED_3_L, PIN(C, 2), GPIO_OUT_HIGH) GPIO(LED_4_L, PIN(6, 0), GPIO_OUT_HIGH) GPIO(EC_KB_BL_EN, PIN(8, 6), GPIO_OUT_LOW) /* Keyboard backlight */ +GPIO(EDP_BKLTEN_OD, PIN(D, 3), GPIO_ODR_HIGH) /* Display backlight */ GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_LOW) GPIO(EN_MST, PIN(9, 6), GPIO_OUT_LOW) diff --git a/board/kohaku/gpio.inc b/board/kohaku/gpio.inc index 257a5c493e..6aada6f60f 100644 --- a/board/kohaku/gpio.inc +++ b/board/kohaku/gpio.inc @@ -73,6 +73,7 @@ GPIO(LED_1_L, PIN(C, 4), GPIO_OUT_HIGH) /* Yellow (hatch GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* White (hatch) */ GPIO(LED_3_L, PIN(C, 2), GPIO_OUT_HIGH) GPIO(EC_KB_BL_EN, PIN(8, 6), GPIO_OUT_LOW) /* Keyboard backlight */ +GPIO(EDP_BKLTEN_OD, PIN(D, 3), GPIO_ODR_HIGH) /* Display backlight */ GPIO(LID_ACCEL_INT_L, PIN(5, 0), GPIO_INPUT | /* Lid accelerometer */ GPIO_SEL_1P8V) @@ -114,7 +115,6 @@ GPIO(TP56, PIN(6, 1), GPIO_INPUT | GPIO_PULL_UP) GPIO(TP57, PIN(8, 1), GPIO_INPUT | GPIO_PULL_UP) GPIO(TP55, PIN(7, 3), GPIO_INPUT | GPIO_PULL_UP) GPIO(TP59, PIN(B, 0), GPIO_INPUT | GPIO_PULL_UP) -GPIO(TP64, PIN(D, 3), GPIO_INPUT | GPIO_PULL_UP) /* Keyboard pins */ #define GPIO_KB_INPUT (GPIO_INPUT | GPIO_PULL_UP) |