ec/google: Add function ec_fill_dptf_helpers()

ec_fill_dptf_helpers() is used to generate all of the "helper" methods
that DPTF requires. A system with a Chrome EC is typically in charge
of fan PWM control as well as battery charging, so if DPTF needs to
manipulate those, then it requires Methods provided by the EC.

BUG=b:143539650
TEST=compiles

Change-Id: Ib30072d1d0748b31bcab240a0fd0e2f12d34aaa4
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41894
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Tim Wawrzynczak 2020-05-29 15:44:25 -06:00 committed by Duncan Laurie
commit 93d7bcbc67
4 changed files with 327 additions and 0 deletions

View file

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef EC_GOOGLE_COMMON_DPTF_H
#define EC_GOOGLE_COMMON_DPTF_H
#include <device/device.h>
/* Called by google_chromeec_fill_ssdt_generator */
void ec_fill_dptf_helpers(const struct device *dev);
#endif /* EC_GOOGLE_COMMON_DPTF_H */