diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/bip/board.h | 4 | ||||
-rw-r--r-- | board/bip/gpio.inc | 3 | ||||
-rw-r--r-- | board/yorp/board.h | 5 | ||||
-rw-r--r-- | board/yorp/gpio.inc | 5 |
4 files changed, 16 insertions, 1 deletions
diff --git a/board/bip/board.h b/board/bip/board.h index 6db1145b3a..cf033b26bd 100644 --- a/board/bip/board.h +++ b/board/bip/board.h @@ -16,6 +16,10 @@ /* Optional features */ #define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */ +/* Hardware for proto bip does not support ec keyboard backlight control. */ +#undef CONFIG_PWM +#undef CONFIG_PWM_KBLIGHT + #ifndef __ASSEMBLER__ #include "gpio_signal.h" diff --git a/board/bip/gpio.inc b/board/bip/gpio.inc index 7e66e23afc..9b984eb480 100644 --- a/board/bip/gpio.inc +++ b/board/bip/gpio.inc @@ -97,6 +97,9 @@ GPIO(USB_C1_BC12_VBUS_ON, PIN(J, 5), GPIO_OUT_LOW) /* C1 BC1.2 Power */ GPIO(USB_C1_PD_RST_ODL, PIN(L, 7), GPIO_ODR_HIGH) /* C1 PD Reset */ GPIO(USB2_OTG_ID, PIN(I, 2), GPIO_OUT_LOW) /* OTG ID */ +/* Not implemented in hardware yet */ +UNIMPLEMENTED(KB_BL_PWR_EN) + /* Alternate functions GPIO definitions */ /* Cr50 requires no pull-ups on UART pins. */ ALTERNATE(PIN_MASK(B, 0x03), 0, MODULE_UART, 0) /* UART from EC to Servo */ diff --git a/board/yorp/board.h b/board/yorp/board.h index 9cd7e65909..aef8b4a111 100644 --- a/board/yorp/board.h +++ b/board/yorp/board.h @@ -66,6 +66,11 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; +enum pwm_channel { + PWM_CH_KBLIGHT, + PWM_CH_COUNT +}; + /* Motion sensors */ enum sensor_id { LID_ACCEL, diff --git a/board/yorp/gpio.inc b/board/yorp/gpio.inc index 8ce745de0b..4a00805cad 100644 --- a/board/yorp/gpio.inc +++ b/board/yorp/gpio.inc @@ -103,7 +103,6 @@ GPIO(EN_USB_A_5V, PIN(6, 7), GPIO_OUT_LOW) /* Enable A0/A1 5V Charging */ GPIO(USB2_OTG_ID, PIN(A, 0), GPIO_OUT_LOW) /* OTG ID */ GPIO(USB_A_CHARGE_EN_L, PIN(A, 2), GPIO_OUT_HIGH) /* Enable A0/A1 1.5A Charging */ /* TODO(b/74254366): Break out A1 signals once they are there in HW */ -/* USB_C0_PD_RST_L isn't connected to PIN(6,2) since ANX TCPC doesn't have reset */ GPIO(USB_C0_BC12_VBUS_ON, PIN(6, 3), GPIO_OUT_LOW) /* C0 BC1.2 Power */ GPIO(USB_C0_BC12_CHG_DET_L, PIN(9, 5), GPIO_INPUT) /* C0 BC1.2 Detect */ GPIO(USB_C0_HPD_1V8_ODL, PIN(C, 5), GPIO_INPUT | /* C0 DP Hotplug Detect */ @@ -120,6 +119,9 @@ GPIO(USB_C1_HPD_1V8_ODL, PIN(C, 6), GPIO_INPUT | /* C1 DP Hotplug Detect */ GPIO(BAT_LED_ORANGE_L, PIN(C, 3), GPIO_OUT_HIGH) /* LED_1_L */ GPIO(BAT_LED_BLUE_L, PIN(C, 4), GPIO_OUT_HIGH) /* LED_2_L */ +/* Keyboard Backlight */ +GPIO(KB_BL_PWR_EN, PIN(6, 2), GPIO_OUT_LOW) + /* Keyboard pins */ ALTERNATE(PIN_MASK(3, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_00-01 */ ALTERNATE(PIN_MASK(2, 0xFC), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_02-07 */ @@ -140,3 +142,4 @@ ALTERNATE(PIN_MASK(B, 0x0C), 0, MODULE_I2C, 0) /* I2C7 */ ALTERNATE(PIN_MASK(4, 0x30), 0, MODULE_ADC, 0) /* ADC0-1 */ ALTERNATE(PIN_MASK(4, 0x02), 0, MODULE_ADC, 0) /* ADC4: ADC_USB_C0_VBUS */ ALTERNATE(PIN_MASK(F, 0x01), 0, MODULE_ADC, 0) /* ADC9: ADC_USB_C1_VBUS */ +ALTERNATE(PIN_MASK(8, 0x01), 0, MODULE_PWM, 0) /* PWM3: KB_BL_PWM */ |