Files
OpenCellular/include/chip_temp_sensor.h
Vic Yang 000a6d5742 Refactor temperature sensor code and add support of Link I2C temp sensor.
Refactor board/chip-specific code into corresponding directories.
Add support of the four I2C temp sensor in Link.
Use table lookup to handle different types of temperature sensors.

BUG=chrome-os-partner:7527
TEST=Correctly read EC internal temperature on bds.
Compile for link succeeded.

Change-Id: I694cfa54e1545798d877fafdf18c5585ab5f03e2
2012-02-04 14:37:04 +08:00

21 lines
545 B
C

/* Copyright (c) 2012 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.
*/
/* Temperature sensor module for LM4 chip */
#ifndef __CHIP_TEMP_SENSOR_H
#define __CHIP_TEMP_SENSOR_H
struct temp_sensor_t;
/* Temperature reading function. Input pointer to a sensor in temp_sensors.
* Return temperature in K.
*/
int chip_temp_sensor_read(const struct temp_sensor_t* sensor);
int chip_temp_sensor_init(void);
#endif /* __CHIP_TEMP_SENSOR_H */