Arthur Heymans (arthur(a)aheymans.xyz) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18250
-gerrit
commit f49809fb14b197e57eafcf0d2a2b7d28213bc384
Author: Nico Huber <nico.h(a)gmx.de>
Date: Fri Jan 27 15:55:28 2017 +0100
WIP Documentation/backlight-pwm: Gather backlight PWM infos
Change-Id: I3a3456cee8ed053db13b4b9d2d3f5a8fc04bb7ff
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
Documentation/backlight-pwm.md | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/Documentation/backlight-pwm.md b/Documentation/backlight-pwm.md
new file mode 100644
index 0000000..fbb1b2a
--- /dev/null
+++ b/Documentation/backlight-pwm.md
@@ -0,0 +1,27 @@
+# PWM frequencies for display backlights
+
+## Values found in use by vendors
+
+* `Lenovo Thinkpad T60`: 0x58be/275Hz (@200MHz CDClk)
+
+* `Lenovo ThinkPad X60`: 0x879e/180Hz (@200MHz CDClk)
+
+* `Lenovo ThinkPad X200s`: 0x0cf8/753Hz (@320MHz CDClk)
+ LED backlight, panel:
+ Manufacturer: LEN Model 4014 Serial Number 0
+ ASCII string: LTD121EQ3B
+
+* `Lenovo ThinkPad X301`: 0x24fc/264Hz (@320MHz CDClk)
+ LED backlight, panel:
+ Manufacturer: LEN Model 4074 Serial Number 0
+ ASCII string: LTD133EQ1B
+
+## Often copy-pasted constants
+
+* `0x0610 for gm45`: First seen in commit 6481e10
+ "gma45: Ensure that brightness register in gma contains a sane vaule"
+ Depending on the CDClk frequency (222MHz .. 333MHz) 1.12kHz .. 1.61kHz
+
+* `0x0128 for i945`: First seen for lenovo/x60 in commit 26ca08c
+ "i945: Replace video gfx init."
+ With a CDClk of 200MHz it gives a 21.1kHz PWM.
Gwendal Grignou (gwendal(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18173
-gerrit
commit 738d1f9998c755f004c0ccfd0fbb1e37ca610a28
Author: Gwendal Grignou <gwendal(a)chromium.org>
Date: Thu Jan 19 18:30:21 2017 -0800
ec/google/chromeec: Add support for tablet mode switch driver
Add a new driver GOOG0006 to report tablet switch
to user space.
On glados based convertible, check that with a new kernel driver
(cros_ec_tbmc) that evtest collects tablet switch changes.
Change-Id: I6821eaac1feb6c182bc973aaa2f747e687715afb
Signed-off-by: Gwendal Grignou <gwendal(a)chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/430951
Reviewed-by: Duncan Laurie <dlaurie(a)google.com>
---
src/ec/google/chromeec/acpi/ec.asl | 7 +++++++
src/ec/google/chromeec/acpi/tbmc.asl | 29 +++++++++++++++++++++++++++++
2 files changed, 36 insertions(+)
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index b182766..a40d0ac 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -322,6 +322,7 @@ Device (EC0)
Notify (CREC, 0x80)
}
+#ifdef EC_ENABLE_TABLET_EVENT
// TABLET mode switch Event
Method (_Q1D, 0, NotSerialized)
{
@@ -329,7 +330,9 @@ Device (EC0)
If (CondRefOf (\_SB.DPTF.TPET)) {
\_SB.DPTF.TPET()
}
+ Notify (TBMC, 0x80)
}
+#endif
/*
* Dynamic Platform Thermal Framework support
@@ -478,4 +481,8 @@ Device (EC0)
#ifdef EC_ENABLE_PD_MCU_DEVICE
#include "pd.asl"
#endif
+
+#ifdef EC_ENABLE_TABLET_EVENT
+ #include "tbmc.asl"
+#endif
}
diff --git a/src/ec/google/chromeec/acpi/tbmc.asl b/src/ec/google/chromeec/acpi/tbmc.asl
new file mode 100644
index 0000000..25a27ef1b
--- /dev/null
+++ b/src/ec/google/chromeec/acpi/tbmc.asl
@@ -0,0 +1,29 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2017 Google Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+Device (TBMC)
+{
+ Name (_HID, "GOOG0006")
+ Name (_UID, 1)
+ Name (_DDN, "Tablet Motion Control")
+ Method (TBMC)
+ {
+ If (LEqual (^^RCTM, One)) {
+ Return (0x1)
+ } Else {
+ Return (0x0)
+ }
+ }
+}
the following patch was just integrated into master:
commit fc18507134bfe2cb9add3f1196832318cd8adcdc
Author: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Date: Thu Dec 22 20:25:29 2016 -0500
payloads/depthcharge: Allow generic libpayload config
Change depthcharge to not require a board-specific config file for
libpayload. If the Kconfig option is selected, use the settings
in libpayload/configs/defconfig instead.
Change-Id: I4fd1a5915472f28e757c62f3f2415716f1fdfc71
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Reviewed-on: https://review.coreboot.org/18271
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth(a)google.com>
See https://review.coreboot.org/18271 for details.
-gerrit
the following patch was just integrated into master:
commit 9be3f5dab46dd6997dc98203022b60241cf3d1c8
Author: Matt DeVillier <matt.devillier(a)gmail.com>
Date: Mon Jan 16 17:32:38 2017 -0600
Add Baytrail ChromeOS devices using variant scheme
Add new ChromeOS devices banjo, candy, clapper, glimmer, gnawty,
heli, kip, orco, quawks, squawks, sumo, swanky, and winky using
their common reference board (rambi) as a base.
Chromium sources used:
firmware-banjo-5216.334.B 32ec493 [chromeos: vboot_loader: Set...]
firmware-candy-5216.310.B 519ff11 [baytrail: Preserve VbNv around...]
firmware-clapper-5216.199.B 80d55e3 [baytrail: add code for...]
firmware-glimmer-5216.198.B fae0770 [baytrail: add code for...]
firmware-gnawty-5216.239.B 952adb7 [Gnawty/Olay: Add 2nd source...]
firmware-heli-5216.392.B f1f3604 [helis: Lock ME / TXE section...]
firmware-kip-5216.227.B db3c5d9 [kip: update spd for for MT41K256M16*]
firmware-orco-5216.362.B 76f1651 [Orco: Adjust rx delay for norm.]
firmware-quawks-5216.204.B edb60c9 [Quawks: Update SPD data]
firmware-squawks-5216.152.B c6573dc [Squawks: Update SPD data]
firmware-sumo-5216.382.B c62b6f23 [Ninja, Sumo: Add SPD source...]
firmware-swanky-5216.238.B 233b2a7 [Swanky: update SPD table]
firmware-winky-5216.265.B ce91ffc [Add to support HT Micron...]
The same basic cleanup/changes are made here as with the initial BYT
variant commit:
- remove unused ACPI trackpad/touchscreen devices
- correct I2C addresses in SMBIOS entries
- clean up comment formatting
- remove ACPI device for unused light sensor
- switch I2C ACPI devices from edge to level triggered interrupts,
for better compatibility/functionality (and to be consistent
with other recently-upstreamed ChromeOS devices)
- Micron 2GB SPD file for kip with updated values renamed to distinguish
from same file used by other boards
Change-Id: Ic66f9b539afb5aff32c4c1a8563f6612f5a2927c
Signed-off-by: Matt DeVillier <matt.devillier(a)gmail.com>
Reviewed-on: https://review.coreboot.org/18164
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth(a)google.com>
See https://review.coreboot.org/18164 for details.
-gerrit
Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18271
-gerrit
commit f06f98f7a1d89ef849714701d86d062e3d8d4ac6
Author: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Date: Thu Dec 22 20:25:29 2016 -0500
payloads/depthcharge: Allow generic libpayload config
Change depthcharge to not require a board-specific config file for
libpayload. If the Kconfig option is selected, use the settings
in libpayload/configs/defconfig instead.
Change-Id: I4fd1a5915472f28e757c62f3f2415716f1fdfc71
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
payloads/external/Makefile.inc | 3 ++-
payloads/external/depthcharge/Kconfig | 8 ++++++++
payloads/external/depthcharge/Makefile | 13 ++++++++++---
3 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc
index d159da9..1c0d38c 100644
--- a/payloads/external/Makefile.inc
+++ b/payloads/external/Makefile.inc
@@ -109,7 +109,8 @@ payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(D
DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \
DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \
DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \
- DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID)
+ DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID) \
+ OVERRIDE_DEFCONFIG=$(CONFIG_LP_DEFCONFIG_OVERRIDE)
# FILO
diff --git a/payloads/external/depthcharge/Kconfig b/payloads/external/depthcharge/Kconfig
index d6ce538..a913c7e 100644
--- a/payloads/external/depthcharge/Kconfig
+++ b/payloads/external/depthcharge/Kconfig
@@ -35,4 +35,12 @@ config PAYLOAD_FILE
string
default "payloads/external/depthcharge/depthcharge/build/depthcharge.elf"
+config LP_DEFCONFIG_OVERRIDE
+ def_bool n
+ help
+ The Depthcharge makefile looks for a file config.<boardname> in the
+ libpayload/configs directory. Say Y here to use the file defconfig
+ instead. This is can be a convenience for development purposes, or
+ if the defaults in defconfig are sufficient for your system.
+
endif
diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile
index 97d0950..f249a4a 100644
--- a/payloads/external/depthcharge/Makefile
+++ b/payloads/external/depthcharge/Makefile
@@ -30,6 +30,13 @@ unexport src srck obj objk
BOARD:=$(notdir $(CONFIG_MAINBOARD_DIR))
+ifeq ($(OVERRIDE_DEFCONFIG),y)
+$(info Depthcharge: Using default defconfig for libpayload)
+libpayload_config=$(libpayload_dir)/configs/defconfig
+else
+libpayload_config=$(libpayload_dir)/configs/config.$(BOARD)
+endif
+
all: build
$(project_dir):
@@ -47,10 +54,10 @@ checkout: fetch
cd $(project_dir) ; git checkout master; git branch -D coreboot 2>/dev/null; git checkout -b coreboot $(TAG-y)
$(libpayload_install_dir): $(project_dir)
- test -f $(libpayload_dir)/configs/config.$(BOARD) || \
- (echo "Error: $(libpayload_dir)/configs/config.$(BOARD) is not present" && \
+ test -f $(libpayload_config)|| \
+ (echo "Error: $(libpayload_config) is not present" && \
false)
- cp $(libpayload_dir)/configs/config.$(BOARD) $(libpayload_dir)/.config
+ cp $(libpayload_config) $(libpayload_dir)/.config
$(MAKE) -C $(libpayload_dir) olddefconfig
$(MAKE) -C $(libpayload_dir)
$(MAKE) -C $(libpayload_dir) install DESTDIR=$(libpayload_install_dir)
the following patch was just integrated into master:
commit f9973b5c2bf9ec09c72579e152a2aefee3b6dd85
Author: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Date: Thu Dec 22 18:16:48 2016 -0500
payloads/depthcharge: Specify revision to build
Add the capability for specifying which version of depthcharge to
checkout and build. This is similar to the existing feature for
SeaBIOS.
The depthcharge makefile already contains some structure for checking
out master vs. stable however the calling Makefile.inc ingored this
feature. Add the command-line variable assignment for these, along
with a tree-ish for any revision.
Change-Id: I99a5b088cb0ebb29e5d96a84217b3bfa852de8ac
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Reviewed-on: https://review.coreboot.org/18270
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth(a)google.com>
See https://review.coreboot.org/18270 for details.
-gerrit