mb/google/brya/var/banshee: Add mic mute switch setting
Using the GPP_F22 as mic mute switch based on the latest schematic. BUG=b:223737606, b:216110896 BRANCH=firmware-brya-14505.B TEST=emerge-brya coreboot chromeos-bootimage The mic_mute event is changed when the mic_mute GPIO pin is switched. Event: time 1647939954.639995, type 5 (EV_SW), code 14 (SW_MUTE_DEVICE), value 0 Event: time 1647939954.639995, -------------- SYN_REPORT ------------ Event: time 1647939954.648152, type 5 (EV_SW), code 14 (SW_MUTE_DEVICE), value 1 Event: time 1647939954.648152, -------------- SYN_REPORT ------------ Signed-off-by: Frank Wu <frank_wu@compal.corp-partner.google.com> Change-Id: I6f7176afbd64f7c080f02369f195043a2df88e5d Reviewed-on: https://review.coreboot.org/c/coreboot/+/62804 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
parent
b0769db48f
commit
599a12b450
|
@ -174,6 +174,7 @@ config BOARD_GOOGLE_BANSHEE
|
||||||
select BOARD_GOOGLE_BASEBOARD_BRYA
|
select BOARD_GOOGLE_BASEBOARD_BRYA
|
||||||
select MEMORY_SODIMM
|
select MEMORY_SODIMM
|
||||||
select CHROMEOS_WIFI_SAR if CHROMEOS
|
select CHROMEOS_WIFI_SAR if CHROMEOS
|
||||||
|
select DRIVERS_GENERIC_GPIO_KEYS
|
||||||
|
|
||||||
config BOARD_GOOGLE_CROTA
|
config BOARD_GOOGLE_CROTA
|
||||||
bool "-> Crota"
|
bool "-> Crota"
|
||||||
|
|
|
@ -186,7 +186,8 @@ static const struct pad_config override_gpio_table[] = {
|
||||||
PAD_NC(GPP_F20, NONE),
|
PAD_NC(GPP_F20, NONE),
|
||||||
/* F21 : EXT_PWR_GATE2# ==> NC */
|
/* F21 : EXT_PWR_GATE2# ==> NC */
|
||||||
PAD_NC(GPP_F21, NONE),
|
PAD_NC(GPP_F21, NONE),
|
||||||
/* F22 : NC */
|
/* F22 : NC ==> MIC_SW */
|
||||||
|
PAD_CFG_GPI_GPIO_DRIVER(GPP_F22, NONE, DEEP),
|
||||||
/* F23 : NC */
|
/* F23 : NC */
|
||||||
|
|
||||||
/* H0 : GPPH0_BOOT_STRAP1 */
|
/* H0 : GPPH0_BOOT_STRAP1 */
|
||||||
|
|
|
@ -196,6 +196,17 @@ chip soc/intel/alderlake
|
||||||
register "property_list[0].integer" = "1"
|
register "property_list[0].integer" = "1"
|
||||||
device i2c 1a on end
|
device i2c 1a on end
|
||||||
end
|
end
|
||||||
|
chip drivers/generic/gpio_keys
|
||||||
|
register "name" = ""MUTE""
|
||||||
|
register "label" = ""mic_mute_switch""
|
||||||
|
register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_HIGH(GPP_F22)"
|
||||||
|
register "key.wakeup_route" = "WAKEUP_ROUTE_DISABLED"
|
||||||
|
register "key.dev_name" = ""MMSW""
|
||||||
|
register "key.linux_code" = "SW_MUTE_DEVICE"
|
||||||
|
register "key.linux_input_type" = "EV_SW"
|
||||||
|
register "key.label" = ""mic_mute_switch_key""
|
||||||
|
device generic 0 on end
|
||||||
|
end
|
||||||
end #I2C0
|
end #I2C0
|
||||||
device ref i2c1 on
|
device ref i2c1 on
|
||||||
chip drivers/i2c/tpm
|
chip drivers/i2c/tpm
|
||||||
|
|
Loading…
Reference in New Issue