Files
OpenCellular/include/fan.h
Bill Richardson 9a6e464502 cleanup: remove obsolete declaration from header
When we cleaned up the alternate function GPIO initialization, we left a
declaration for configure_fan_gpios() in fan.h. That function doesn't exist
anywhere, so there's no point in declaring it.

BUG=chrome-os-partner:18343
BRANCH=none
TEST=manual

Build everything. Nothing fails.

Change-Id: I3d1fe1ff62e523aa7c87d57c5e838b01a0c6e899
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/174334
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-10-23 23:53:27 +00:00

30 lines
948 B
C

/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Fan control module for Chrome EC */
#ifndef __CROS_EC_FAN_H
#define __CROS_EC_FAN_H
/**
* Set the amount of active cooling needed. The thermal control task will call
* this frequently, and the fan control logic will attempt to provide it.
*
* @param pct Percentage of cooling effort needed (0 - 100)
*/
void pwm_fan_set_percent_needed(int pct);
/**
* This function translates the percentage of cooling needed into a target RPM.
* The default implementation should be sufficient for most needs, but
* individual boards may provide a custom version if needed (see config.h).
*
* @param pct Percentage of cooling effort needed (always in [0,100])
* Return Target RPM for fan
*/
int pwm_fan_percent_to_rpm(int pct);
#endif /* __CROS_EC_FAN_H */