summaryrefslogtreecommitdiff
path: root/board/coachz
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-09-14 17:04:40 -0700
committerCommit Bot <commit-bot@chromium.org>2020-09-17 01:47:11 +0000
commitd4829c42658a23c380eeacf218f26d6765bbad53 (patch)
tree964520420f9a0d08a9cdbc5d7007e475ac6c3b42 /board/coachz
parentf5015952e627fc7f40d5258065b17fbe1834f956 (diff)
downloadchrome-ec-d4829c42658a23c380eeacf218f26d6765bbad53.tar.gz
Coachz: Remove the keyboard backlight support
Coachz doesn't has an internal keyboard. Move the CONFIG from baseboard to board, as the keyboard backlight is not a common feature. BRANCH=None BUG=b:167884598 TEST=Built the Coachz image. Change-Id: Idd5937da9ad6a3ab1be277e537bbd2e70e2b1d9a Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2410855 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'board/coachz')
-rw-r--r--board/coachz/board.c1
-rw-r--r--board/coachz/board.h3
-rw-r--r--board/coachz/gpio.inc2
3 files changed, 1 insertions, 5 deletions
diff --git a/board/coachz/board.c b/board/coachz/board.c
index 70ad1f0de8..ea6f9e9c59 100644
--- a/board/coachz/board.c
+++ b/board/coachz/board.c
@@ -139,7 +139,6 @@ const struct adc_t adc_channels[] = {
BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
const struct pwm_t pwm_channels[] = {
- [PWM_CH_KBLIGHT] = { .channel = 3, .flags = 0, .freq = 10000 },
/* TODO(waihong): Assign a proper frequency. */
[PWM_CH_DISPLIGHT] = { .channel = 5, .flags = 0, .freq = 4800 },
};
diff --git a/board/coachz/board.h b/board/coachz/board.h
index 5749d68bd7..c8a2b0f4cf 100644
--- a/board/coachz/board.h
+++ b/board/coachz/board.h
@@ -71,8 +71,7 @@ enum sensor_id {
};
enum pwm_channel {
- PWM_CH_KBLIGHT = 0,
- PWM_CH_DISPLIGHT,
+ PWM_CH_DISPLIGHT = 0,
PWM_CH_COUNT
};
diff --git a/board/coachz/gpio.inc b/board/coachz/gpio.inc
index c8470c143d..0a6bb1bf02 100644
--- a/board/coachz/gpio.inc
+++ b/board/coachz/gpio.inc
@@ -94,7 +94,6 @@ GPIO(EC_CHG_LED_Y_C1, PIN(C, 3), GPIO_OUT_LOW)
GPIO(EC_CHG_LED_B_C1, PIN(C, 4), GPIO_OUT_LOW)
/* PWM */
-GPIO(KB_BL_PWM, PIN(8, 0), GPIO_INPUT) /* PWM3 */
GPIO(EDP_BKLTCTL, PIN(B, 7), GPIO_INPUT) /* PWM5 */
/* ADC */
@@ -139,7 +138,6 @@ ALTERNATE(PIN_MASK(B, 0x0C), 1, MODULE_I2C, GPIO_SEL_1P8V) /* I2C7 (GPIOB2/B3) -
ALTERNATE(PIN_MASK(4, 0x1C), 0, MODULE_ADC, 0) /* ADC1 (GPIO44), ADC2 (GPIO43), ADC3 (GPIO42) */
ALTERNATE(PIN_MASK(4, 0xC0), 1, MODULE_SPI, GPIO_SEL_1P8V) /* SHI_SDO (GPIO47), SHI_SDI (GPIO46) */
ALTERNATE(PIN_MASK(5, 0x28), 1, MODULE_SPI, GPIO_SEL_1P8V) /* SHI_SCLK (GPIO55), SHI_CS# (GPIO53) */
-ALTERNATE(PIN_MASK(8, 0x01), 0, MODULE_PWM, 0) /* PWM3 (GPIO80) - KB_BL_PWM */
ALTERNATE(PIN_MASK(B, 0x80), 1, MODULE_PWM, 0) /* PWM5 (GPIOB7) - EDP_BKLTCTL */
ALTERNATE(PIN_MASK(D, 0x04), 1, MODULE_PMU, 0) /* PSL_IN1 (GPIOD2) - LID_OPEN_EC */
ALTERNATE(PIN_MASK(0, 0x01), 1, MODULE_PMU, 0) /* PSL_IN2 (GPIO00) - ACOK_OD */