Ben Zhang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/54332 )
Change subject: drivers/gpio_keys: Add label and SW_MUTE_DEVICE
......................................................................
drivers/gpio_keys: Add label and SW_MUTE_DEVICE
Added the label field to the gpio_keys DSD so that
the kernel driver can use a meaningful name instead
of the generic _HID PRP0001.
Added SW_MUTE_DEVICE event type for mic mute switch.
BUG=b:184593945
TEST=build image and verify with evtest on puff:
/dev/input/event3: mic_mute_switch
UI event_device_info receives the proper name.
Change-Id: I0377851b9cf23bab31930aed6e7de91b4ac3505b
Signed-off-by: Ben Zhang <benzh(a)google.com>
---
M src/drivers/generic/gpio_keys/chip.h
M src/drivers/generic/gpio_keys/gpio_keys.c
2 files changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/54332/1
diff --git a/src/drivers/generic/gpio_keys/chip.h b/src/drivers/generic/gpio_keys/chip.h
index a2ff59d..88dfe2e 100644
--- a/src/drivers/generic/gpio_keys/chip.h
+++ b/src/drivers/generic/gpio_keys/chip.h
@@ -14,6 +14,7 @@
/* Switch events type (Linux code emitted for EV_SW) */
enum {
+ SW_MUTE_DEVICE = 0xe,
SW_PEN_INSERTED = 0xf,
};
@@ -74,6 +75,8 @@
struct drivers_generic_gpio_keys_config {
/* Device name of the parent gpio-keys node */
const char *name;
+ /* Name of the input device - Optional */
+ const char *label;
/* GPIO line providing the key - Mandatory */
struct acpi_gpio gpio;
/* Is this a polled GPIO button? - Optional */
diff --git a/src/drivers/generic/gpio_keys/gpio_keys.c b/src/drivers/generic/gpio_keys/gpio_keys.c
index 3d273a0..75ce09f 100644
--- a/src/drivers/generic/gpio_keys/gpio_keys.c
+++ b/src/drivers/generic/gpio_keys/gpio_keys.c
@@ -76,6 +76,8 @@
/* DSD */
dsd = acpi_dp_new_table("_DSD");
acpi_dp_add_string(dsd, "compatible", drv_string);
+ if (config->label)
+ acpi_dp_add_string(dsd, "label", config->label);
if (config->is_polled)
acpi_dp_add_integer(dsd, "poll-interval",
config->poll_interval);
--
To view, visit https://review.coreboot.org/c/coreboot/+/54332
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0377851b9cf23bab31930aed6e7de91b4ac3505b
Gerrit-Change-Number: 54332
Gerrit-PatchSet: 1
Gerrit-Owner: Ben Zhang <benzh(a)google.com>
Gerrit-MessageType: newchange
Attention is currently required from: Nico Huber, Paul Menzel, Angel Pons, Arthur Heymans, Kyösti Mälkki, Patrick Rudolph.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54329 )
Change subject: sb/intel: Drop outdated SMBus I/O BAR comment
......................................................................
Patch Set 2:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/54329/comment/97c1d34e_67385e17
PS1, Line 7: sb/intel
> Nit: Missing colon after prefix.
Done
https://review.coreboot.org/c/coreboot/+/54329/comment/5f7fc880_54a653eb
PS1, Line 9: The SMBus I/O bar is not relocated because it's reported to the
: allocator as a fixed resource.
> If you investigated since when, it’d be great, if you mentioned the commit. If not, also fine.
I didn't, and I don't think it matters.
--
To view, visit https://review.coreboot.org/c/coreboot/+/54329
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0149764fd231b3a4e56a5a9b7f4ae61f7954cf7a
Gerrit-Change-Number: 54329
Gerrit-PatchSet: 2
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Sun, 16 May 2021 11:40:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Angel Pons, Arthur Heymans, Kyösti Mälkki, Patrick Rudolph.
Hello Nico Huber, Paul Menzel, Arthur Heymans, Kyösti Mälkki, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/54329
to look at the new patch set (#2).
Change subject: sb/intel: Drop outdated SMBus I/O BAR comment
......................................................................
sb/intel: Drop outdated SMBus I/O BAR comment
The SMBus I/O bar is not relocated because it's reported to the
allocator as a fixed resource. Drop these out-of-date comments.
Change-Id: I0149764fd231b3a4e56a5a9b7f4ae61f7954cf7a
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/southbridge/intel/bd82x6x/pch.h
M src/southbridge/intel/i82801gx/i82801gx.h
M src/southbridge/intel/ibexpeak/pch.h
M src/southbridge/intel/lynxpoint/pch.h
4 files changed, 0 insertions(+), 32 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/54329/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/54329
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0149764fd231b3a4e56a5a9b7f4ae61f7954cf7a
Gerrit-Change-Number: 54329
Gerrit-PatchSet: 2
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Nico Huber, Angel Pons, Arthur Heymans, Kyösti Mälkki, Patrick Rudolph.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54329 )
Change subject: sb/intel Drop outdated SMBus I/O BAR comment
......................................................................
Patch Set 1: Code-Review+1
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/54329/comment/dca8d9f6_443995ca
PS1, Line 7: sb/intel
Nit: Missing colon after prefix.
https://review.coreboot.org/c/coreboot/+/54329/comment/f581dd06_0a9a03cd
PS1, Line 9: The SMBus I/O bar is not relocated because it's reported to the
: allocator as a fixed resource.
If you investigated since when, it’d be great, if you mentioned the commit. If not, also fine.
--
To view, visit https://review.coreboot.org/c/coreboot/+/54329
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0149764fd231b3a4e56a5a9b7f4ae61f7954cf7a
Gerrit-Change-Number: 54329
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Sun, 16 May 2021 11:36:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Martin Roth, Arthur Heymans, Patrick Rudolph.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52489 )
Change subject: sb/intel/lynxpoint: Add SerialIO UART console support
......................................................................
Patch Set 9:
(1 comment)
File src/southbridge/intel/lynxpoint/uart_init.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-119368):
https://review.coreboot.org/c/coreboot/+/52489/comment/2baddcf1_01d0a313
PS9, Line 16: switch (CONFIG_UART_FOR_CONSOLE) {
switch and case should be at the same indent
--
To view, visit https://review.coreboot.org/c/coreboot/+/52489
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ifb3460dd50ed03421a38f03c80f91ae9fd604022
Gerrit-Change-Number: 52489
Gerrit-PatchSet: 9
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Sun, 16 May 2021 11:14:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment