upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
756 B
34 lines
756 B
/*
|
|
*
|
|
* (C) Copyright 2014 Freescale Semiconductor, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _THERMAL_H_
|
|
#define _THERMAL_H_
|
|
|
|
#include <dm.h>
|
|
|
|
int thermal_get_temp(struct udevice *dev, int *temp);
|
|
|
|
/**
|
|
* struct dm_thermal_ops - Driver model Thermal operations
|
|
*
|
|
* The uclass interface is implemented by all Thermal devices which use
|
|
* driver model.
|
|
*/
|
|
struct dm_thermal_ops {
|
|
/**
|
|
* Get the current temperature
|
|
*
|
|
* This must be called before doing any transfers with a Thermal device.
|
|
* It will enable and initialize any Thermal hardware as necessary.
|
|
*
|
|
* @dev: The Thermal device
|
|
* @temp: pointer that returns the measured temperature
|
|
*/
|
|
int (*get_temp)(struct udevice *dev, int *temp);
|
|
};
|
|
|
|
#endif /* _THERMAL_H_ */
|
|
|