coreboot/src/ec/google/chromeec
Duncan Laurie cacecefb27 ec/google/chromeec: Pass reference of object to BBST() method
The BBST() method writes an updated status flag mask that is intended
to be stored back in the battery object.  This value needs to be
passed as a reference to an object to prevent it from being evaluated
at the time the method is loaded or it will not actually update the
BSTP value in the battery device.

This was tested by instrumenting the _BST method in the primary
battery and ensuring the value can be updated by the BBST method.

Change-Id: Ia8e207a2990059a60d96d8e0f3ed3c16a55c50f4
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34356
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Martin Roth <martinroth@google.com>
2019-07-18 16:24:44 +00:00
..
acpi ec/google/chromeec: Pass reference of object to BBST() method 2019-07-18 16:24:44 +00:00
chip.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
crosec_proto.c src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
ec.c src: Use include <reset.h> when appropriate 2019-03-29 20:00:20 +00:00
ec.h ec/google/chromeec: Clarify return value of google_chromeec_command 2019-02-26 11:19:14 +00:00
ec_boardid.c ec/google/chromeec: Update google_chromeec_get_board_version prototype 2018-09-20 17:15:26 +00:00
ec_commands.h ec/google/chromeec: add support for retrieving OEM name 2018-11-16 03:09:19 +00:00
ec_i2c.c src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
ec_lpc.c ec/google/chromeec/ec_lpc: Remove unneeded 'else' 2019-06-21 08:32:08 +00:00
ec_message.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ec_spi.c Use stopwatch_wait_until_expired where applicable 2017-09-26 16:53:28 +00:00
Kconfig ec/google/chromeec: Use common MEC interface 2018-10-18 15:01:40 +00:00
Makefile.inc ec/google/chromeec: Add boardid.c to verstage 2019-01-30 11:02:18 +00:00
smihandler.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
smm.h chromeec: Change the API for hostevent/wake masks to handle 64-bit 2017-11-22 19:10:26 +00:00
switches.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
vboot_storage.c google/chromeec: implement vboot_(save|retrieve)_hash API 2016-02-04 17:34:58 +01:00
vstore.c src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00