Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (58 sloc) 2.416 kb
4bc042b initial public release v1.50
Patrick Titiano authored
1 /*
2 *
3 * @Component OMAPCONF
4 * @Filename temperature44xx.h
5 * @Description OMAP4 Temperature Sensors Functions
6 * @Author Patrick Titiano (p-titiano@ti.com)
7 * @Date 2010
8 * @Copyright Texas Instruments Incorporated
9 *
10 *
11 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
12 *
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 *
18 * Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 *
21 * Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the
24 * distribution.
25 *
26 * Neither the name of Texas Instruments Incorporated nor the names of
27 * its contributors may be used to endorse or promote products derived
28 * from this software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 *
42 */
43
44
45 #ifndef __TEMPERATURE44XX_H__
46 #define __TEMPERATURE44XX_H__
47
48
49 #define TEMP_ABSOLUTE_ZERO -273
50
51
52 typedef enum {
53 OMAP4_EMIF_TEMP_BELOW_85C = 0x3,
54 OMAP4_EMIF_TEMP_ABOVE_85C = 0x5,
55 OMAP4_EMIF_TEMP_EXCEED_105C = 0x7,
56 OMAP4_EMIF_TEMP_RESERVED
57 } omap4_emif_temperature;
58
59
60 int temp44xx_main(int argc, char *argv[]);
61 int temp44xx_read_pcb_sensor(int *temp);
62 int temp44xx_read_bandgap_sensor(int *temp);
63 int temp44xx_hotspot_temp_get(void);
64 int temp44xx_read_mem_sensor(unsigned short emif,
65 unsigned short cs, omap4_emif_temperature *temp);
66
67
68 #endif
Something went wrong with that request. Please try again.