mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
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
21 lines
545 B
C
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 */
|