Nico Huber has uploaded a new patch set (#3). ( https://review.coreboot.org/20846 )
Change subject: [RFC] Reinvent I2C ops
......................................................................
[RFC] Reinvent I2C ops
Do not use the global platform_i2c_transfer() function that can only be
implemented by a single driver. Instead, make a `struct device` aware
transfer() function the only interface function for I2C controller dri-
vers to implement.
To not force the slave device drivers to be implemented either above
generic I2C or specialized SMBus operations, we support SMBus control-
lers in the slave device interface too.
We start with four simple slave functions: i2c_readb(), i2c_writeb(),
i2c_readb_at() and i2c_writeb_at(). They are all compatible to respec-
tive SMBus functions. But we keep aliases because it would be weird to
force e.g. an I2C EEPROM driver to call smbus_read_byte().
Change-Id: I98386f91bf4799ba3df84ec8bc0f64edd4142818
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
M src/device/Makefile.inc
M src/device/i2c.c
A src/device/i2c_bus.c
M src/include/device/i2c_bus.h
M src/include/device/i2c_simple.h
M src/soc/intel/common/block/i2c/i2c.c
M src/soc/intel/common/block/i2c/lpss_i2c.c
M src/soc/intel/common/block/i2c/lpss_i2c.h
8 files changed, 266 insertions(+), 108 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/20846/3
--
To view, visit https://review.coreboot.org/20846
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I98386f91bf4799ba3df84ec8bc0f64edd4142818
Gerrit-Change-Number: 20846
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Nico Huber has posted comments on this change. ( https://review.coreboot.org/20913 )
Change subject: mb/lenovo/x200: Add ACPI methods to set battery thresholds
......................................................................
Patch Set 4:
(1 comment)
> Why don't you use existing interface to make coreboot compatible
> with tpacpi-bat and thinkpad_acpi?
I think a diff of patch set 3 and 4 answers the question: Left-hand
side looks good, right-hand side looks like shit.
https://review.coreboot.org/#/c/20913/3/src/mainboard/lenovo/x200/acpi/bat_…
File src/mainboard/lenovo/x200/acpi/bat_thresh.asl:
https://review.coreboot.org/#/c/20913/3/src/mainboard/lenovo/x200/acpi/bat_…
PS3, Line 38: * =0: Use battery default setting
Why is there a space after `Store` but not after `Or`?
--
To view, visit https://review.coreboot.org/20913
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia049407cea7a60887ecba7b7c96e5000473865dd
Gerrit-Change-Number: 20913
Gerrit-PatchSet: 4
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Wed, 09 Aug 2017 10:28:55 +0000
Gerrit-HasComments: Yes
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/20913 )
Change subject: mb/lenovo/x200: Add ACPI methods to set battery thresholds
......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/#/c/20913/4/src/mainboard/lenovo/x200/acpi/bat_…
File src/mainboard/lenovo/x200/acpi/bat_thresh.asl:
https://review.coreboot.org/#/c/20913/4/src/mainboard/lenovo/x200/acpi/bat_…
PS4, Line 34: /* SetBatteryCharge Start/Stop Capacity Threshold
: * In Parameter:
: * DWORD
: * Bit 7-0: Charge stop capacity (Unit:%)
: * =0: Use battery default setting
: * =1-99: Threshold to stop charging battery (Relative capacity)
: * Bit 9-8:BatteryID
: * = 0: Any battery
: * = 1: Primary battery
: * = 2: Secondary battery
: * = Others: Reserved (0)
: * Bit 31-10: Reserved (0)
: * Must be Zero
: *
: * Out Parameter:
: * DWORD
: * Bit 30-0: Reserved (0)
: * Bit 31: Error status
: * 0 ... Success
: * 1 ... Fail
: */
These comments are taken from the tpacpi-bat (https://github.com/teleshoes/tpacpi-bat) project documentation which afaict is GPL3. IANAL so is this acceptable or does it need a rewrite?
--
To view, visit https://review.coreboot.org/20913
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia049407cea7a60887ecba7b7c96e5000473865dd
Gerrit-Change-Number: 20913
Gerrit-PatchSet: 4
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Wed, 09 Aug 2017 08:37:01 +0000
Gerrit-HasComments: Yes
Hello Patrick Rudolph, Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/20913
to look at the new patch set (#4).
Change subject: mb/lenovo/x200: Add ACPI methods to set battery thresholds
......................................................................
mb/lenovo/x200: Add ACPI methods to set battery thresholds
Partially implements the calls tpacpi-bat (pretty standard utility for
for setting these advanced battery settings on later thinkpads) needs.
What works: Setting and reading thresholds.
Change-Id: Ia049407cea7a60887ecba7b7c96e5000473865dd
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
A src/mainboard/lenovo/x200/acpi/bat_thresh.asl
M src/mainboard/lenovo/x200/dsdt.asl
2 files changed, 162 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/20913/4
--
To view, visit https://review.coreboot.org/20913
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia049407cea7a60887ecba7b7c96e5000473865dd
Gerrit-Change-Number: 20913
Gerrit-PatchSet: 4
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/20913 )
Change subject: mb/lenovo/x200: Add ACPI methods to set battery thresholds
......................................................................
Patch Set 3:
> Why don't you use existing interface to make coreboot compatible
> with tpacpi-bat and thinkpad_acpi? They use the following ACPI
> methods:
> * BCCS
> * BCSS
> * BICS
> * BDSS
> * PSSS
> They allow to set thresholds, inhibit charge, peak shift, ...
Now that I read the spec I think it's certainly possible to reimplement those at least partially.
--
To view, visit https://review.coreboot.org/20913
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia049407cea7a60887ecba7b7c96e5000473865dd
Gerrit-Change-Number: 20913
Gerrit-PatchSet: 3
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Wed, 09 Aug 2017 07:29:29 +0000
Gerrit-HasComments: No
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/20913 )
Change subject: mb/lenovo/x200: Add ACPI methods to set battery thresholds
......................................................................
Patch Set 3:
Why don't you use existing interface to make coreboot compatible with tpacpi-bat and thinkpad_acpi? They use the following ACPI methods:
* BCCS
* BCSS
* BICS
* BDSS
* PSSS
They allow to set thresholds, inhibit charge, peak shift, ...
--
To view, visit https://review.coreboot.org/20913
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia049407cea7a60887ecba7b7c96e5000473865dd
Gerrit-Change-Number: 20913
Gerrit-PatchSet: 3
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Wed, 09 Aug 2017 07:11:55 +0000
Gerrit-HasComments: No
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/20921 )
Change subject: Adding in my mainboard source files.
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/20921/1/src/mainboard/gigabyte/ga-h61m-ds2/…
File src/mainboard/gigabyte/ga-h61m-ds2/romstage.c:
https://review.coreboot.org/#/c/20921/1/src/mainboard/gigabyte/ga-h61m-ds2/…
PS1, Line 67: RCBA32(FD) = 0x17ee1fe1;
This one might be disabling your pcie bridge required for wifi?
--
To view, visit https://review.coreboot.org/20921
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I999f632748e4b6bc52cc0c5dbd1f3aebc6cad04a
Gerrit-Change-Number: 20921
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Morgan <xamboni(a)protonmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Wed, 09 Aug 2017 06:24:30 +0000
Gerrit-HasComments: Yes