linux/drivers/thermal/ti-soc-thermal/ti-bandgap.c
<<
>>
Prefs
   1/*
   2 * TI Bandgap temperature sensor driver
   3 *
   4 * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/
   5 * Author: J Keerthy <j-keerthy@ti.com>
   6 * Author: Moiz Sonasath <m-sonasath@ti.com>
   7 * Couple of fixes, DT and MFD adaptation:
   8 *   Eduardo Valentin <eduardo.valentin@ti.com>
   9 *
  10 * This program is free software; you can redistribute it and/or
  11 * modify it under the terms of the GNU General Public License
  12 * version 2 as published by the Free Software Foundation.
  13 *
  14 * This program is distributed in the hope that it will be useful, but
  15 * WITHOUT ANY WARRANTY; without even the implied warranty of
  16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  17 * General Public License for more details.
  18 *
  19 * You should have received a copy of the GNU General Public License
  20 * along with this program; if not, write to the Free Software
  21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  22 * 02110-1301 USA
  23 *
  24 */
  25
  26#include <linux/module.h>
  27#include <linux/export.h>
  28#include <linux/init.h>
  29#include <linux/kernel.h>
  30#include <linux/interrupt.h>
  31#include <linux/clk.h>
  32#include <linux/gpio.h>
  33#include <linux/platform_device.h>
  34#include <linux/err.h>
  35#include <linux/types.h>
  36#include <linux/spinlock.h>
  37#include <linux/reboot.h>
  38#include <linux/of_device.h>
  39#include <linux/of_platform.h>
  40#include <linux/of_irq.h>
  41#include <linux/of_gpio.h>
  42#include <linux/io.h>
  43
  44#include "ti-bandgap.h"
  45
  46static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id);
  47
  48/***   Helper functions to access registers and their bitfields   ***/
  49
  50/**
  51 * ti_bandgap_readl() - simple read helper function
  52 * @bgp: pointer to ti_bandgap structure
  53 * @reg: desired register (offset) to be read
  54 *
  55 * Helper function to read bandgap registers. It uses the io remapped area.
  56 * Return: the register value.
  57 */
  58static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg)
  59{
  60        return readl(bgp->base + reg);
  61}
  62
  63/**
  64 * ti_bandgap_writel() - simple write helper function
  65 * @bgp: pointer to ti_bandgap structure
  66 * @val: desired register value to be written
  67 * @reg: desired register (offset) to be written
  68 *
  69 * Helper function to write bandgap registers. It uses the io remapped area.
  70 */
  71static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg)
  72{
  73        writel(val, bgp->base + reg);
  74}
  75
  76/**
  77 * DOC: macro to update bits.
  78 *
  79 * RMW_BITS() - used to read, modify and update bandgap bitfields.
  80 *            The value passed will be shifted.
  81 */
  82#define RMW_BITS(bgp, id, reg, mask, val)                       \
  83do {                                                            \
  84        struct temp_sensor_registers *t;                        \
  85        u32 r;                                                  \
  86                                                                \
  87        t = bgp->conf->sensors[(id)].registers;         \
  88        r = ti_bandgap_readl(bgp, t->reg);                      \
  89        r &= ~t->mask;                                          \
  90        r |= (val) << __ffs(t->mask);                           \
  91        ti_bandgap_writel(bgp, r, t->reg);                      \
  92} while (0)
  93
  94/***   Basic helper functions   ***/
  95
  96/**
  97 * ti_bandgap_power() - controls the power state of a bandgap device
  98 * @bgp: pointer to ti_bandgap structure
  99 * @on: desired power state (1 - on, 0 - off)
 100 *
 101 * Used to power on/off a bandgap device instance. Only used on those
 102 * that features tempsoff bit.
 103 *
 104 * Return: 0 on success, -ENOTSUPP if tempsoff is not supported.
 105 */
 106static int ti_bandgap_power(struct ti_bandgap *bgp, bool on)
 107{
 108        int i;
 109
 110        if (!TI_BANDGAP_HAS(bgp, POWER_SWITCH))
 111                return -ENOTSUPP;
 112
 113        for (i = 0; i < bgp->conf->sensor_count; i++)
 114                /* active on 0 */
 115                RMW_BITS(bgp, i, temp_sensor_ctrl, bgap_tempsoff_mask, !on);
 116        return 0;
 117}
 118
 119/**
 120 * ti_errata814_bandgap_read_temp() - helper function to read dra7 sensor temperature
 121 * @bgp: pointer to ti_bandgap structure
 122 * @reg: desired register (offset) to be read
 123 *
 124 * Function to read dra7 bandgap sensor temperature. This is done separately
 125 * so as to workaround the errata "Bandgap Temperature read Dtemp can be
 126 * corrupted" - Errata ID: i814".
 127 * Read accesses to registers listed below can be corrupted due to incorrect
 128 * resynchronization between clock domains.
 129 * Read access to registers below can be corrupted :
 130 * CTRL_CORE_DTEMP_MPU/GPU/CORE/DSPEVE/IVA_n (n = 0 to 4)
 131 * CTRL_CORE_TEMP_SENSOR_MPU/GPU/CORE/DSPEVE/IVA_n
 132 *
 133 * Return: the register value.
 134 */
 135static u32 ti_errata814_bandgap_read_temp(struct ti_bandgap *bgp,  u32 reg)
 136{
 137        u32 val1, val2;
 138
 139        val1 = ti_bandgap_readl(bgp, reg);
 140        val2 = ti_bandgap_readl(bgp, reg);
 141
 142        /* If both times we read the same value then that is right */
 143        if (val1 == val2)
 144                return val1;
 145
 146        /* if val1 and val2 are different read it third time */
 147        return ti_bandgap_readl(bgp, reg);
 148}
 149
 150/**
 151 * ti_bandgap_read_temp() - helper function to read sensor temperature
 152 * @bgp: pointer to ti_bandgap structure
 153 * @id: bandgap sensor id
 154 *
 155 * Function to concentrate the steps to read sensor temperature register.
 156 * This function is desired because, depending on bandgap device version,
 157 * it might be needed to freeze the bandgap state machine, before fetching
 158 * the register value.
 159 *
 160 * Return: temperature in ADC values.
 161 */
 162static u32 ti_bandgap_read_temp(struct ti_bandgap *bgp, int id)
 163{
 164        struct temp_sensor_registers *tsr;
 165        u32 temp, reg;
 166
 267        conf->reg;
 * @reg: desired r1egist16sref">registers;         ="L165"> 165        -soc-thermal/ti-bana href="drivers/thermal/ef="+code=t
  v2.6.1TS" class="sref">RMW_BITS(reg;
ass="line" name="L68">  168 148}
 110        FREEZEermaass="line" nameFREEZEermass="sr " class="sref">id)
  71017s="sref">POWER_SWITCH/span>
 115  82#define iRMW_BITS(<">iti_bandgap_readl(u32 POWER_SWITCH/ name="L149"> 149
<6" class="line" name="L16">  16 * MERCp" class=/ti-bandgap.c#L72" id="L172" c17ti_bandgap structure
















* Ip sasel/ticanp.c#/ti-bfrom cur_d25" c/ d25" _0ass="line" name="L156"> 156 * This funse" class1="sref">base +  122 *
















*a href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L161" id="L1oc-therma1l/ti-bandgap.c#L75" id="1L75" 17                     rs;         ="L165"> 165        -soc-thermal/ti-bana href="drivers/thermal/ef="+code=t
  v2.6.1ref"_d25" _hermal/ti-soc-thref"_d25" _hp" cs class="sref">reg;
  71617"line" name="class="sref">reg);
  77<1/a> * D17al2" class="sref">val2;
  178 145
 110        ERRATA_8">sensor_cohermal/RRATA_8">ss="srdrivers/thermal/ti-soc-thermal/ti-bandgap.c#L161" id="L1RL70" cla1mment"> *            The1 valu18s="sref">POWER_SWITCH/span>
 135static  147        return ti_bandgap_readl(  811182="sref">POWEelsereadl" class="sref">ti_bandgap_readl(183="sref">POWER_SWITCH/span>
 147        return ti_bandgap_readl(ti_bandgap_readl(;                       i-bandgap.c#L165" id="L165"-ermal/tc-thermal/ti-bana href="drivers/thermal/ef="+code=t
  v2.6.1">iireg;
r;              1     18=reg" class="sref">reg;
 110        FREEZEermaass="line" nameFREEZEermass="sr class="sref">reg;
 * General Publ * D1"sref">registe                       "drivers/thermal/ti-soc-thermal/ti-bandgap.c#L115" id="L115" class="line" name="L115"> 115  82#define iRMW_BITS(<">iti_bandgap_readl(18line" name="L148"> 148}
mask;      1     1              time */
ti_bandgap_readl(m1askreg);
19 class="sref">ENOTSUPP;
  62
  91oc-therma1l/ti-bandgap.c#L93" id="1L93" 19     readl" class="sref">ti_bandgap_readl(/***  1 Basi19n class="comment"> *
  95<
  9161span class="comment">/**@-ba: IRQ numbap.cref="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L150" id="L1oan class=power() - controls the p1ower 1tate of a bandgap device
d5">: prmandgad5"> /a>statiermal/ti-so*30" id="L130" class="line" name="L130"> 130 * @bgp: p1ointe1 to ti_bandgap structure 130 * @on: desired p2wer s2ate (1 - on, 0 - off)
 130m2/a> *
 130 156 * This fu2"> 102 *2that 2eatures tempsoff bit.
 1602103" clas2="line" name="L103"> 1032/a> *
 155 * Functio2 Return: 2 on success, -ENOTSUPP i2 temp2off is not supported.
 155 * Functio2 6eturn: 2 /ti-bandgap.c#L95" id="2a>
 155 * Functio2 7eturn: 2 s="line" name="L96">  92ef="+20rn: the register value.
 */ <  < ode=ti_bandgap" class="sref">ti_bandgap * 108        int reg)
u32 ti_-soc-thermal/ti-bad5"> < ode=_readl" class="sref">ti_bandgap_readl(POWE163"> 163{
 164        struct tsr;
ti_bandga_ho=>ti_-so0ref="+code=RMW_BIT_col-soc-thermal/ti-b_col->ti_-so0ref="+code=RMW_BIref">RMW_BITS(reg;
 107{
sensor_count; ti_bandgap_readl(;                       spin_oc-ttion>
  2s/thermpin_oc-t/ti-bermalsoc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="oc-ttion>
  2s/theroc-t/ti-p_readl" class="sref">ti_bandgap_readl(bgap_2empsoff_mask, ! 112
 113        for (i = 0; i < bgp->p.c#L113" id="L113"++r " class="sref">id)
 267        conf->reg;
registe                       ref">RMW_BITS(  88        r = a href="drivers/thermal/ef="+code=t
  v2.6.1">i->iti_bandgap_readl( 148}
 119<2a>registe         145"> 145
POWER_SWITCH/span>
ti_bandga_ho=>ti_-so               ref">RMW_BITS(r = a href="drivers/thermal/ef="+code=t
  v2.6.1massun_ho=+code=i" class="srefmassun_ho=+code=sens class="sref">reg;
 * @bgp: poi2ter t22 class="sref">ENOTSUPP;
 * @reg: desired 2egist223="sref">POWER_SWITCH/145"> 145
 1232/a>iti_-so               ref">RMW_BITS(r = a href="drivers/thermal/ef="+code=t
  v2.6.1massun_col-+code=i" class="srefmassun_col-+code=sens class="sref">reg;
val1;
 109
ti_-ermalermals"> 109
ti_bandga_ho=>ti_ti_bandgap" class="sref">ti_bandgap * * corrupted&qu2t; - 22                             rmalinues class="sref">reg;
val2;
 * resynchroniz2tion 229ref">registe                       ref">RMW_BITS(  88        r = a href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">iti_bandgap_readl(registe         145"> 145
 * C2RL_CORE_DTEMP_MPU/GPU/CO2E/DSP2VE/IVA_n (n = 0 to 4)
















* One TALERT riverband: Two sourcer0" id="L130" class="line" name="L130"> 130 * CTRL_CORE_TEMP_SENS2R_MPU2GPU/CORE/DSPEVE/IVA_n
















* If.c#L69iverbands/thed="L12a_ho=agap.ccode="_ho=acla0" id="L130" class="line" name="L130"> 130 1322/a> *
















* ti-buncode="_col-aelse code="_col-ati-buncode="_ho=>t id="L130" class="line" name="L130"> 130 *2Retur2: the register value.
















*>
 134<2a>/* active on 0 */ 109
ti_bandga_ho=>ti_t " class="sref">id)
u32 RMW_BITS(reg;
RMW_BITS(reg;
val1, registe        }aelse L109> 109
ti_t " class="sref">id)
registe                               ref">RMW_BITS(reg;
bgp, registe                               ref">RMW_BITS(reg;
bgp, POWER_SWITCHg" class="sref">reg);
ENOTSUPP;
POWER_SWITCH/span>
  91        RMW_BITS(r = a href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">iti_bandgap_readl(val1 == ti_bandgap_readl(/* active on 0 */
ef="+code=t
  v2.6.1dev href="+code=tidevp" csreadl" class="sref">ti_bandgap_readl(rmal/t%s: IRQ from %sbandgap: ho=ivspa %d rol-ivspa %d\nrmal/t
ti_bandgap_readl(r =bandgap.c#L167" id="L167" class="line" name="L167"> 267        ti_bandgap_readl(bgp, registe        R_SWITCH/span>
ti_bandga_ho=>ti_ref="+code=RMW_BIT_col-soc-thermal/ti-b_col->ti_p_readl" class="sref">ti_bandgap_readl( 148}
registe         145"> 145

 150<2a>POWER_SWITCHL109> 109
 267        ->ti_ti_bandgap" class="sref">ti_bandgap *POWER_SWITCHR_SWITCH/span>
 267        ->ti_bandgap.c#L115" id="L115" class="line" name="L115"> 115                ti_bandgap_readl( * @bgp: poi2ter t253="sref">POWEg" class="sref">reg);
 123 * 25de=i" class="               spin_unoc-ttion>
  2s/thermpin_unoc-t/ti-bermalsoc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="oc-ttion>
  2s/theroc-t/ti-p_readl" class="sref">ti_bandgap_readl( 1542/a>val1;
os="line" name="IRQandNDLEDtion>
  2s/therIRQandNDLEDssens class="sref">reg;
 116        return 0;
val2;
2* the register value.
 1592/a> *
 * Return2 temp2rature in ADC values.
<>@-ba: IRQ numbap.cref="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L150" id="L261" class2"line" name="L161"> 161<2a>
: prmandgad5"> /un01" 30" id="L130" class="line" name="L130"> 130bgp, int  *
 130 *
 130temp,   95<
 155 * Functio2hermal/ti2bandgap.c#L166" id="L1662 clas26rn: the register value. 155 * Functio2he needed2ment"> * @reg: desired r2egist26ate of a bandgap device
 155 * Functio2he="L158"2ass="line" name="L68">  268
 */ <  < ode=ti_bandgap" class="sref">ti_bandgap *  72027s="sr" class="sref">id)
u32 tsr;
pr_emera href="+code=tipr_emera>ti_baegister valustring">rmal/t%s: TSHUT.c#L155" id="L1ached. Needs1shut down...\nrmal/t
ti_bandgap_readl(POWER_SWITCH                __="dr__ href="+code=ti__="dr__p" cp_readl" class="sref">ti_bandgap_readl(base + ti_bandgap_readl(;                       orderly_powerof7"> 267     orderly_powerof7>ti_bandgap.c#L115" trurf->ti_bandgap_readl(reg;
  72627ead it third time */

  2s/therIRQandNDLEDssens class="sref">reg;
  77<2/a> * D27reg" class="sref">reg);
  278 148}
 149
  92RL70" cla2mment"> *            The2 valu28reg" class="sref">reg);
  82128d sensor temperature
28atures tempsoff bit.
 152do {2                        2     28n class="comment"> *
statiermal/ti-so"driver/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 152 *
 152r;              2     28ass="line" name="L95">  95<
 152 155 * Functio26an class2""comment"> * General Pu2l * D28ate of a bandgap deviceSimp#gacon156" cl/from ti-srepverentrs/thm"drmCelsiut. Ip sasel30 155 * Functio26"L78" cl2ref="+code=reg" class="s2ref">28tween clock domains.
 155 * Functio2ask" clas2s="sref">mask;      2     29te (1 - on, 0 - off)
 155 * Functio2aL70" cla2ode=mask" class="sref">m2ask
 155 * Functio2aL81" cla2ref="+code=reg" class="s2ref">29d sensor temperature
 155 * Functio2ap" class2p.c#L92" id="L92" class=2"line29ass="line" name="L62">  62<
* trgu>  6ais out ofl30 155 * Functio2ado {2l/ti-bandgap.c#L93" id="2L93" 29 the register value.
/***  2 Basi29 class="comdrivers/thermal/ti-soc-thermal/ti-bandgap.c#L134" id="L24to conce2l/ti-bandgap.c#L95" id="2L95" 2lass="ndgap_read_tempoc-thermal/adc_to_mcelsiutrs/thermal/ti-soc-thermal/adc_to_mcelsiut>ti_ba>static u32 ti_bandgap_read_tempadc_oc-temp" class="sradc_oc-ssi_bandgaclass="line" namess="sref">u32ti_bandgap *  9262span c" class="sref">id)
registeconst"a>static  < ="+code=ti_bandgap_reL167"> 267         267        reg;
 * @bgp: p2ointe29line" name="L148"> 148}
 * @on: desired p3wer s30reg" class="sr145"> 145
m3/a>POWEL109> 109
 267        adc_oc-temp" class="sradc_oc-ssi_ clas ="line" name="LL167"> 267        ti_bandgap *POWER_SWITCHtime */-code=t
  v2.6.1ERANGEtemp" class="srERANGEa hrs class="sref">reg;
 102 *3that 3eature class="sref">reg;
u32 267         267        1_tab#gsoc-tp_read_tempadc_oc-temp" class="sradc_oc-ssi_ -s="line" name="LL167"> 267        reg;
/***  3 temp30;        time */0s class="sref">reg;
reg);
  93ef="+30rn: tlass="sref">reg);
 108        int 
 152 152, 3a href="+code=POWER_SWIT3H" cl31ature in ADC values.
<>@tive:soc-thmal/mCelsiut/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 152 152sensor_count;  *
 155 * Functio3114  3              *
 155 * Functio3ef">bgap_3empsoff_mask, ! 155 * Functio3.c#L116" 3d="L116" class="line" na3e="L131rn: the register value. 155 * Functio3ermal/ti-3andgap.c#L117" id="L117"3class31ate of a bandgap device
 155 * Functio3eame="L103bandgap.c#L118" id="L1183 clas31tween clock domains.
  6ais out ofl30 155 * Functio319" class3"line" name="L119"> 119<3a>
 * @bgp: poi3ter t32 clasndgap_read_tempoc-thermal/mcelsiut_to_adc < ti_ba>static u32 ti_balobanc ti_bandgap * * @reg: desired 3egist32de=id" class="sref">id)
 1233/a>static  < ="+code=ti_bandgap_reL167"> 267         267        reg;
 267        1_tab#gsoc-ti-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267         267        1_tab#gsoc-s class="sref">reg;
bgap_3e errata "Bandgap T3mpera32             ndgap_read_temphigh"> 267     high" name="L115"> 115
  2s/therocw" name="L115"> 115  82#define mreg;
 * corrupted&qu3t; - 32rn: tlass="sref">reg);
registers;        lowtion>
  2s/therocw" nai-soclass="sref">reg);
 * resynchroniz3tion 329ref">registep_read_temphigh"> 267     high" na-so               r167"> 267         267        reg);
registe="L115"> 115  82#define m 109
 267     high" na-+ers;        lowtion>
  2s/therocw" na) / 2class="sref">reg);
reg);
 * CTRL_CORE_TEMP_SENS3R_MPU332="sref">POWEL109> 109
 267        1_tab#gsoc-tp_read_templowtion>
  2s/therocw" na]h||ap_read_tempT-bandgap.c#L165" id="L165"-elas ="line" name="LL161_tab#g"> 267        1_tab#gsoc-tp_read_temphigh"> 267     high" na]ti_bandgap" class="sref">ti_bandgap * 1323/a>POWER_SWITCHtime */-code=t
  v2.6.1ERANGEtemp" class="srERANGEa hrs class="sref">reg;
 *3Retur33     readl" class="sref">ti_bandgap_readl( 134<3a>/* active whi#ga9> 109

  2s/therocw" naielass="line" name="Lhigh"> 267     high" nat " class="sref">id)
u32  267        1_tab#gsoc-tp_read_tempm>  82#define mti_bandgap * 267     high" na-so               m>  82#define mreg;
val1, registe        elsereadl" class="sref">ti_bandgap_readl(registe                               lowtion>
  2s/therocw" nai-s               m>  82#define mreg;
bgp, registe        ="L115"> 115  82#define m 109

  2s/therocw" nai+ers;        high"> 267     high" nat / 2class="sref">reg);
bgp, POWEclass="sref">reg);
ENOTSUPP;
POWEclass="line" namadc <  267        ;        lowtion>
  2s/therocw" naclass="sref">reg);
val1 == reg;
/*class="sref">reg);
reg;
bgp, oc-thermal/add_hystal/tiadd hysteresis (al/mCelsiut)i"dr=l/ti-soc-th href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L150" id="L3/n class=3andgap.c#L148" id="L148"3class34tween clock domains.
statiermal/ti-so"driver/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 152 152 150<3a>
<>@hyst_oc-:shysteresis oc-thmal/mCelsiut/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 152
 130 * @bgp: poi3ter t35 (offset) to be read
 133 * 35n class="comment"> *
 155 * Functio3154" clas3="line" name="L154"> 1543/a>
 155 * Functio3 to conce3trate the steps to read 3ensor35s the io remapped area.
 155 * Functio31rmal/ti-3esired because, dependin3 on b35rn: the register value.
3* the ndgap_read_tempoc-thermal/add_hyst < ti_ba>static u32 ti_bandgap_read_tempadc_oc-temp" class="sradc_oc-ssi_bandgars;        hyst_oc-"> 267     hyst_oc-ssi_bf="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L57" id=3159" clas3="line" name="L159"> 1593/a>registe                               ti_ti_bandgap" class="sref">ti_bandgap * * Return3 temp36s="sr" class="sref">id)
 161<3a>POWELdgap_read_tempo-bandgap.c#L165" id="L165" cp_read_temptimndgap.c#L165" itim" naclass="sref">reg);
bgp, int reg;
 145
temp_sen3or_registers * *
ef">POWEc Needi"dr=dd al/30ta href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L57" id=3>to conce3="sref">temp,   95<
ef">POWEc thgacon1_tab#garange>ta href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L57" id=3>rmal/ti-3bandgap.c#L166" id="L1663 clas36rn: the register value.POWEc>
 * @reg: desired r3egist36sref">registers;        timndgap.c#L165" itim" nahermal/ti-soc-thermal/ti-bandadc_to_mcelsiutrs/thermal/ti-soc-thermal/adc_to_mcelsiut>ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempadc_oc-temp" class="sradc_oc-ssi_baermalsoc-thermal/ti-o-bandgap.c#L165" id="L165"p_readl" class="sref">ti_bandgap_readl(  368registeL109> 109
ti_bandgap *registe        time */
reg);
  73037reg" class="sref">reg);
u32 tsr;
T-bandgap.c#L165" id="L165"-+ermal/ti-soc-therhyst_oc-"> 267     hyst_oc-ssi_class="sref">reg);
reg;
base + ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempo-bandgap.c#L165" id="L165" cp_read_tempsumhref="drivers/tsum>ti_tclass="sref">reg);
;        time */
reg);
reg);
  73637rn: tlass="sref">reg);
  77<3/a> * D37ate of a bandgap device  93="L78" cl3ass="line" name="L78">  378 148}
 149
  93RL70" cla3mment"> *            The3 valu38ature in ADC values.
<>e=u32" cla_uncode_9iverbandtal/tiuncoders/hreivspanandgaho=aermalstcol->termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  93Re=u32" c3ss="line" name="L81">  83138d sensor temperature
statiermal/ti-so"driver/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 15238atures tempsoff bit.
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  93Re" class3                        3     38n class="comment"> *
 *
r;              3     38ass="line" name="L95">  95<
< href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L150" id="L33L76" cla3                        3     38rn: the register value.  77<3""comment"> * General Pu3l * D38ate of a bandgap devicecodersaccord-baly. Calls/hishermal/tiroc#L1L10p.c#L156="driverandg(TALERT)ass="line" name="L155"> 155 * Functio36"L78" cl3ref="+code=reg" class="s3ref">38tween clock domains.
<-thermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  93ask" clas3s="sref">mask;      3     39"linelass="commenmal/ti-soc-thermal/ti-banduncode_9iverbandt < ti_ba>static u32 ti_bandgap_read_temp>  82#define m3askPOWER_SWITCHHHHHHHHHHHHHHHHHHHHHHHHHH               ti_bandga_ho=>ti_ref="+code=RMW_BIti_pf="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L57" id=3ae=u32" c3ref="+code=reg" class="s3ref">39d sen" class="sref">id)
POWEa>static reg);
tig_oc-"> 267     tig_oc-mal/class="sref">reg);
/***  3 Basi39al1" class="sref">val1;
 145
  936397e=i" class="               T-bandgap.c#L165" id="L165"-ermal/ti-soc-thermal/ti-bandgap._T-bandgap.c#L165" idal/ti-bandgap._T-ba>ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_temp>  82#define reg);
val2;
 * @bgp: p3ointe399ref">registep_read_temp a href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267        reg);
 * @on: desired p4wer s400ref">registe="L115"> 115 267     tig_oc-mal/-ermal/ti-soc-thermal/ti-bandgap.ers/thermal/ti-soc-thermal/gap.e>ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">iti_bandgap_readl(m4/a>reg);
POWEL109> 109
ti_bandga_ho=>ti_tclass="sref">reg);
POWER_SWITCH/span>
 267     tig_oc-mal/-|/tc-thermal/ti-bana href="drivers/thermal/ef="+code=t
  v2.6.1ef="sho=+code=i" class="srefef="sho=+code=sens class="sref">reg;
ti_bandgap_readl(/***  4 temp40;        R_SWITCH/span>
 267     tig_oc-mal/-ermal/ti-soc-thermal/ti-a href="drivers/thermal/ef="+code=t
  v2.6.1ef="sho=+code=i" class="srefef="sho=+code=sens class="sref">reg;
reg;
  94ef="+407="sref">POWEL109> 109
ti_-elass="line" name="LT-bandgap.c#L165" id="L165"p class="sref">reg;
registe        /span>
 267     tig_oc-mal/-|/tc-thermal/ti-bana href="drivers/thermal/ef="+code=t
  v2.6.1ef="srol-+code=i" class="srefef="srol-+code=sens class="sref">reg;
 108        int ti_bandgap_readl(registe        ="L115"> 115 267     tig_oc-mal/-ermal/ti-soc-thermal/ti-a href="drivers/thermal/ef="+code=t
  v2.6.1ef="srol-+code=i" class="srefef="srol-+code=sens class="sref">reg;
registe="L115"> 115  91         267     tig_oc-mal/bap_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">iti_bandgap_readl(reg);
reg;
sensor_count;  *
  94114  4              *
 152bgap_4empsoff_mask, ! 152  94ermal/ti-4andgap.c#L117" id="L117"4class41ate of a bandgap device@oc-:soc-thm(ADC)andga new tbanshol->termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94eame="L104bandgap.c#L118" id="L1184 clas41tween clock domains.
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  9419" class4"line" name="L119"> 119<4a>
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94_read_tem4() - helper function to 4ead d42ature in ADC values.
 155 * Functio4 * @bgp: poi4ter t42d sensor temperature
 155 * Functio4 class="c4mment"> * @reg: desired 4egist42atures tempsoff bit.
 155 * Functio4_ass="sre4="line" name="L123"> 1234/a> *
 155 * Functio4_14  4 bandgap sensor temperat4re. T42n class="comment"> *
 155 * Functio4_f">bgap_4e errata "Bandgap T4mpera42emperature register.
 155 * Functio4_c#L116" 4comment"> * corrupted&qu4t; - 42rn: the register value. 155 * Functio4
 155 * Functio4 * resynchroniz4tion 42tween clock domains.
<-thermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94"comment"4 * Read access to regist4rs be43"linelass="cndgap_read_tempoc-thermal/update_alert_tbanshol- < ti_ba>static u32 ti_bandgap_read_temp>  82#define POWER_SWITCHHHHHHHHHHHHHHHHHHHHHHHHHHPOWELdgap_read_tempoc-"> 267     oc-mal/bap_read_tempboo">RMW_BITS(<"oo"mal/tc ti_bandgho=>ti_tclass="sref">reg);
 * CTRL_CORE_TEMP_SENS4R_MPU43d sen" class="sref">id)
 1324/a>POWEa>static  < ="+code=ti_bandgap_re a_d5"> < ="+coi-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267         < ="+c_readl" class="sref">ti_bandgap_readl( *4Retur434="sref">POWEa>static reg);
 134<4a>/* active                 267     ebansh_oc-91">  91         267     tig_oc-mal/bap_read_tempo_ho="sref">ti_bandga_ho=>ti_ref="+code=RMW_BIT_col-soc-thermal/ti-b_col->ti_ref="+code=RMW_BIref">RMW_BITS(reg);
bgap_4ss="sref">u32 reg;
reg);
val1, registers;         a href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267        reg);
 148}
bgp, register145"> 145
  94bgp" clas4="sref">bgp, registe="L115"> 115 267     ebansh_oc-91">-ermal/ti-soc-thermal/ti-bandgap.ers/thermal/ti-soc-thermal/gap.e>ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1">iiti_bandgap_readl(tsr;
T_col-soc-thermal/ti-b_col->ti_-so9> 109
 267     ebansh_oc-91">-ermalsp_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1tbanshol-_trol-+code=i" class="sreftbanshol-_trol-+code hrep-elaselasreadl" class="sref">ti_bandgap_readl(POWER_SWITCH/span>
ti_bandgap_readl(val1 == ti_bandga_ho=>ti_-so9> 109
 267     ebansh_oc-91">-ermalsp_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1tbanshol-_tho=+code=i" class="sreftbanshol-_tho=+code hrep-elaselasreadl" class="sref">ti_bandgap_readl(;        R_SWITCH/span>
ti_bandgap_readl(bgap_4bandgap.c#L145" id="L1454 clas44             n109> 109
ti_bandgho=>ti_tclass="sref">reg);
ti_bandga_ho=>ti_-sop_read_tempoc-"> 267     oc-mal/sreadl" class="sref">ti_bandgap_readl(bgp, registeelsereadl" class="sref">ti_bandgap_readl(registe        Lref">tsr;
T_col-soc-thermal/ti-b_col->ti_-sop_read_tempoc-"> 267     oc-mal/sreadl" class="sref">ti_bandgap_readl(ti_bandgap_readl( 150<4a>POWEL109> 109
ti_-elas ="line" name="LT_ho="sref">ti_bandga_ho=>ti_t " class="sref">id)
POWER_SWITCHn109> 109
ti_bandgho=>ti_tclass="sref">reg);
 * @bgp: poi4ter t453="sref">POWER_SWITCH        Lref">tsr;
err>RMW_BITS(ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempo_ho="sref">ti_bandga_ho=>ti_rclass="sref">reg);
 * 454="sref">POWER_SWITCH                                  -code=t
  v2.6.1 a_d5"> < ="+cef="+code=t
  v2.6.1hyst_oc-"> 267     hyst_oc-ssi_bf="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L57" id=4154" clas4="line" name="L154"> 1544/a>;        R_SWITCHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHermalsoc-thermal/ti-o_col-soc-thermal/ti-b_col->ti_psreadl" class="sref">ti_bandgap_readl(bgap_4trate the steps to read 4ensor45                     elsereadl" class="sref">ti_bandgap_readl(ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempo_col-soc-thermal/ti-b_col->ti_rreadl" class="sref">ti_bandgap_readl(registe                                          code=t
  v2.6.1 a_d5"> < ="+cef="+code=t
  v2.6.1hyst_oc-"> 267     hyst_oc-ssi_bf="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L57" id=41n class=4 158459ref">registe                                          ermalsoc-thermal/ti-o_ho="sref">ti_bandga_ho=>ti_tsreadl" class="sref">ti_bandgap_readl( 1594/a>registeclass="sref">reg);
 * Return4 temp46reg" class="sref">reg);
 161<4a>POWEr145"> 145
  94gp" class4"sref">bgp, int POWE91         267     tig_oc-mal/oi-mal/ti-soc-thermbansh_oc-"> 267     ebansh_oc-91">-ermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94gass="sre4andgap.c#L163" id="L163"4class464="sref">POWER_SWITCH  ~be=ti_bandgap_reoa href="drivers/thermal/ef="+code=t
  v2.6.1tbanshol-_tho=+code=i" class="sreftbanshol-_tho=+code hre |ap_read_tempTa href="drivers/thermal/ef="+code=t
  v2.6.1tbanshol-_trol-+code=i" class="sreftbanshol-_trol-+code hrepsreadl" class="sref">ti_bandgap_readl(/* active                tig_oc-"> 267     tig_oc-mal/-|/t9> 109
ti_bandga_ho=>ti_-elaselass="line" name="L__fft < ti_bandgap_readl(bgap_4="sref">temp, ti_be=ti_bandgap_reoa href="drivers/thermal/ef="+code=t
  v2.6.1tbanshol-_trol-+code=i" class="sreftbanshol-_trol-+code hreppsreadl" class="sref">ti_bandgap_readl(reg);
 * @reg: desired r4egist46sref">registers="comment"> *
  94he="L158"4ass="line" name="L68">  468








* Err5"> i813:thermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94ction to 4write bandgap registers.4 It u47te (1 - on, 0 - off)








* Spuriousa hgine"LAlert: Talert cemphappenarandomly whi#ga hre" id="thermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94c0" class4ss="line" name="L70">  74047ature in ADC values.








* remal/s undere"b 155 * Functio4de=u32" c4lass="sref">u32  152








* betweempsoock drmal/s.a hgacomparison betweemps  termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94se" class4="sref">base +  *








* cla= urr  6arivers/thermoc-thmcemphappenawhi#ga hreoc-thmat/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 152 *
ef">POWEc transis/th-baa(metastab#g),a hushcaus-baainappropriate ivspa href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L150" id="L4"to conce4l/ti-bandgap.c#L75" id="4L75" 47ass="line" name="L95">  95<
ef">POWEc genrs/t/th. Nohspuriousaivspamoc urs asalobanars/hre"banshol-soc-th href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L150" id="L4"L76" cla4ss="line" name="L76">  74647rn: the register value.POWEc stays unchanged. Spuriousaivspamcempbe2genrs/ted whi#gaa -bandga href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L150" id="L4"e needed4/a> * D47ate of a bandgap device  478








* CONTROL_BANDGAP_THRESHOLD_MPU/GPU/CORE/DSPEVE/IVA_nass="line" name="L155"> 155 * Functio4RMW_BITS(4) - used to read, modify4 and 48"line" name="L149"> 149








*-thermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  94RL70" cla4mment"> *            The4 valu48reg" class="sref">reg);
  841482="sref">POWEL109> 109
ti_bap_read_tempERRATA_8bandgap.c#Lss="srERRATA_8ba hrep) " class="sref">id)
483="sref">POWER_SWITCH/145"> 145
  94Re" class4                        4     484="sref">POWER_SWITCHf="+code=RMW_BIref">RMW_BITS(ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">iti_bandgap_readl(val1;
r;              4     48                     L109> 109
ti_bandgho=>ti_tclass="sref">reg);
RMW_BITS(reg;
  77<4""comment"> * General Pu4l * D48sref">registe        elsereadl" class="sref">ti_bandgap_readl(489ref">registe                               ref">RMW_BITS(reg;
mask;      4     49te (1readl" class="sref">ti_bandgap_readl(m4askPOWER_SWITCHmal/ti-soc-thermal/ti-band"drivers/thermal/ti-soc-thermal/ti-bandgap.c#L91" id="L91" class="line" name="L91">  91        RMW_BITS(oa href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">iti_bandgap_readl(492="sref">POWEclass="sref">reg);
reg;
 145
  94a-thermal4n class="comment">/***  4 Basi49t">/* active                i\
  91         267     tig_oc-mal/bap_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1">iiti_bandgap_readl(reg;
  946497="sref">POWEL109> 109
ti_bap_read_tempERRATA_8bandgap.c#Lss="srERRATA_8ba hrep) " class="sref">id)
registe        /145"> 145
  94> * @bgp: p4ointe499ref">registe        Lref">tsr;
ref">RMW_BITS(ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">i  95 class="c5mment"> * @on: desired p5wer s500ref">registe        L109> 109
ti_bandgho=>ti_tclass="sref">reg);
m5/a>POWER_SWITCHHHHHHHHHLref">tsr;
ref">RMW_BITS(reg;
POWER_SWITCHelsereadl" class="sref">ti_bandgap_readl(POWER_SWITCHHHHHHHHHLref">tsr;
ref">RMW_BITS(reg;
reg;
/***  5 temp50;        R_SWITCH/span>
  91        RMW_BITS(oa href="drivers/thermal/ef="+code=t
  v2.6.1">iRMW_BITS(<">ireg;
reg);
  95ef="+50rn: tlass="sref">reg);
registeL109> 109
RMW_BITS(id)
 108        int registe        Lref">tsr;
dev_err>RMW_BITS(ef="+code=t
  v2.6.1dev>RMW_BITS( 145"failedi"drreprograms/hot "banshol-\n"thermalp_readl" clref">reg;
registe        ="L115"> 115RMW_BITS(reg;
POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens class="sref">reg;
POWEclass="sref">reg);
reg;
sensor_count; ti_bc#L91" id="L91" class="line" name="L91">  91        <>  82#define o_ho="sref">ti_bandga_ho=>ti_ref="+code=RMW_BIT_col-soc-thermal/ti-b_col->ti_p_readl" clref">reg;
 115ti_bandgexi==sen:readl" clref">reg;

RMW_BITS(reg;
reg);
val2;
  9519" class5"line" name="L119"> 119<5a>
statiermal/ti-sthermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  951gp, 5() - helper function to 5ead d52ature in ADC values.
statiermal/ti-so"driver/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 152 * @bgp: poi5ter t52d sensor temperature
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95 class="c5mment"> * @reg: desired 5egist52atures tempsoff bit.
<>termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95 ass="sre5="line" name="L123"> 1235/a> *
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95 5 102 *
 155 * Functio5_f">bgap_5e errata "Bandgap T5mpera52emperature register.
 155 * Functio5_7eturn: 5comment"> * corrupted&qu5t; - 52rn: the register value.
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95@idmcemno=aindexa hreomal/ti-ass="line" name="L155"> 155 * Functio5_ame="L105comment"> * resynchroniz5tion 52tween clock domains.
<-thermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95"comment"5 * Read access to regist5rs be53"linelass="c91        <>ness to2#define oc-thermal/validate < ti_ba>static u32 ti_bandgap_read_temp>  82#define reg);
id)
 * CTRL_CORE_TEMP_SENS5R_MPU532="sref">POWEL109!e=ti_bandgap_read_temp" class="sref">ti_ ||ap_read_tempIS_ERRtemp" class="srIS_ERR>ti_bc#L91" id="L91" class="line" name="L91">p) " class="sref">id)
 1325/a>POWER_SWITCH/span>
RMW_BITS(ti_bc145"> 145"%s:2invalidaal/ti-so"driver\n"thermalref="+code=RMW_BI__erma__>RMW_BITS(<__erma__>ti_p_readl" clref">reg;
 *5Retur534="sref">POWER_SWITCHtime */-code=t
  v2.6.1EINVALndgap.c#Lss="srEINVAL="+c_readl" clref">reg;
 134<5a>/* active class="sref">reg);
bgap_5ss="sref">u32 reg;
POWEL109bc#L91" id="L91">  82#define   82#define  267        ti_bandg2.1p) " class="sref">id)
val1, registe        /span>
RMW_BITS(ef="+code=t
  v2.6.1dev>RMW_BITS( 145"%s:2andgap.i-aoutandgrange (%d)\n"thermalr class="sref">id)
registe                               __erma__>RMW_BITS(<__erma__>ti_bap_read_temp>  82#define reg);
bgp, registe        time */-code=t
  v2.6.1ERANGEndgap.c#Lss="srERANGE="+c_readl" clref">reg;
bgp, registeclass="sref">reg);
reg);
POWEtime */0s class="sref">reg;
val1 == reg);
val1;
bgap_5bandgap.c#L145" id="L1455 clas54emperature register.
  95/rmal/ti-5if val1 and val2 are dif5erent54rn: the register value._oc-thermal/ti-ba/tbanshol-al/tihsoc-th"drupdate TALERT "_col-a112asho=>termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95/rmal/ti-5="sref">bgp, @href=a>statiermal/ti-so"driver/ti-bandgap.c#L152" id="L152" class="line" name="L152"> 152
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95hermal/ti5bandgap.c#L149" id="L1495 clas55te (1 - on, 0 - off)
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95hgp" clas5"line" name="L150"> 150<5a>
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95ndgap_rea5_temp() - helper functio5 to r55d sensor temperature
termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95 * @bgp: poi5ter t55atures tempsoff bit.
<>termal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  95 * 55n class="comment"> *
 155 * Functio5154" clas5="line" name="L154"> 1545/a> *
 155 * Functio5hf">bgap_5trate the steps to read 5ensor55emperature register.
 155 * Functio5hrmal/ti-5esired because, dependin5 on b55rn: the register value.Calls/hishermal/tiroc#L1L10p.c#L156="driverandg(TALERT)ass="line" name="L155"> 155 * Functio51rmal/ti-5to freeze the bandgap st5te ma55ate of a bandgap device 155 * Functio51n class=5 15855tween clock domains.
 155 * Functio5159" clas5="line" name="L159"> 1595/a>
<-thermal/ti-bandgap.c#L94" id="L94" class="line" name="L94">  9510" class5lass="comment"> * Return5 temp56reg" lass="cndgap_read_temp_oc-thermal/ti-ba/tbanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 ti_bandgap_read_temp>  82#define oc-"> 267     oc-mal/b/ti-bandgap.c#L94" id="L94" class="line" name="L94">  951dgap_rea5"line" name="L161"> 161<5a>POWER_SWITCHregiste                               boo">RMW_BITS(<"oo"mal/tc ti_bandgho=>ti_tclass="sref">reg);
bgp, int id)
POWEa>static  < ="+code=ti_bandgap_re a_d5"> < ="+cs class="sref">reg;
/* active a>static reg);
bgap_5="sref">temp,  267     adc_oc-mal/class="sref">reg);
POWELdgap_read_tempre reg);
);
f">bgap_5="srefL166" id="L1665 clas567="iste        Lref">tsr;
re2#define oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define (<"oo"mal/tc ti_bandgho=>ti_tcli-bandgap5c#L94" id="L94" class="l5ne" n57mal/ti-soc-5bgp, 6 102POWELdgap_read_tempre  155 * CTRL_Cname="L96">  946497="sref">POWEL109> 109
code=t-soc-t5hermal/ti5bandgap.c#L141" id="L1415 clas54"linelaaass="srefc#L94" id="L94" class="l5ne" n57mal/ti-soc-5sass="sre5 NOTSUPPod540ref">registNOTSUPP67="sref">POWELdgap_read_tempre f">bgap_5="sref"> < ="+code=ti_bandgap_re a_d5"> < ="+coi-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267        ="+code=ti_bandgap_re a_d5"> < ="+cs civers/the5mal/ti-soc-thermal/ti-ba5dgap.577l/ti-soc-t5>f">bgap_5="sref">l1, registers;         a href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267         < ="+cs cis="sref">mal/ti-soc-thermal/ti-ba5dgap.57al/ti-soc-t5 8eturn: 5 ower() -            boo">RMW_BITSti_bandg2.1p) " civers/the5mal/ti-soc-thermal/ti-ba5dgap.57al/ti-soc-t5same="L108eturn: 5 ower() - d_temp>  82#defin   9> 109
registe                                          code=t
  v2.6.1 a_d5"> < ="+cet-soc-t5hermal/ti5bandgap.c#L141" id="L1415 clas54"linela name="L155"> 155f">bgap_5="srefL166" id="L1665 clas567="istclass="comment"> *5Retur534="sref">POWER_SWITCHtime */-code=t
  v2.6.1EINVALndgap.c#Lss="srEINVAL="+c_rei-bandgap5c#L94" id="L94" class="l5ne" n58mal/ti-soc-5bg55twee  v2.6.12.1ti_bandg2.1p) " cass="sref5>reg);
  951dgap_rea8eturn: 5 ower() - d_temp>  82#defin  WEL109> 109
registe                                          code=t
  v2.6.1 a_d5"> < ="+cet-soc-t5hermal/ti5bandgap.c#L141" id="L1415 clas54"linela p.c#L1525">id)
f">bgap_5="srefL166" id="L1665 clas567="istclass="comment"> *5Retur534="sref">POWER_SWITCHtime */-code=t
  v2.6.1EINVALndgap.c#Lss="srEINVAL="+c_reiass="srefc#L94" id="L94" class="l5ne" n5me="L94">  94Ri-soc-5hass="sre5ef">val1 == ti_bandgap_readl5/a>(<5 href="+code43-thermal4a href="+code=t" class="4sref"48al1" c5ass="sref5>val1;
bgap_4bandgap.c#L166" id="L1665 clas567="/a>(<"oo"mal/tc ti_bandgho=>ti_tclass="sref5>reg);
POWELdgap_read_tempre reg;
);
ti_bandgap_readl5/a>(<589l/ti-soc-t5>f">bgap_5="srefL166" id="L1665 clas567="iste        Lref">tsr;
remc5ensor_to_adcfine 
registe        ti_bandgap_rereg;
P__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl5/a>(<5 href="+code4aL70" cla6 102POWELdgap_read_tempre ti_bandgap_readl5/a>(<59al/ti-soc-t5hermal/ti5bandgap.c#L141" id="L1415 clas54"linelass="sref"5reg);
  94gp" class4"sref"spin_72" L167"> 267  pin_72" 9ref">registe        a>;         a href="drivers/thermal/ti-soc-th72" L167"> 267 72" 9ti_bap_read_temp>  82#define reg;
bgap_5="srefL166" id="L1665 clas567="iste        Lref">tsr;
ree regi_commetemp56reg" lass="cndgap_rtsr;
ree regi_commetemp56reg">oc-trbandt < ti_bc#L91" id="L91" class="liniverbandt>ti_bc#Lti_bandgap_reRMW_BITSti_bap_read_temp>  82#define   94a-thermal4n clas pin_un72" L167"> 267  pin_un72" 9ref">registe        a>;         a href="drivers/thermal/ti-soc-th72" L167"> 267 72" 9ti_bap_read_temp>  82#define ti_bandgap_readl5/a>(<59mal/ti-soc-5h6 102POWELdgap_read_tempre reg;
id)
);
  95hermal/ti5bandgap._" hre-ermal/ti-erent54rn: the register v/ti-/span>_oc-thermal/ti-ba/tbanshol-al/tihsoc-th"drupdate TALERT "_col-a112asho=>termal/6ass="sref6>reg);
  951gp, 5() - helper function to 5ead d52ature in ADC values.
statiermal/ti-so"driver/ti-band6lass="sre6">reg;
 152 * @bgp: poi5ter t52d sensor temperature
termal/6adl" clas6="sref">ti_bandgap_readl6/a>(<60e="L94">  95reg;
  95 150<5a>
termal/6lass="sre6">reg;

termal/6adl" clre6">reg;
bgap_5e errata "Bandgap T5mpera52emperature register.
);
 * 55n class="comment"> *
);
  95/rmal/ti-5="sref">name="L154"> 1545/a> *
id)
reg;
  95hermal/ti5bandgaplls/hishermal/tiroc#L1L10p.c#L156="driverandg(TALERT)ass="line6ass="sref6">reg;
  951gp, 5() - hel5-tNOTSUPPss="it has"comill updauppor de




Nohspuriousaivspamoc urs asalobanars/hre"banshol-soc-th href="d6lass="sre6">reg;
 152);
  95 1595/a>
<-thermal/6lass="sre6">reg;
  9510" class5lass="comment"> * Ret/ti-erent54rn: lass="cndgap_read_temp/ti-erent54rn:ba/tbanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32  1595/a>
<-thermal/6lass="sre6">reg;
 a hr POWER_SWITCHregiste                               boo">RMW_BITS(<"oo"mal/tc ti_bandgho=>ti_tc6adl" clre6">reg;
ti_bandg2.1p) " 6adl" clre6">reg;
/* active a>static );
bgap_5="sref">temp, val2;
POWEtime */0s 6i-bandgap6c#L94" id="L94" class="l6ne" n62mal/ti-soc-4ask" clas4s="sref">mask;      4     49te (1r6i-bandgap6c#L94" id="L94" class="l6ne" n621l/ti-soc-t4he">bgap_5="srefL166" id="L1665 clas567="iste        Lref">tsr;
re2#define oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define (<"oo"mal/tc ti_bandgho=>ti_tc6i-bandgap6c#L94" id="L94" class="l6ne" n62al/ti-soc-t4"p" class5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 6i-bandgap6c#L94" id="L94" class="l6ne" n62mal/ti-soc-5"4 102 * CTRL_Cname="L96">  946497="sref">POWEL109> 109
code=te  v2.6.12.1ti_bandg2.1p) " 6 name="L165"> 155bgap_5="srefL166" id="L1665 clas567="istclass="comment"> NOTSUPPod540ref">registNOTSUPP67="sref">POWELdgap_read_tempre  155POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 6is="sref"6c#L94" id="L94" class="l6ne" n62al/ti-soc-t4hi-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl6 name="L165"> 155 * F-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl6i-bandgap6c#L94" id="L94" class="l6ne" n630l/ti-soc-t4he">bgap_5="sref">l1, registers;         a href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267         115ti_bandgexi==sens 6ass="sref6>reg);
RMW_BITS(<"oo"mal/tc ti_bandgho=>ti_tc6lass="sre6">id)
  951dgap_rea1<5a>t name="L__fft <  115ti_bandgexi==sens 6a-bandgap6">id)
POWER_SWITCHelser6adl" clre6">reg;
t name="L__fft <  115ti_bandgexi==sens 6a-bandgap6">reg;
);
bgap_5="sref"tic               aticefiniste        Lref">tsr;
ref">RMW_BITS(ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempoa href="drivers/thermal/ef="+code=t
  v2.6.1">iireg;
bgap_5="sref"tic               aticefinisthermal/ti-bandga"tic               aticefiniref">e1<5a>iiid)
bgap_5="srefL166" id="L1665 clas567="iste        Lref">tsr;
redrivtodmc5ensorW_BITS(ti_be=titic               aticefinHHref">registe        itic               aticefin)v2.6.1">iiid)
ti_bandg2.1p) " 6ss="sref"6reg);
registe        /span>
RMW_BITS(ef="+code=t
  v2.6.1dev>RMW_BITSi-/m
  145"failedi"drreprograms/hot "banshol-\n"thermalp_r6adl" clre6">reg;
 *> 115RMW_BITS();
  951dgap_rea5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 6ss="sref"6reg);
reg;
);
ttic               aticefin_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 6ss="sref"6>val1;
bgap_5ss="sref">u32 POWER"comm51n clas"L115"> 115ti_bandgexi==sen:r6i-bandgap6c#L94" id="L94" class="l6ne" n64al/ti-soc-t4h6 102POWELdgap_read_tempre  i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl6i-bandgap6c#L94" id="L94" class="l6ne" n65mal/ti-soc-4ask" clas4s="sref">mask;      4     49te (1r6i-bandgap6c#L94" id="L94" class="l6ne" n6me="L94">  95hgp" clas5"line/**"   Expo55n APIs-4R *m name="L159"> 1595/a>
<-thermal/6i-bandgap6c#L94" id="L94" class="l6ne" n65al/ti-soc-t5hermal/ti5bandgap.c#L141" id="L1415 clas54"linel6i-bandgap6c#L94" id="L94" class="l6ne" n6me="L94">  95  95/ti-ereot the /ti-s poi5tercurr
 155 * Functio5154" clas5="line" per fuspan>
 155 * Functio5hf">bgap_5trate thnt"> poi5ter t52d sensor temperature
termal/6 name="L165"> 155 * Functio5hrmal/ti-5esired b@tme="L="+ultmaincurr
<52d sensor temperature
termal/6 -bandgap65"> 155 * Functio51rmal/ti-5to freeze the bandgap st5te ma55ate of a bandgap device 155 * Functio51n class=5 158 155 * Functio5159" clas5="line" name="L159"> 1595/a>
<-thermal/6i-bandgap6c#L94" id="L94" class="l6ne" n6me="L9lass="c91        <>ness to/ti-ereotW_BITS(RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 ((<"oo"mal/tc ti_bandgho=>ti_tc6i-bandgap6c#L94" id="L94" class="l6ne" n6me="L9  v2.6.12.1ti_bandg2.1p) " 6ass="sref6>reg);
 * Ret/ti-erent54rn: lass="cndgap_read_temp/ti-erent54rn:ba/tbrbandt < ti_bc#L91" id="L91" class="linmal/gap.e>ti_be=tieotW_BITS(ti_be=tiruefine iiid)
val1 == reg;
);
bgap_5bandgap.c#L145" id="L1455 clas54emperature register.
);
);
  95/rmal/ti-5="sref">bgp
 152
termal/6i-bandgap6c#L94" id="L94" class="l6ne" n67e="L94">  95hermal/ti5bandgap.c#L149150"> 150<  pan>
<52d sensor temperature
termal/6i-bandgap6c#L94" id="L94" class="l6ne" n67e="L94">  951gp, 5() - he52d sensor temperature
termal/6i-bandgap65"> 155 152  95 1595/a>
<-thermal/6aass="sre6c#L94" id="L94" class="l6ne" n67mal/tlass="c91        <>ness to_oc-therotW_BITS(RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 (<"oo"mal/tc ti_bandgho=>ti_tc6 ass="sre6 id="L152" class="line" 6ame="67al/ti  v2.6.12.1ti_bandg2.1p) " 6ivers/the6mal/ti-soc-thermal/ti-ba6dgap.67mal/ti-soc-5h6 102ti_bc#L91" id="L91" class="linmal/gap.e>ti_be=tSWITCHHHHHHHHHHHHHHHHHHHHHH1<5a>ii56)
);
 155  9519" class5"line" name="L119">/ti-ercrn: the /ti-s poi5tercurr
termal/6i-bandgap6c#L94" id="L94" class="l6ne" n68e="L94">  951gp, 5() - helper fuspan>
reg);
 152 poi5ter t52d sensor temperature
termal/6 p.c#L1526">id)
  95  95
termal/6iass="sre6="sref">ti_bandgap_readl6/a>(<68> * Functio5154" clas5="line" val1;
bgap_5trate t name="L159"> 1595/a>
<-thermal/6ass="sref6>reg);
        <>ness to/ti-ermpo_ho="sref">ti <>ness to/ti-ermpRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 o_ho="sref">tibandga_ho159"> 1595/a>
<-thermal/6as="sref"6">reg;
ti_bandg2.1p) " 6adl" clas6="sref">ti_bandgap_readl6/a>(<689l/ti-soc-t5>class="class5lass="comment"> * Ret/ti-erent54rn: lass="cndgap_read_temp/ti-erent54rn:ba/tbrbandt < ti_bc#L91" id="L91" class="linmal/gap.e>ti_be=timpo_ho="sref">tibandga_hmal/gap.e>ti_be=tsireda>o_ho="sref">tsiredefin)v2.6.1">iireg;
ti_bandgap_readl6/a>(<6 href=-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl6lss="sref6="sref">ti_bandgap_readl6/a>(<6952"> 152);
  95termal/6lass="sre6">reg;
  95
 * Functio5154" clas5="line" pt"> poi5ter t52d sensor temperature
termal/6lss="sref6="sref">ti_bandgap_readl6/a>(<69> * Functio5hf">bgap_5trate thn#L149150"> 150therman>
<52d sensor temperature
termal/6ass="sref6">reg;
id)
  95/rmal/ti-5="sref"> 1595/a>
<-thermal/7adl" clap7c#L94" id="L94" class="l7ne" n70e="L9lass="c91        <>ness to_oc-thempo_ho="sref">ti <>ness to_oc-thempRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 (<"oo"mal/tc ti_bandgho=>ti_tc7ass="sref7>reg);
reg;
 * Ret_oc-therp56reg" lass="cndgap_read_temp_oc-thermal/ti-ba/tbrbandt < ti_bc#L91" id="L91" class="linmal/gap.e>ti_be=tSWITCHHHHHHHHHHHHHHHHHHHHHH1<5a>o_ho="sref">tsiredefin)v2.6.1">iiti_bandgap_readl7/a>(<70e="L9i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl7lass="sre7">reg;
reg;
reg;
bgap_5e erratname="L119">/ti-eef="+er the /ti- tpan>
reg;
);
  95/rmal/ti-5="sref">pt"> poi5ter t52d sensor temperature
termal/7lass="sre7">id)

<#L1san miliseconds52d sensor temperature
termal/7adl" clre7">reg;
  95hermal/ti5bandgap name="L159"> 1595/a>
<-thermal/7ass="sref7">reg;
  95voids="c91        <>ness to/ti-eef="+era>o_ho="sref">ti <>ness to/ti-eef="+erc#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32  1595/a>
<-thermal/7aass="sre7">reg;
  951dgap_rea5"line" name="L161">a hr 
<#L1HHHH/a>(<"oo"mal/tc ti_bandgho=>ti_tc7ss="sref"7reg);
bgp, int reg;
/* active a>static reg;
        mefine reg;
bgap_5ss="sref">u32 reg;
bgap_5="sref">l1, registers;         a href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267         115ti_bandgexi==sens 7ss="sref"7reg);
bgap_5="sref  mefine tsr;
ref">RMW_BITS(ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempef="+era>o_ho="sref">t_tempef="+erefin)v2.6.1">iif">bgap_5="sref  mefine e1<5a>ti_bap_readef="+erna href="drivers/theef="+erna hrefin)  WEL WEL2.6.1">ii>>>>>>>>>>>>>>>>class5lass="comm_ffmp(  82#__ffmoc-thermal/ti-bandgai_bandgap_read_temp" class="sref">ti_bap_readef="+erna href="drivers/theef="+erna hrefin)L2.6.1">iibgap_5="sref  mefine tsmefine registers;         a href="drivers/thermal/ti-soc-thelk_r#define  115ti_bandgexi==sens 7ap.c#L1527 id="L152" class="line" 7ame="72mal/ti-soc-4R 
<#L1HHHHiste        Lref">tsmefine  115ti_bandgexi==sens 7as="sref"7c#L94" id="L94" class="l7ne" n72e="L9i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl7i-bandgap7c#L94" id="L94" class="l7ne" n72mal/ti-soc-5"4 102 * Functio5154" clas5="linap.c#L118" id="L1185 clas51tween clock domains.
 155bgap_5e erratname="L119">/ti-eef="+er_delay the /ti- tpan>
 155  95/rmal/ti-5="sref">pt"> poi5ter t52d sensor temperature
termal/7 name="L175"> 155
<#L1san miliseconds52d sensor temperature
termal/7i-bandgap7c#L94" id="L94" class="l7ne" n73e="L94">  95hermal/ti5bandgap name="L159"> 1595/a>
<-thermal/7ass="sref7>reg);
  95voids="c91        <>ness to/ti-eef="+er_delaya>o_ho="sref">ti <>ness to/ti-eef="+er_delayc#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32  1595/a>
<-thermal/7lass="sre7">id)
  951dgap_reaap_rea5"line" name="L161">a hr 
<#L1HHHH/a>(<"oo"mal/tc ti_bandgho=>ti_tc7a-bandgap7">id)
bgp, int reg;
/* active a>static reg;
      ="+bandgap_rebgap_5ss="sref">u32 reg;
bgap_5="sref">l1, registers;         a href="drivers/thermal/ti-soc-thermal/ti-bandgap.c#L167" id="L167" class="line" name="L167"> 267        id)
);
id)
bgap_5="srefL1+bandgap_retsr;
ref">RMW_BITS(ti_be=ti_bandgap_read_temp" class="sref">ti_bap_read_tempa hr_ctr>POWER_SWITCHregitempa hr_ctr>efin)L2.6.1">ii);
bgap_5="srefL1+bandgap_ree1<5a>ti_bap_reada hr_cf="+er_delayna href="drivers/thea hr_cf="+er_delayna hrefin)  WEL WEL2.6.1">iireg;
>>>>>>>>>>>>>>>class5lass="comm_ffmp(  82#__ffmoc-thermal/ti-bandgai_bandgap_read_temp" class="sref">ti_bap_reada hr_cf="+er_delayna href="drivers/thea hr_cf="+er_delayna hrefin)L2.6.1">ii  951switche32" c4ss="line" L1+bandgap_reti_bandg2.1p) " 7ss="sref"7reg);
 115ti_bandgexi==sen:r7lass="sre7">reg;

<#L1HHHHistc5h times we read the same5value543="sref">POWEtime */0s 7ss="sref"7reg);
POWEtime */0s 7sname="L17>val1;
 115ti_bandgexi==sen:r7lass="sre7c#L94" id="L94" class="l7ne" n74mal/ti-soc-43L76" cla 
<#L1HHHHist15h times we read the same5value543="sref">POWEtime */0s 7ss="sref"7c#L94" id="L94" class="l7ne" n74al/ti-soc-t4hRRRRRRRRb/tik5h times we read the same5value543="sref">POWEtime */0s 7sname="L17 id="L152" class="line" 7ame="749l/ti-soc-t5hcase 2"comm51n clas"L115"> 115ti_bandgexi==sen:r7i-bandgap7c#L94" id="L94" class="l7ne" n75al/ti-soc-t5bgp" clas 
<#L1HHHHist1c5h times we read the same5value543="sref">POWEtime */0s 7i-bandgap7c#L94" id="L94" class="l7ne" n75href="+code4aL70" clab/tik5h times we read the same5value543="sref">POWEtime */0s 7i-bandgap7c#L94" id="L94" class="l7ne" n752l/ti-soc-t5hcase 3"comm51n clas"L115"> 115ti_bandgexi==sen:r7is="sref"7c#L94" id="L94" class="l7ne" n75al/ti-soc-t4"p" class 
<#L1HHHHist1cc5h times we read the same5value543="sref">POWEtime */0s 7iass="sre7c#L94" id="L94" class="l7ne" n75mal/ti-soc-5sass="sreb/tik5h times we read the same5value543="sref">POWEtime */0s 7is="sref"75"> 155 115ti_bandgexi==sen:r7iname="L175"> 155
<#L1gap_read_temp" cn>
<#L1HHHHist25c5h times we read the same5value543="sref">POWEtime */0s 7iass="sre75"> 155POWEtime */0s 7is="sref"75"> 155 115ti_bandgexi==sen:r7iname="L175"> 155
<#L1gap_read_temp" cn>
<#L1HHHHist5cc5h times we read the same5value543="sref">POWEtime */0s 7 name="L175"> 155POWEtime */0s 7i-bandgap7c#L94" id="L94" class="l7ne" n76href="+code4adefault"comm51n clas"L115"> 115ti_bandgexi==sen:r7i-bandgap7c#L94" id="L94" class="l7ne" n76e="L94">  951dgap_rea1<5a>rewarngap_read_temp" ">rewarnoc-thermal/ti-bandgap.ers/thermal/ti-soc-ther(ef="+code=t
  v2.6.1Wroaincf="+er delaypan>
&"159"> 1595/a>
<-thermal/7ass="sref7>reg);
POWEtime */0s 7iass="sre7">id)
reg;
);
bgap_5ss="sref">u32 );
);
  95/rmal/ti-5="sref">i <>ness to/ti-ee regi_cn>
<#L1 the /ti- tpan>

<#L1c#L118" id="L1185 clas51tween clock domains.
 152
  95hermal/ti5bandgap.ct"> poi5ter t52d sensor temperature
termal/7i-bandgap7c#L94" id="L94" class="l7ne" n77e="L94">  951gp, 5() - he>@an>
<#L149="+ultmaine regisan>
<#L1san miliseconds52d sensor temperature
termal/7i-bandgap75"> 155 152  95  95 1595/a>
<-thermal/7 ass="sre7 id="L152" class="line" 7ame="77al/tilass="c91        <>ness to/ti-ee regi_cn>
<#L1a>o_ho="sref">ti <>ness to/ti-ee regi_cn>
<#L1c#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32  1595/a>
<-thermal/7ivers/the7mal/ti-soc-thermal/ti-ba7dgap.77mal/ti-soc-43to conceeeeeeeeeeeeeeeeeeeeea hr 
<#L1HHHH/a>(<"oo"mal/tc ti_bandgho=>ti_tc7ivers/the7mal/ti-soc-thermal/ti-ba7dgap.77mal/t  v2.6.12.1ti_bandg2.1p) " 7is="sref"7mal/ti-soc-thermal/ti-ba7dgap.778l/ti-soc-t5hrmal/ti-5bandgap.c#L166" id="L1665 clas567=" ="c5h times we read the same5value543="sref">POWEtime */0s 7ivers/the7mal/ti-soc-thermal/ti-ba7dgap.77> * F-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl7 name="L175"> 155bgap_5="srefL166" id="L1665 clas567="iste        Lref">tsr;
re2#define oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define (<"oo"mal/tc ti_bandgho=>ti_tc7ass="sref7>reg);
  951dgap_rea5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 7 p.c#L1527">id)
 115ti_bandgexi==sens 7 ass="sre7c#L94" id="L94" class="l7ne" n784al/ti-soc-4Re=u3mmen5"> * CTRL_Cname="L96">  946497="sref">POWEL109> 109
 ef">SWITCHgo"dr="L115"> 115ti_bandgexi==sens 7 ass="sre7="sref">ti_bandgap_readl7/a>(<785al/ti-soc-4RRRRRmmen5"> * CTRL_Cname="L96">  946497="sref">POWEL109> 109
ti_bandg2.1p) " 7ass="sref7>val1;
bgap_5="srefL166" id="L1665 clas567="istclass="comment"> NOTSUPPod540ref">registNOTSUPP67="sref">POWELdgap_read_tempre reg);
POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 7as="sref"7">reg;
ti_bandgap_readl7/a>(<78> * F-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl7lass="sre7">reg;
  946497="sref">POWEL109> 109
ti_bandg2.1p) " 7l-bandgap7="sref">ti_bandgap_readl7/a>(<79href="+code4aL70" cla4ode=mask" clas  <>ness to/ti-eef="+era>o_ho="sref">ti <>ness to/ti-eef="+erc#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L9n>
<#L1gap_read_temp" cn>
<#L1HHHH/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 7lss="sref7="sref">ti_bandgap_readl7/a>(<79e="L94">  951dgap_rea5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 7ss="sref"7reg);
reg;
ness to/ti-eef="+er_delaya>o_ho="sref">ti <>ness to/ti-eef="+er_delayc#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L9n>
<#L1gap_read_temp" cn>
<#L1HHHH/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 7lss="sref7="sref">ti_bandgap_readl7/a>(<79> * Fuf="+code=POWER_SWIT5H" cl51s="sref">POWER"comm51n clas"L115"> 115ti_bandgexi==sen:r7ass="sref7">reg;
POWELdgap_read_tempre id)
 * F-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl8adl" clap8c#L94" id="L94" class="l8ne" n80e="L94">  95hermal/ti5bandgap.c#L118" id="L1185 clas51tween clock domains.
  951gp, 5() - he>ad_temp_oc-thef="+er_delay the set


N ef="+er_delayc#L118" id="L1185 clas51tween clock domains.
ti_bandgap_readl8rs/th8052"> 152ti_bandgap_readl8/a>(<80e="L94">  95 poi5ter t52d sensor temperature
termal/8lass="sre8">reg;
  95
<#L149150"> 15e regisan>
<#L1san miliseconds52d sensor temperature
termal/8lass="sre8">reg;
reg;
bgap_5e erratnreg;
 1595/a>
<-thermal/8ss="sref"8reg);
  95lass="c91        <>ness to_oc-thef="+er_delaya>o_ho="sref">ti <>ness to_oc-thef="+er_delayc#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32  1595/a>
<-thermal/8lass="sre8">id)
id)

<#L1gap_read_temp" cn>
<#L1HHHH/a>(<"oo"mal/tc ti_bandgho=>ti_tc8adl" clre8">reg;
ti_bandg2.1p) " 8ass="sref8">reg;
reg;
);

<#L1gap_read_temp" cn>
<#L1HHHH/e  v2.6.12.1ti_bandg2.1p) " 8lass="sre8">reg;
  95hermal/ti5bandgap Ii5bdiegiscon_couion   name="L159"> 1595/a>
<-thermal/8lass="sre8">reg;
POWEtime */0s 8ldl" clre8">reg;
POWEtime */0s 8adl" clre8">reg;
  95hermal/ti5bandgap Con_couion af>
 1595/a>
<-thermal/8ls="sref"8reg);
POWEtime */0s 8sass="sre8>val2;
POWEtime */0s 8i-bandgap8c#L94" id="L94" class="l8ne" n82al/ti-soc-t5bcase 10" 4">  95hermal/ti5bandgap Con_couion af>
 1595/a>
<-thermal/8iss="sref8c#L94" id="L94" class="l8ne" n82href="+code4aL70" cla4ode=mask" clasLandgap_rePOWEtime */0s 8iass="sre8 id="L152" class="line" 8ame="82e="L94">  951dgap_reab/tik5h times we read the same5value543="sref">POWEtime */0s 8is="sref"8c#L94" id="L94" class="l8ne" n82al/ti-soc-t5hcase 100" 4">  95hermal/ti5bandgap Con_couion af>
 1595/a>
<-thermal/8iass="sre8c#L94" id="L94" class="l8ne" n82mal/ti-soc-5sass="sre4ode=mask" clasLandgap_rePOWEtime */0s 8iass="sre8c#L94" id="L94" class="l8ne" n825al/ti-soc-4RRRRRRRRRb/tik5h times we read the same5value543="sref">POWEtime */0s 8 name="L185"> 155  95hermal/ti5bandgap Con_couion af>
 1595/a>
<-thermal/8idl" clre85"> 155POWEtime */0s 8 s="sref"8c#L94" id="L94" class="l8ne" n82al/ti-soc-t4hRRRRRRRRb/tik5h times we read the same5value543="sref">POWEtime */0s 8 name="L185"> 155  95hermal/ti5bandgap Con_couion af>
 1595/a>
<-thermal/8i-bandgap8c#L94" id="L94" class="l8ne" n83al/ti-soc-t5bgp" clas4ode=mask" clasLandgap_rePOWEtime */0s 8ass="sref8>reg);
POWEtime */0s 8lass="sre8">id)
  951default"comm51n clas"L115"> 115ti_bandgexi==sen:r8a-bandgap8">id)
rewarngap_read_temp" ">rewarnoc-thermal/ti-bandgap.ers/thermal/ti-soc-ther(ef="+code=t
  v2.6.1Delayp%d ms is not supported\n5&"verbandt>ti_bc#L9n>
<#L1gap_read_temp" cn>
<#L1HHHH/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8adl" clre8">reg;
 INVALod540ref">registINVALap_registert="+code=ti_bandgap_re a href="drivers/thermal/cl8a-bandgap8">reg;
);
bgap_5ss="sref">u32 reg;
bgap_5="srefspin_locref="drivers/thespin_locroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 8as="sref"8">id)
bgap_5="srefRMW_BIT946497="srefRMW_BIT9c#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L_tempa hr_ctr>POWER_SWITCHregitempa hr_ctr>efiniverbandt>ti_bc#La hr_cf="+er_delayna href="drivers/thea hr_cf="+er_delayna hrefiniverbandt>ti_bc#LLandgap_re 115ti_bandgexi==sens 8aname="L18">id)
bgap_5="srefspin_unlocref="drivers/thespin_unlocroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 8ss="sref"8reg);
 115ti_bandgexi==sens 8sss="sref8">reg;
POWEtime */0s 8aass="sre8reg);
);
 115ti_bandgexi==sens 8lass="sre8">reg;
  95ap.c#L118" id="L1185 clas51tween clock domains.
);
ness to_oc-thef="+er the set


N rthe reg>
val1;
bgap_5trate thner fuspan>
 * Functio5hrmal/ti-5esired bat"> poi5ter t52d sensor temperature
termal/8ss="sref"8c#L94" id="L94" class="l8ne" n84e="L94">  95/rmal/ti-5="sref">ptn>
<#L149150"> 15e regisan>
<#L1san miliseconds52d sensor temperature
termal/8sname="L18 id="L152" class="line" 8ame="84mal/ti-soc-5eame="L105bandg t name="L159"> 1595/a>
<-thermal/8i-bandgap8c#L94" id="L94" class="l8ne" n85al/ti4">  95voids="c91        <>ness to_oc-thef="+era>o_ho="sref">ti <>ness to_oc-thef="+erc#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32  1595/a>
<-thermal/8i-bandgap8c#L94" id="L94" class="l8ne" n85href="+code4aL70" claaaaaaaaaaaaaaaaaaaaaaef="+code=ti_bau">id)

<#L1gap_read_temp" cn>
<#L1HHHH/a>(<"oo"mal/tc ti_bandgho=>ti_tc8i-bandgap8c#L94" id="L94" class="l8ne" n852l/ti  v2.6.12.1ti_bandg2.1p) " 8is="sref"8c#L94" id="L94" class="l8ne" n85al/ti-soc-t4"
<#L1HHHHiste        Lref">an>
<#L1gap_read_temp" cn>
<#L1HHHHi*ref">registers;         a href="drivers/thermal/ti-soc-thelk_r#define POWEtime */0s 8iass="sre8c#L94" id="L94" class="l8ne" n85mal/ti-soc-5sf">bgap_5="srefspin_locref="drivers/thespin_locroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 8is="sref"85"> 155497="srefRMW_BIT9c#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L_tempef="+era>o_ho="sref">t_tempef="+erefiniverbandt>ti_bc#Lef="+erna href="drivers/theef="+erna hrefin"verbandt>ti_bc#L9n>
<#L1gap_read_temp" cn>
<#L1HHHH/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8iname="L185"> 155bgap_5="srefspin_unlocref="drivers/thespin_unlocroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 8iass="sre85"> 155 155);
 155 155  95hermal/ti5bandgap.i <>ness to_oc-the regi_cn>
<#L1 the set


N e regisan>
<#L1c#L118" id="L1185 clas51tween clock domains.
  951gp, 5() - he>@er fuspan>
 152 poi5ter t52d sensor temperature
termal/8ass="sref8>reg);
  95 15e regisan>
<#L1san miliseconds52d sensor temperature
termal/8iass="sre8">id)
  95
termal/8is="sref"8">reg;
);
bgap_5trate t name="L159"> 1595/a>
<-thermal/8ss="sref"8reg);
        <>ness to_oc-the regi_cn>
<#L1a>o_ho="sref">ti <>ness to_oc-the regi_cn>
<#L1c#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 159"> 1595/a>
<-thermal/8ss="sref"8reg);
id)

<#L1gap_read_temp" cn>
<#L1HHHH/a>(<"oo"mal/tc ti_bandgho=>ti_tc8sname="L1858"4ass="line" name="L688ne" n8652">   v2.6.12.1ti_bandg2.1p) " 8i-bandgap8c#L94" id="L94" class="l8ne" n870al/ti-soc-4Remal/ti-5bandgap.c#L166" id="L1665 clas567=" ="="c91        <>ness to2#define oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define (<"oo"mal/tc ti_bandgho=>ti_tc8i-bandgap85"> 155  951dgap_rea5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8iss="sref8 id="L152" class="line" 8ame="87e="L9SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8aass="sre8c#L94" id="L94" class="l8ne" n874al/ti-soc-4Re=u3mmen5"> * CTRL_Cname="L96">  946497="sref">POWEL109> 109
 ef">SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8 ass="sre8 id="L152" class="line" 8ame="875al/ti-soc-4RRRRRmmen5"> * CTRL_Cname="L96">  946497="sref">POWEL109> 109
ti_bandg2.1p) " 8ivers/the8mal/ti-soc-thermal/ti-ba8dgap.87mal/ti-soc-43to conce/ti-5bandgap.c#L166" id="L1665 clas567=" ="class="comment"> NOTSUPPod540ref">registNOTSUPP67="sref">POWELdgap_read_tempre POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8is="sref"8mal/ti-soc-thermal/ti-ba8dgap.87al/ti-soc-t4hi-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl8ivers/the8mal/ti-soc-thermal/ti-ba8dgap.87> * F-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl8 name="L185"> 155  946497="sref">POWEL109> 109
ti_bandg2.1p) " 8i-bandgap8c#L94" id="L94" class="l8ne" n88href="+code4aL70" cla4ode=mask" clas  <>ness to_oc-thef="+era>o_ho="sref">ti <>ness to_oc-thef="+erc#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L9n>
<#L1gap_read_temp" cn>
<#L1HHHH/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8ass="sref8>reg);
  951dgap_rea5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8 p.c#L1528">id)
ti_bandgap_readl8/a>(<885al/ti-soc-4R4ode=mask" clasL166" id="L1665 clas567=" ="="c91        <>ness to_oc-thef="+er_delaya>o_ho="sref">ti <>ness to_oc-thef="+er_delayc#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L9n>
<#L1gap_read_temp" cn>
<#L1HHHH/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 8avers/the8>val1;
POWER"comm51n clas"L115"> 115ti_bandgexi==sen:r8ass="sref8>reg);
POWELdgap_read_tempre reg;
ti_bandgap_readl8/a>(<88> * F-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl8lass="sre8">reg;
  95hermal/ti5bandgap.c#L118" id="L1185 clas51tween clock domains.
ti_bandgap_readl8/a>(<89e="L94">  951gp, 5() - he>ad_temp/ti-eaticera102e the /tport curr()  aticera102ec#L118" id="L1185 clas51tween clock domains.
ti_bandgap_readl8/a>(<8952"> 152);
  95 poi5ter t52d sensor temperature
termal/8lass="sre8">reg;
  95 * Functio5154" clas5="linmm52d sensor temperature
termal/8lss="sref8="sref">ti_bandgap_readl8/a>(<89> * Functio5_f">bgap_5e erratnreg;
 1595/a>
<-thermal/8as="sref"8">id)
ti <>ness to/ti-eaticera102ec#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32  1595/a>
<-thermal/8ldl" clas8c#L94" id="L94" class="l8ne" n899al/ti-soc-43to conceeeeeeeeeeeeeeeeea hr titicera102ec#S(<"oo"mal/tc ti_bandgho=>ti_tc9adl" clap9c#L94" id="L94" class="l9ne" n90e="L9  v2.6.12.1ti_bandg2.1p) " 9ass="sref9>reg);
bgap_5="srefu">id)
o_ho="sref">titic67="sref">POWELdgap_read_tempre "sref">ti_bandgap_readl9rs/th90e="L94">  951emal/ti-5bandgap.c#L166" id="L1665 clas567="sref">POWELdgap_read_tempre eg);
 115ti_bandgexi==sens 9lass="sre9">reg;
bgap_5="srefL166" id="L1665 clas567=" ="="c91        <>ness to2#define oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define reg;
(<"oo"mal/tc ti_bandgho=>ti_tc9adl" clre9">reg;
POWELdgap_read_tempre reg;
POWELdgap_read_tempre id)
 * CTRL_Cname="L96">  946497="sref">POWEL109> 109
ti_bandg2.1p) " 9lass="sre9">id)
bgap_5="srefL166" id="L1665 clas567=" ="="c91        <>ness toforce_smaileo/ti-fine oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define reg;
(<"oo"mal/tc ti_bandgho=>ti_tc9ass="sref9">reg;
POWELdgap_read_tempre reg;
  951i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl9ss="sref"9reg);
 115ti_bandgexi==sens 9lass="sre9">reg;
bgap_5="srefspin_locref="drivers/thespin_locroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 9lass="sre9">reg;
o_ho="sref">titic67="iste        Lref">tsr;
ref">R_ tica>o_ho="sref">tisr;
ref">R_ tic>oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define reg;
bgap_5="srefspin_unlocref="drivers/thespin_unlocroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 9adl" clre9">reg;
POWELdgap_read_tempre );
bgap_5="srefL166" id="L1665 clas567=" ="="c91        <>ness toadc_to_mcelsiump(  82#  <>ness toadc_to_mcelsium>oc-trbandt < ti_bc#L tica>o_ho="sref">titic67=",  ef">ermal/ti-bandga tica>o_ho="sref">titic67="/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 9aass="sre9>val2;
(<"oo"mal/tc ti_bandgho=>ti_tc9i-bandgap9c#L94" id="L94" class="l9ne" n92al/ti-soc-t5bgp" clas6 102 IOod540ref">registIO67="sref">POWELdgap_read_tempre POWELdgap_read_tempre   951 titicera102ec#S< ="="c91       tica>o_ho="sref">titic67="sref">POWELdgap_read_tempre  115ti_bandgexi==sens 9iass="sre9c#L94" id="L94" class="l9ne" n92mal/ti-soc-5s6 102POWEtime */0s 9iass="sre9c#L94" id="L94" class="l9ne" n92href=i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl9 name="L195"> 155bgap_5ss="sref">u32  155  95/rmal/ti-5="sref">i <>ness toset_poi5te_data the help infunction to store ins. 155 152  95hermal/ti5bandgap.cer fuspan>
reg);
  951gp, 5() - he>@a"> poi5ter t52d sensor temperature
termal/9lass="sre9">id)
 152id)
  95reg;
  95reg;
 1595/a>
<-thermal/9aname="L19reg);
        <>ness toset_poi5te_datap(  82#  <>ness toset_poi5te_datac#SRMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 (  82#datac#S(<"oo"mal/tc ti_bandgho=>ti_tc9lass="sre9">reg;
ti_bandg2.1p) " 9as="sref"9">id)
ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define id)
(<"oo"mal/tc ti_bandgho=>ti_tc9ss="sref"9reg);
POWELdgap_read_tempre reg;
POWELdgap_read_tempre );
  951ermal/ti-bandgap.ers/thermal/ti-soc-ther(ti_bc#L91" id="L91" class="lin].      datap(  82#datac#SPOWELdgap_read_tempre );
 115ti_bandgexi==sens 9lass="sre9">reg;
POWEtime */0s 9ss="sref"9reg);
val1;
bgap_5ss="sref">u32  * Functio5hrmal/ti-5esireap.c#L118" id="L1185 clas51tween clock domains.
  95/rmal/ti-5="sref"> ndgap_readget_poi5te_data the help infunction to get


N.  95hermal/ti5bandgap.cer fuspan>
  951gp, 5() - he>@a"> poi5ter t52d sensor temperature
termal/9i-bandgap9c#L94" id="L94" class="l9ne" n9552"> 152  95  95 1595/a>
<-thermal/9is="sref"95"> 155RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 (<"oo"mal/tc ti_bandgho=>ti_tc9iname="L195"> 155ti_bandg2.1p) " 9iass="sre95"> 155ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define  155(<"oo"mal/tc ti_bandgho=>ti_tc9iname="L195"> 155ti_bap_read_temp>  82#define  155 115ti_bandgexi==sens 9i-bandgap9c#L94" id="L94" class="l9ne" n96href="+code4a6 102ti_bc#L91" id="L91" class="lin].reg);
 115ti_bandgexi==sens 9iass="sre9">id)
  95ap.*e4aHelp infunctions used due=t
 devicisanititemzation   p.* name="L159"> 1595/a>
<-thermal/9is="sref"9">reg;
 1595/a>
<-thermal/9iname="L19reg);
bgap_5trateap.c#L118" id="L1185 clas51tween clock domains.
);
);
  95/rmal/ti-5="sref">per fuspan>
ti_ba>staL118" id="L1185 clas51tween clock domains.
 poi5ter t which it is 150"> 15atu/ti- 1 aticera102ec#L118" id="L1185 clas51tween clock domains.
  95hermal/ti5bandgapc#L118" id="L1185 clas51tween clock domains.
  951gp, 5() - he>Us 15atuanititemze


N efn_couion 4"> e mach94"  155 152 e. Called due=t
 devicisanititemzation   95  95
termal/9as="sref"9 id="L152" class="line" 9ame="97> * Functio5154" clas5="linmm name="L159"> 1595/a>
<-thermal/9ivers/the9mal/ti-soc-thermal/ti-ba9dgap.97mal/t4">  95las159"> 1595/a>
<-thermal/9is="sref"9mal/ti-soc-thermal/ti-ba9dgap.97mal/t="c91        <>ness toforce_smaileo/ti-fine oc-tanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 (<"oo"mal/tc ti_bandgho=>ti_tc9is="sref"9mal/ti-soc-thermal/ti-ba9dgap.97al/ti  v2.6.12.1ti_bandg2.1p) " 9ivers/the9mal/ti-soc-thermal/ti-ba9dgap.979l/ti-soc-t5>f">bgap_5="srefu">id)
o_ho="sref">tef="+erc#S< ="10005h times we read the same5value543="sref">POWEtime */0s 9 name="L195"> 155(  82# tic_poi5te_="+is+ermtatic tisrc#S<<__erma__>ti_bap_read_temp>  82#define POWELdgap_read_tempre reg);
  9514">  95hermal/ti5bandgap Seleol-smaile efn_couion modemm name="L159"> 1595/a>
<-thermal/9 p.c#L1529">id)
  946497="sref">POWEL109> 109
 1595/a>
<-thermal/9 ass="sre9c#L94" id="L94" class="l9ne" n98mal/ti-soc-5sass="sre4ode=mask" clasRMW_BIT946497="srefRMW_BIT9c#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L_tempmode_ctr>POWER_SWITCHregitempaode_ctr>"liniverbandt>ti_bc#Laode_ctr>na href="drivers/theaode_ctr>na hr"liniv0/<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl9/a>(<98> * F159"> 1595/a>
<-thermal/9avers/the9>val1;
  9514">  95hermal/ti5bandgap Start of Con_couion ="1mm name="L159"> 1595/a>
<-thermal/9 s="sref"9>reg);
bgap_5="srefRMW_BIT946497="srefRMW_BIT9c#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L tic_poi5te_ctr>POWER_SWITCHreg tic_poi5te_ctr>"liniverbandt>ti_bc#L_temp0 -na href="drivers/the_temp0 -na hr"liniv1/<__erma__>ti_bap_read_temp>  82#define reg;
);
ti_bandgap_readl9/a>(<989="L94">  9514">  95hermal/ti5bandgap Wait for EOCZ go=t
 upmm name="L159"> 1595/a>
<-thermal/9lass="sre9">reg;
bgap_5="sreftsra>o_ho="sref">tisrc#S< ="="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5temp(  82#poi5temHHHH[erbandt>ti_bc#L91" id="L91" class="lin].(  82#="+is+ermtati<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl9/a>(<99href=ref">POWELdgap_read_tempre ti_bandgap_readl9/a>(<99e="L94">  951while (-class="comment">ef="+era>o_ho="sref">tef="+erc#Sti_bandg2.1p) " 9ss="sref"9reg);
;
ref">R1a>o_ho="sref">ti <>ness tof">R1c#Sti_bc#Ltsra>o_ho="sref">tisrc#SPOWER_SWITCHreg tic_poi5te_ctr>"lin)  ef"> v2.6.12.1ti_bandg2.1p) " 9sass="sre9">reg;
f">bgap_5="sreftsra>o_ho="sref">tisrc#Sti_bandgho=>ti_tc9lass="sre9c#L94" id="L94" class="l9ne" n995al/ti-soc-4RRRRRRRRRRRRRRRRRb/tik5h times we read the same5value543="sref">POWEtime */0s 9lss="sref9="sref">ti_bandgap_readl9/a>(<996="L94">  951i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl9ass="sref9">reg;
POWELdgap_read_tempre id)
  9514">  95hermal/ti5bandgap Start of Con_couion ="0mm name="L159"> 1595/a>
<-thermal/9ldl" clas9c#L94" id="L94" class="l9ne" n999l/ti-soc-t5>f">bgap_5="srefRMW_BIT946497="srefRMW_BIT9c#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#L tic_poi5te_ctr>POWER_SWITCHreg tic_poi5te_ctr>"liniverbandt>ti_bc#L_temp0 -na href="drivers/the_temp0 -na hr"liniv0/<__erma__>ti_bap_read_temp>  82#define _erma__>ti_bap_read_temp>  82#define ti_bandgap_readl100"s>1001="L94">  9514">  95hermal/ti5bandgap Wait for EOCZ go=t
 downmm name="L159"> 1595/a>
<-thermal/1002l" clas100"sref">ti_bandgap_readl100"s>100e="L94">  951ermal/ti-bandgaef="+era>o_ho="sref">tef="+erc#S< ="10005h times we read the same5value543="sref">POWEtime */0s 1003l" clas100eg);
  951while (-class="comment">ef="+era>o_ho="sref">tef="+erc#Sti_bandg2.1p) " 1004l" clas100>reg;
;
ref">R1a>o_ho="sref">ti <>ness tof">R1c#Sti_bc#Ltsra>o_ho="sref">tisrc#SPOWER_SWITCHreg tic_poi5te_ctr>"lin)  ef"> v2.6.12.1ti_bandg2.1p) " 1005l" clas100#L94" id="L94" class="l100#L>1005al/ti-soc-4RRRRRRRRRRRRRRRf">bgap_5="sreftsra>o_ho="sref">tisrc#Sti_bandgho=>ti_tc1006l" clas100"sref">ti_bandgap_readl100"s>100mal/ti-soc-43to conceRRRRRRRRb/tik5h times we read the same5value543="sref">POWEtime */0s 1007l" clas100>reg;
  951i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1008l" clas100>id)
);
POWEtime */0s 1010l" clas10">reg;
r>10">="L9i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl10"1l" clas10">reg;
r>10"href=ref">POWELdgap_read_tempre reg;
r>10"52"> 152);
  95reg;
r>10"e="L94">  95
ti_ba>staL118" id="L1185 clas51tween clock domains.
reg;
r>10"> * Functio5154" clas5="linmm52d sensor temperature
termal/10"6l" clas10">reg;
r>10"> * Functio5_f">bgap_5e erratnCall this
function onlyel=uHAS(MODE_CONFIG) is set. As this
ature< mayc#d sensor temperature
termal/10"7l" clas10">reg;
r>10"> * Functio5hrmal/ti-5esired bbe used for junction tticera102e monitoe=t
, it is 150">able


at


Nc#d sensor temperature
termal/10"8l" clas10reg);
  95/rmal/ti-5="sref">poi5tem a2e ocera1ional all the>  me, so


at
alertm a2e genera1et52d sensor temperature
termal/10"9l" clas10>val2;
  951gp, 5() - he>
termal/10c2l" clas10 id="L152" class="line" 10 id>10c52"> 152 1595/a>
<-thermal/1023l" clas10c#L94" id="L94" class="l10c#L>10c3al/t4">  95lass="c91        <>ness toset_efntinuouspaodea>o_ho="sref">ti <>ness toset_efntinuouspaode>oc-tanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32/a>(<"oo"mal/tc ti_bandgho=>ti_tc1024l" clas10c#L94" id="L94" class="l10c#L>10c4l/ti  v2.6.12.1ti_bandg2.1p) " 10c5l" clas10c#L94" id="L94" class="l10c#L>10c.c#L57" id=41l href="+code=ti_ban" id="L91" classtati<__erma__>ti_bap_read_temp>  82#define  155>10cal/ti-soc-t53f">bgap_5ss="sref">u32  155>10c7="L94">  951for brbandt < o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tehef="+p(  82#poi5tehef="+tatiti_bandg2.1p) " 1028l" clas10c#L94" id="L94" class="l10c#L>10cal/ti-soc-t4hRRRRRRRR4">  95hermal/ti5bandgap Perform a-smaile /ti- justbbefore enabl=t
 efntinuous m name="L159"> 1595/a>
<-thermal/1029l" clas105"> 155>10c9al/ti-soc-43to concef">bgap_5="sref  <>ness toforce_smaileo/ti-fine oc-trbandt < ti_bc#L9" id="L91" classtati/<__erma__>ti_bap_read_temp>  82#define 497="srefRMW_BIT9c#Sti_bc#L9" id="L91" classtatiiverbandt>ti_bc#L_tempmode_ctr>POWER_SWITCHregitempaode_ctr>"liniverbandt>ti_bc#Laode_ctr>na href="drivers/theaode_ctr>na hr"liniv1/<__erma__>ti_bap_read_temp>  82#define reg);
  951i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1032l" clas10">id)
i>10c2l/ti-soc-t53f">bgap_5ss="sref">u32 id)
i>10c3="L94">  9516 102POWEtime */0s 1034l" clas10">reg;
r>10c4="L9i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1035l" clas10">reg;
r>10c> * F159"> 1595/a>
<-thermal/10c6l" clas10reg);
bgap_5trateap.c#L118" id="L1185 clas51tween clock domains.
reg;
r>10c> * Functio5hrmal/ti-5esired b ndgap_readget_tren- the To fetch the> ticera102e tren- of a>poi5tec#L118" id="L1185 clas51tween clock domains.
id)
i>10ce="L94">  95/rmal/ti-5="sref">per fuspan>
ti_ba>staL118" id="L1185 clas51tween clock domains.
id)
i>10cmal/ti-soc-5eame="L105bandg tc@a"> i- of the>individual poi5tec#L118" id="L1185 clas51tween clock domains.
);

reg;
r>10re="L94">  951gp, 5() - hec#L118" id="L1185 clas51tween clock domains.
);
 152);
  95reg;
r>10re="L94">  95  me. F




N 
 ticera102esc#L118" id="L1185 clas51tween clock domains.
);
val1;
bgap_5e erratn6 102  95/rmal/ti-5="sref">10rmal/ti-soc-5eame="L105bandg tccccccccccccccs. ren- value is pameetson atutren- parlas+erc#L118" id="L1185 clas51tween clock domains.
 152 1595/a>
<-thermal/1051l" clas10c#L94" id="L94" class="l10c#L>10ce="L9lass="c91        <>ness toget_tren-fine oc-tanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 oc-/a>(<"oo"mal/tc ti_bandgho=>ti_tc1052l" clas10c#L94" id="L94" class="l10c#L>10c2l/ti  v2.6.12.1ti_bandg2.1p) " 1053l" clas10c#L94" id="L94" class="l10c#L>10c3="L94">  951anshol->RMW_BITS(<_tic_poi5te_="+is+ermp(  82# tic_poi5te_="+is+ermtatic tisrc#S<<__erma__>ti_bap_read_temp>  82#define bgap_5="srefu">id)
(  82# tic1"liniverbandt>ti_bc#L tic>id)
"liniverbandt>ti_bc#L="+1p(  82#="+1"liniverbandt>ti_bc#L="+>id)
c#S<<__erma__>ti_bap_read_temp>  82#define  155>10c.c#L57" id=41l href="+code=ti_bat1p(  82# 1"liniverbandt>ti_bc#L >id)
"liniverbandt>ti_bc#L9n>
<#L1gap_read_temp" cn>
<#L1HHHHiverbandt>ti_bc#L="66" id="L1665 clas567=" ="c5h times we read the same5value543="sref">POWEtime */0s 1056l" clas105"> 155>10cal/ti-soc-t53f">bgap_5ss="sref">u32  155>10c7l/ti-soc-t5>f">bgap_5="srefL166" id="L1665 clas567=" ="="c91        <>ness to2#define oc-trbandt < ti_bc#L91" id="L91" class="lin(<__erma__>ti_bap_read_temp>  82#define  155>10c8c#L57" id=41l=u32" c4ss="line" L166" id="L1665 clas567="/a>(<"oo"mal/tc ti_bandgho=>ti_tc10c9l" clas105"> 155>10c9al/ti-soc-43to conce5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1060l" clas105"> 155>105"l/ti-soc-t53f">bgap_5ss="sref">u32  * CTRL_Cname="L96">  946497="sref">POWEL109> 109
bgap_5ss="sref">u32  * CTRL_Cname="L96">  946497="sref">POWEL109> 109
ti_bandg2.1p) " 1063l" clas10>reg);
bgap_5="srefL166" id="L1665 clas567=" ="class="comment"> NOTSUPP6" id="L1665 cl NOTSUPPOWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1064l" clas10">id)
i>105mal/ti-soc-5sass="sre5a href="+code=POWER_SWIT5H" cl51s="sref">POWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1065l" clas10">reg;
r>105.c#L57" id=41i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1066l" clas10reg);
bgap_5ss="sref">u32 );
bgap_5="srefspin_locref="drivers/thespin_locroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 1058l" clas10reg);
);
1059l/ti-soc-t5>f">bgap_5="sreftsra>o_ho="sref">tisrc#S< ="="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5temp(  82#poi5temHHHH[erbandt>ti_bc#L91" id="L91" class="lin].(  82#="+is+ermtWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1070l" clas10c#L94" id="L94" class="l10c#L>10c#l/ti-soc-t5>56)
);
  9514">  95hermal/ti5bandgap Freez" hert 2 _temp /ti-ings m name="L159"> 1595/a>
<-thermal/1072l" clas105"> 155>10ce="L94">  951ermal/ti-bandgaRMW_BIT946497="srefRMW_BIT9c#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#Litempaask_ctr>POWER_SWITCHregitempaask_ctr>"liniverbandt>ti_bc#Laask_freez"na href="drivers/theaask_freez"na hr"liniv1/<__erma__>ti_bap_read_temp>  82#define 10c3="L94">  951ermal/ti-bandga="+1p(  82#="+1"lin ="="c91       sra>o_ho="sref">tisrc#Snd tic_1p(  82#ctr>nd tic_1tWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1074l" clas10c#L94" id="L94" class="l10c#L>10cmal/ti-soc-5sf">bgap_5="srefL1+>id)
c#S< ="="c91       sra>o_ho="sref">tisrc#Snd tic_>id)
nd tic_>tWER_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1075l" clas10 id="L152" class="line" 10 id>10c> * F159"> 1595/a>
<-thermal/1076l" clas10mal/ti-soc-thermal/ti-ba10mal>10c6="L94">  9514">  95hermal/ti5bandgap /ti- tticera102e from
history buffer m name="L159"> 1595/a>
<-thermal/1077l" clas10mal/ti-soc-thermal/ti-ba10mal>10c7l/ti-soc-t5>f">bgap_5="srefitic1p(  82# tic1"liniste        Lref">tsr;
ref">R1a>o_ho="sref">ti <>ness tof">R1c#Sti_bc#L="+1p(  82#="+1"lin/<__erma__>ti_bap_read_temp>  82#define 10cal/ti-soc-t4he">bgap_5="srefitic1p(  82# tic1"lini ef">="="c91       sra>o_ho="sref">tisrc#S 115ti_bandgexi==sens 1079l" clas10mal/ti-soc-thermal/ti-ba10mal>10c9 * F159"> 1595/a>
<-thermal/1080l" clas105"> 155>105"l/ti-soc-t4he">bgap_5="srefitic>id)
"liniste        Lref">tsr;
ref">R1a>o_ho="sref">ti <>ness tof">R1c#Sti_bc#L="+>id)
c#Sti_bap_read_temp>  82#define bgap_5="srefitic>id)
"lini ef">="="c91       sra>o_ho="sref">tisrc#S 115ti_bandgexi==sens 1082l" clas10>reg);
bgap_5ss="sref">u32 id)
i>1053="L94">  9514">  95hermal/ti5bandgap Con_cot from
adc valuesaatumCelsium tticera102e m name="L159"> 1595/a>
<-thermal/1084l" clas10c#L94" id="L94" class="l10c#L>105mal/ti-soc-5sf">bgap_5="srefL166" id="L1665 clas567=" ="="c91        <>ness toadc_to_mcelsiump(  82#  <>ness toadc_to_mcelsium>oc-trbandt < ti_bc#L tic1p(  82# tic1"liniv ef">ermal/ti-bandga 1p(  82# 1"lin/<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl10="s>105.c#L57" id=41l=u32" c4ss="line" L166" id="L1665 clas567="/a>(<"oo"mal/tc ti_bandgho=>ti_tc1086l" clas10>val1;
)
 115ti_bandgexi==sens 1087l" clas10>reg);
POWELdgap_read_tempre reg;
r>105al/ti-soc-t4he">bgap_5="srefL166" id="L1665 clas567=" ="="c91        <>ness toadc_to_mcelsiump(  82#  <>ness toadc_to_mcelsium>oc-trbandt < ti_bc#L tic>id)
"liniv ef">ermal/ti-bandga >id)
"lin/<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl10="s>1059al/ti-soc-43l=u32" c4ss="line" L166" id="L1665 clas567="/a>(<"oo"mal/tc ti_bandgho=>ti_tc1090l" clas10">reg;
r>10">al/ti-soc-43to conce5a href="+code=POWERunfreez"id)
 115ti_bandgexi==sens 1091l" clas10="sref">ti_bandgap_readl10="s>10"href=ref">POWELdgap_read_tempre ti_bandgap_readl10="s>10"e="L94">  9514">  95hermal/ti5bandgap Fetch the>upp
<#L1 m name="L159"> 1595/a>
<-thermal/1093l" clas10reg);
  951ermal/ti-bandga="66" id="L1665 clas567=" ="="c91        <>ness tof">R_upp
<#L1gap_read_temp"   <>ness tof">R_upp
<#L1c#Sti_bc#L91" id="L91" class="liniv ef">ermal/ti-bandga9n>
<#L1gap_read_temp" cn>
<#L1HHHH/<__erma__>ti_bap_read_temp>  82#define reg;
r>10"4al/ti-soc-43l=u32" c4ss="line" L166" id="L1665 clas567="/a>(<"oo"mal/tc ti_bandgho=>ti_tc1095l" clas10c#L94" id="L94" class="l10c#L>10"5al/ti-soc-4RRRRRRRRR5a href="+code=POWERunfreez"id)
 115ti_bandgexi==sens 1096l" clas10="sref">ti_bandgap_readl10="s>10"al/ti-soc-t53f">bgap_5ss="sref">u32 reg;
r>10"7="L94">  9514">  95hermal/ti5bandgap Set


N cn>
<#L1  hr1 ms3l=u+co53=r ef="+er delay is not set
m name="L159"> 1595/a>
<-thermal/1098l" clas10">id)
i>10"8c#L57" id=41l=u32" c4ss="line" 9n>
<#L1gap_read_temp" cn>
<#L1HHHH == 0/a>(<"oo"mal/tc ti_bandgho=>ti_tc1099l" clas10c#L94" id="L94" class="l10c#L>10"9al/ti-soc-43to concef">bgap_5="sref9n>
<#L1gap_read_temp" cn>
<#L1HHHH = 1_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1100l" clas1100l"4" id="L94" class="l1100l>110#l/ti-soc-t5>56)
);
ti_bandgap_readl110"s>1101="L94">  951 (  82# 1"lin -verbandt>ti_bc#L >id)
"lin) /ef">bgap_5="sref9n>
<#L1gap_read_temp" cn>
<#L1HHHH_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1102l" clas110"sref">ti_bandgap_readl110"s>1102l/ti-soc-t53f">bgap_5ss="sref">u32 );
  951ermal/ti-bandgadev_dbggap_read_temp" dev_dbgc#S  95hermalste=t
">"The> ticera102es a2e t1 = %d bgap_5ss="sref">u32 reg;
(  82# 1"liniverbandt>ti_bc#L >id)
"liniv  115ti_bandgexi==sens 1105l" clas110#L94" id="L94" class="l110#L>110> * F159"> 1595/a>
<-thermal/1106l" clas110"sref">ti_bandgap_readl110"s>110mal/tef="+code=POWERunfreez"id)
 1595/a>
<-thermal/1107l" clas110>reg;
bgap_5="srefRMW_BIT946497="srefRMW_BIT9c#Sti_bc#L91" id="L91" class="liniverbandt>ti_bc#Litempaask_ctr>POWER_SWITCHregitempaask_ctr>"liniverbandt>ti_bc#Laask_freez"na href="drivers/theaask_freez"na hr"liniv0/<__erma__>ti_bap_read_temp>  82#define id)
bgap_5="srefspin_unlocref="drivers/thespin_unlocroc-th ef">ermal/ti-bandgap.ers/thermal/ti-soc-ther( 115ti_bandgexi==sens 1109l" clas110#L94" id="L94" class="l110#L>1109l/tief="+code=POWER_SWIT5H" cl51s="sref">POWER:159"> 1595/a>
<-thermal/1110l" clas11">reg;
r>111>al/ti-soc-436 102 115ti_bandgexi==sens 11"1l" clas11">reg;
r>11"href=i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl11"2l" clas11">reg;
r>1112l/ti-soc-t53f">bgap_5ss="sref">u32 );
  95reg;
r>11"e="L94">  95ness totshut_anit the setup reg;
r>11"> * Functio5154" clas5="linmm>per fuspan>
ti_ba>staL118" id="L1185 clas51tween clock domains.
reg;
r>11"> * Functio5_f">bgap_5e erratn@pdevfuspan>
reg;
r>11"> * Functio5hrmal/ti-5esired taL118" id="L1185 clas51tween clock domains.
);
  95/rmal/ti-5="sref">Call this
function onlyel 95ase


N 
val2;
 15as a GPIO,  1c#L118" id="L1185 clas51tween clock domains.
  951gp, 5() - he>atuapecify which GPIO L94" is used. TSHUT IRQ is f"> 15any  mec#L118" id="L1185 clas51tween clock domains.
11c52"> 152  95  95 usc#L118" id="L1185 clas51tween clock domains.
 155>112> * Functio5_f">bgap_5e errat name="L159"> 1595/a>
<-thermal/11c7l" clas115"> 155>11c7="L94">  95lass="c91        <>ness totshut_anitgap_read_temp"   <>ness totshut_anitoc-thanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 159"> 1595/a>
<-thermal/11c8l" clas11c#L94" id="L94" class="l11c#L>11cal/ti-soc-t4hRRRRRRRRRRRRRRRRRRRRRRRRRanshol->RMW_BITS(platform_devicitatic (<"oo"mal/tc ti_bandgho=>ti_tc1129l" clas115"> 155>11c9al/t  v2.6.12.1ti_bandg2.1p) " 1130l" clas11c#L94" id="L94" class="l11c#L>11c#al/ti-soc-5slass="c91      gpio_nra>o_ho="sref">tgpio_nr67=" ="="c91      p.ers/thermal/ti-soc-ther(o_ho="sref">tishut_gpio67="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 11c1l" clas11>reg);
  951lass="c91      4"> usef="drivers/thes"> usc#="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 11c2l" clas11">id)
i>11c2l/ti-soc-t53f">bgap_5ss="sref">u32 id)
i>1133="L94">  9514">  95hermal/ti5bandgap Request for gpio_86 L94" t name="L159"> 1595/a>
<-thermal/1134l" clas11">reg;
r>113mal/ti-soc-5sf">bgap_5="sref4"> usef="drivers/thes"> usc#=" ="="c91      gpio_requesta>o_ho="sref">tgpio_requestc#So_ho="sref">tgpio_nr67="ive">  95hermalste=t
">"ishut"name="L/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1135l" clas11">reg;
r>113.c#L57" id=41l=u32" c4ss="line" 4"> usef="drivers/thes"> usc#=" <r0/e  v2.6.12.1ti_bandg2.1p) " 11c6l" clas11reg);
  95hermalste=t
">"Could not request for TSHUT GPIO:%i\n"name="L, 86/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1137l" clas11">reg;
r>1137al/ti-soc-43to conce6 102 usef="drivers/thes"> usc#="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 11c8l" clas11">id)
i>113al/ti-soc-t4hi-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl11c9l" clas11">id)
i>1139l/ti-soc-t5>f">bgap_5="sref4"> usef="drivers/thes"> usc#=" ="="c91      gpio_d"> ction_anputa>o_ho="sref">tgpio_d"> ction_anputc#So_ho="sref">tgpio_nr67="/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1140l" clas11reg);
 usef="drivers/thes"> usc#="/e  v2.6.12.1ti_bandg2.1p) " 1141l" clas11">reg;
r>1141al/ti-soc-43to conceermal/ti-bandgadev_s.  95hermalste=t
">"Cannot set
anput TSHUT GPIO %d\n"name="L,s="c91      gpio_nra>o_ho="sref">tgpio_nr67="/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1142l" clas11reg);
 usef="drivers/thes"> usc#="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1143l" clas11reg);
reg;
r>11re="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl11r5l" clas11reg);
bgap_5="sref4"> usef="drivers/thes"> usc#=" ="="c91      request_irq6" id="L1665 clasquest_irqc#Stgpio_nr67="/iverbandt>ti_bc#L  <>ness totshut_arq_ho_ho="sref">ti <>ness totshut_arq_h 159"> 1595/a>
<-thermal/11r6l" clas11>val1;
bgap_5="srefIRQF_TRIGGER_RISINGAS=i" class="srIRQF_TRIGGER_RISING67="ive">  95hermalste=t
">"ishut"name="Liverbandt>ti_bc#LNULLAS=i" class="srNULL67="/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1147l" clas11c#L94" id="L94" class="l11c#L>1147c#L57" id=41l=u32" c4ss="line" 4"> usef="drivers/thes"> usc#="/e  v2.6.12.1ti_bandg2.1p) " 1148l" clas11c#L94" id="L94" class="l11c#L>114al/ti-soc-t4hRRRRRRRR4bandt < o_ho="sref">tgpio_freec#So_ho="sref">tgpio_nr67="/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1149l" clas11 id="L152" class="line" 11 id>1149al/ti-soc-43to concef">bgap_5="srefdev_s.  95hermalste=t
">"request arq failed for TSHUT"name="L/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1150l" clas11c#L94" id="L94" class="l11c#L>1150l/ti-soc-t4hi-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1151l" clas11c#L94" id="L94" class="l11c#L>115href=ref">POWELdgap_read_tempre POWEtime */0s 1153l" clas11c#L94" id="L94" class="l11c#L>11c3="L9i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1154l" clas11c#L94" id="L94" class="l11c#L>115e="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl11c5l" clas115"> 155>115> * Functio5154" clas5="linap.c#L118" id="L1185 clas51tween clock domains.
 155>115> * Functio5_f">bgap_5e erratn  <>ness toalert_anit the setup  155>115> * Functio5hrmal/ti-5esired bper fuspan>
ti_ba>staL118" id="L1185 clas51tween clock domains.
 155>115e="L94">  95/rmal/ti-5="sref">ppdevfuspan>
 155>115mal/ti-soc-5eame="L105bandg ttaL118" id="L1185 clas51tween clock domains.
 155>116# * Functio5154" clas5="linmmeCall this
function onlyel 95ase


N 
  951gp, 5() - he>In this
5ase, the>dture< needsaatuh 152 15any>  me 

2eshol-s (hot
or col-)c#L118" id="L1185 clas51tween clock domains.
reg);
  95id)
i>116e="L94">  95reg;
r>116> * Functio5154" clas5="linmm52d sensor temperature
termal/1166l" clas11reg);
bgap_5e erratn
termal/1167l" clas11reg);
 1595/a>
<-thermal/1158l" clas11reg);
  95lass="c91        <>ness totalert_anita>o_ho="sref">ti <>ness totalert_anitoc-thanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32 159"> 1595/a>
<-thermal/1169l" clas1158"4ass="line" name="L681158">1169al/ti-soc-43to conceeeeeeeeeeeeeeeeeeeanshol->RMW_BITS(platform_devicitatic (<"oo"mal/tc ti_bandgho=>ti_tc1170l" clas11c#L94" id="L94" class="l11c#L>11c#l/ti  v2.6.12.1ti_bandg2.1p) " 1171l" clas11c#L94" id="L94" class="l11c#L>1171="L94">  951lass="c91      L166" id="L1665 clas567="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1172l" clas115"> 155>1172l/ti-soc-t53f">bgap_5ss="sref">u32 11c3="L94">  951ermal/ti-bandgahref="e=u32" cla_uncode_9rs/thermal/ti-soc-thirq6" id="L1665 clirqc#S< ="="c91      platform_get_irq6" id="L1665 clplatform_get_irqc#Sti_bap_read_temp>  82#define ti_bandg2.1p) " 1175l" clas11 id="L152" class="line" 11 id>1175al/ti-soc-4RRRRRRRRRf">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"get_irq failed\n"name="L/<__erma__>ti_bap_read_temp>  82#define 117mal/ti-soc-43to conce6 10211c7l/ti-soc-t5>i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1178l" clas11mal/ti-soc-thermal/ti-ba11mal>11cal/ti-soc-t4he">bgap_5="sref="66" id="L1665 clas567=" ="="c91      asquest_

2eaded_irq6" id="L1665 clasquest_

2eaded_irqc#S 1595/a>
<-thermal/1179l" clas11mal/ti-soc-thermal/ti-ba11mal>1179al/ti-soc-43to conceeeeeeeeeeeeeeeeeees="c91        <>ness totalert_arq_ho_ho="sref">ti <>ness totalert_arq_h 1595/a>
<-thermal/1180l" clas115"> 155>118>al/ti-soc-43to conceeeeeeeeeeeeeeeeeees="c91      IRQF_TRIGGER_HIGHAS=i" class="srIRQF_TRIGGER_HIGHal/ti|s="c91      IRQF_ONESHOTAS=i" class="srIRQF_ONESHOT67=" 159"> 1595/a>
<-thermal/1181l" clas11c#L94" id="L94" class="l11c#L>1181al/ti-soc-43to conceeeeeeeeeeeeeeeeeees=">  95hermalste=t
">"ialert"name="Liverbandt>ti_bc#Lu32" class="sref">u32/<__erma__>ti_bap_read_temp>  82#define reg);
ti_bandg2.1p) " 1183l" clas11">id)
i>118al/ti-soc-t4"p" classf">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"Request 

2eaded arq failed.\n"name="L/<__erma__>ti_bap_read_temp>  82#define  115ti_bandgexi==sens 1185l" clas11="sref">ti_bandgap_readl11="s>118.c#L57" id=41i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1186l" clas11>val1;
bgap_5ss="sref">u32 reg);
POWEtime */0s 1158l" clas11">reg;
r>115al/tii-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1189l" clas11="sref">ti_bandgap_readl11="s>1189 * F159"> 1595/a>
<-thermal/1190l" clas11">reg;
r>11">al/t4">  95const anshol->RMW_BITS(RMW_BITS(ness tomatch" id="L91" clasof_i <>ness tomatchl/ti[]5h times we read the same5value543="sref">POWEtime */0s 1191l" clas11="sref">ti_bandgap_readl11="s>119e="L94">  951gp, 5() - ap.c#L118" id="L1185 clas51tween clock domains.
ti_bandgap_readl11="s>11952"> 152);
  95reg;
r>119e="L94">  95ti_bandgap_readl11="s>119> * Functio5_f">bgap_5e erratnmatchit
 as51ion. Baeetson 
reg;
r>119> * Functio5hrmal/ti-5esired bwill build ti_ba>s out
of the>requ"> 1 DT esiries.52d sensor temperature
termal/1198l" clas11">id)
i>119e="L94">  95/rmal/ti-5="sref"52d sensor temperature
termal/1199l" clas11c#L94" id="L94" class="l11c#L>119mal/ti-soc-5eame="L105bandg tc
termal/1200l" clas1200l"4" id="L94" class="l1200l>120# * Functio5154" clas5="linmme6 102
termal/1201l" clas120"sref">ti_bandgap_readl120"s>120e="L94">  951gp, 5() - he name="L159"> 1595/a>
<-thermal/1202l" clas120"sref">ti_bandgap_readl120"s>1202l/ti4">  95anshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static ti <>ness tobuil-oc-thanshol->RMW_BITS(platform_devicitatic (<"oo"mal/tc ti_bandgho=>ti_tc1203l" clas120eg);
ti_bandg2.1p) " 1204l" clas120>reg;
(tatic (tatic="="c91      pdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9.(67="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1205l" clas120#L94" id="L94" class="l120#L>120.c#L57" id=41const anshol->RMW_BITS( 115ti_bandgexi==sens 1206l" clas120"sref">ti_bandgap_readl120"s>1206al/ti-soc-5sanshol->RMW_BITS(<_oc-thermal/ti-ba/tbanshol->ti_ba>static u32_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1207l" clas120>reg;
resourcitatic res_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1208l" clas120>id)
 115ti_bandgexi==sens 1209l" clas120#L94" id="L94" class="l120#L>1209 * F159"> 1595/a>
<-thermal/1210l" clas12">reg;
r>121>al/ti-soc-434">  95hermal/ti5bandgap just for the>sak" t name="L159"> 1595/a>
<-thermal/12"1l" clas12">reg;
r>1211c#L57" id=41l=u3mmen5"> * CTRL_Cna>(gap_read_temp" na>(tati/e  v2.6.12.1ti_bandg2.1p) " 12"2l" clas12">reg;
r>1212al/ti-soc-43to concef">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"no-platformha forma1ion available\n"name="L/<__erma__>ti_bap_read_temp>  82#define );
 INVALAS=i" class="sr INVAL/<__erma__>ti_bap_read_temp>  82#define reg;
r>121mal/ti-soc-5si-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl12"5l" clas12">reg;
r>121> * F159"> 1595/a>
<-thermal/12"6l" clas12">reg;
r>1216="L94">  9514a href="+code=u32" class="sref">u32c="="c91      devm_kzallocgap_read_temp" devm_kzallocc#Sermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ivsizeof( u32/iverbandt>ti_bc#LGFP_KERNELAS=i" class="srGFP_KERNEL/<__erma__>ti_bap_read_temp>  82#define reg;
r>1217c#L57" id=41l=u3mmen5"> * CTRL_Cu32" class="sref">u32/e  v2.6.12.1ti_bandg2.1p) " 12"8l" clas12reg);
ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"Unableeatuallocval2;
 NOMEMgap_read_temp" ENOMEM/<__erma__>ti_bap_read_temp>  82#define POWELdgap_read_tempre 122e="L94">  951ermal/ti-bandgaof_91" id="L91" clasof_91l/tic="="c91      of_match_devici" class="sref">of_match_devicic#Sness tomatch" id="L91" clasof_i <>ness tomatchl/tiiv ef">ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9/<__erma__>ti_bap_read_temp>  82#define (<"oo"mal/tc ti_bandgho=>ti_tc1224l" clas12c#L94" id="L94" class="l12c#L>122mal/ti-soc-5sass="sre2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivec="="c91      of_91" id="L91" clasof_91l/tirs/thermal/ti-soc-thdatagap_read_temp" data_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1225l" clas12c#L94" id="L94" class="l12c#L>122> * F159"> 1595/a>
<-thermal/12c6l" clas125"> 155>1226="L94">  9514">  95hermal/ti5bandgap /t+is+er shadow for efntext>sav"  1595/a>
<-thermal/12c7l" clas125"> 155>1227l/ti-soc-t5>f">bgap_5="srefa>;         a href="drivers/thermal/ti-soc-th/t+#L1gap_read_temp" /t+#L1c="="c91      devm_kzallocgap_read_temp" devm_kzallocc#Sermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ivsizeof( u32rs/thermal/ti-soc-th/t+#L1gap_read_temp" /t+#L1) *159"> 1595/a>
<-thermal/12c8l" clas12c#L94" id="L94" class="l12c#L>12cal/ti-soc-t4hRRRRRRRRRRRRRRRRRRRRRRRRRre2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#Sti_bc#LGFP_KERNELAS=i" class="srGFP_KERNEL/<__erma__>ti_bap_read_temp>  82#define  155>1229al/ti-soc-43l=u3mmen5"> * CTRL_Cu32" class="sref">u32rs/thermal/ti-soc-th/t+#L1gap_read_temp" /t+#L1)   v2.6.12.1ti_bandg2.1p) " 1230l" clas12c#L94" id="L94" class="l12c#L>123>al/ti-soc-43to conce4bandt < ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"Unableeatuallocp) " 1231l" clas12>reg);
 NOMEMgap_read_temp" ENOMEM/<__erma__>ti_bap_read_temp>  82#define id)
i>123e="L94">  951i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1233l" clas12">id)
i>1233="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1234l" clas12">reg;
r>123mal/ti-soc-5sf">bgap_5="srefn6" id="L1665 clic="c5h times we read the same5value543="sref">POWEtime */0s 1235l" clas12">reg;
r>123.c#L57" id=41do   v2.6.12.1ti_bandg2.1p) " 1236l" clas12reg);
bgap_5="sref__iomem6" id="L1665 cl__iomemtatic _SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1237l" clas12">reg;
r>123> * Fref">POWELdgap_read_tempre id)
i>123al/ti-soc-t4hRRRRRRRR4bandt < res ="="c91      platform_get_resourci" class="sref">platform_get_resourcic#Sid)
i>1239al/ti-soc-43to concel=u3mmen5"> * CTRL_Cres" class="sref">res/a>(<"oo"mal/tc ti_bandgho=>ti_tc1240l" clas12reg);
reg;
r>1241al/ti-soc-43to conceermal/ti-bandgachunref="drivers/thechunrc="="c91      devm_ior"m tof"sourci" class="sref">devm_ior"m tof"sourcic#Sermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9iveen5"> * CTRL_Cres" class="sref">res/<__erma__>ti_bap_read_temp>  82#define );
ti_bandgho=>ti_tc1243l" clas12reg);
u32rs/thermal/ti-soc-thbasi" class="sref">basic="="c91      chunref="drivers/thechunr_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 12r4l" clas12">reg;
r>124mal/ti-soc-5sass="srel=u32" c4ss="line" IS_ERRgap_read_temp" IS_ERRc#Sti_bandgho=>ti_tc1245l" clas12reg);
)_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 12r6l" clas12>val1;
bgap_5ss="sref">u32  115ti_bandgexi==sens 12r8l" clas12c#L94" id="L94" class="l12c#L>124al/ti-soc-t4h} whilee32" c4ss="line" L1s" class="sref">res/<__erma__>ti_bap_read_temp>  82#define 1249 * F159"> 1595/a>
<-thermal/1250l" clas12c#L94" id="L94" class="l12c#L>1250l/ti-soc-t4hl=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LTSHUT46497="srefTSHUT)/   v2.6.12.1ti_bandg2.1p) " 1251l" clas12c#L94" id="L94" class="l12c#L>1251al/ti-soc-43to conceermal/ti-bandgap.ers/thermal/ti-soc-ther(o_ho="sref">tishut_gpio67="c="="c91      of_get_gpioa>o_ho="sref">tof_get_gpioc#S(gap_read_temp" na>(tatiiv0/<__erma__>ti_bap_read_temp>  82#define  * CTRL_Cgpio_is__tempgap_read_temp" gpio_is__tempc#So_ho="sref">tishut_gpio67=")/   v2.6.12.1ti_bandg2.1p) " 1253l" clas12c#L94" id="L94" class="l12c#L>125al/ti-soc-t4"p" classto conceermal/ti-bandgadev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"in_temp gpio for tshut (%d)\n"name="L,-soc-t53f">bgap_5ss="sref">u32 o_ho="sref">tishut_gpio67="/<__erma__>ti_bap_read_temp>  82#define  155>1255al/ti-soc-4RRRRRRRRRRRRRRRRR6 102 INVALAS=i" class="sr INVAL/<__erma__>ti_bap_read_temp>  82#define  155>125mal/ti-soc-43to concei-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1257l" clas125"> 155>1257l/ti-soc-t5>i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl12c8l" clas125"> 155>125e="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl12c9l" clas125"> 155>1259al/ti-soc-436 102ti_bap_read_temp>  82#define  155>126# * Fi-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1261l" clas12c#L94" id="L94" class="l12c#L>126href=ref">POWELdgap_read_tempre  152 1595/a>
<-thermal/1263l" clas12>reg);
id)
i>126e="L94">  9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1265l" clas12">reg;
r>126> * Flass="c91        <>ness toprob(gap_read_temp"   <>ness toprob(52SRMW_BITS(platform_devicitatic (<"oo"mal/tc ti_bandgho=>ti_tc1266l" clas12reg);
ti_bandg2.1p) " 1267l" clas12reg);
u32_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1258l" clas12reg);
clk_ratide_9iveen5"> * CTRL_Cre66" id="L1665 clas567="ivrbandt <  115ti_bandgexi==sens 1259l" clas1258"4ass="line" name="L681258">1269 * F159"> 1595/a>
<-thermal/1270l" clas12c#L94" id="L94" class="l12c#L>127>al/ti-soc-434a href="+code=u32" class="sref">u32c="="c91      i <>ness tobuil-a>o_ho="sref">ti <>ness tobuil-oc-th 115ti_bandgexi==sens 1271l" clas12c#L94" id="L94" class="l12c#L>1271c#L57" id=41l=u32" c4ss="line" IS_ERRgap_read_temp" IS_ERRc#Su32//   v2.6.12.1ti_bandg2.1p) " 1272l" clas125"> 155>1272al/ti-soc-43to concef">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"failed to fetch-platformhdata\n"name="L/<__erma__>ti_bap_read_temp>  822.1p) " 1273l" clas12 id="L152" class="line" 12 id>127al/ti-soc-t4"p" class6 102u32/<__erma__>ti_bap_read_temp>  822.1p) " 1274l" clas12c#L94" id="L94" class="l12c#L>127mal/ti-soc-5si-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1275l" clas12 id="L152" class="line" 12 id>1275al/ti-soc-4Rermal/ti-bandgap.ers/thermal/ti-soc-ther(ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9<__erma__>ti_bap_read_temp>  822.1p) " 1276l" clas12mal/ti-soc-thermal/ti-ba12mal>127al/ti-soc-t53f">bgap_5ss="sref">u32 1277c#L57" id=41l=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LUNRELIABLEf="e=u32" cla_uUNRELIABLE)/a>(<"oo"mal/tc ti_bandgho=>ti_tc1278l" clas12mal/ti-soc-thermal/ti-ba12mal>127al/ti-soc-t4hRRRRRRRR4bandt < ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ia>(<"oo"mal/tc ti_bandgho=>ti_tc1279l" clas12mal/ti-soc-thermal/ti-ba12mal>1279al/ti-soc-43to conceeeeeeeeeee">  95hermalste=t
">"This
OMAP ref">ti poi5te is unreliable. You've been warned\n"name="L/<__erma__>ti_bap_read_temp>  82#define  155>128>al/t__erma__>ti_bap_read_temp>  82#define 497="srefTI_BANDGAP_HA9c#Sti_bc#LTSHUT46497="srefTSHUT)/   v2.6.12.1ti_bandg2.1p) " 1282l" clas12>reg);
bgap_5="sref="66" id="L1665 clas567=" ="="c91        <>ness totshut_anitgap_read_temp"   <>ness totshut_anitoc-thrbandt < ti_bc#Lpdevgap_read_temp" pdevde_9/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1283l" clas12">id)
i>128al/ti-soc-t4"p" classl=u32" c4ss="line" L166" id="L1665 clas567="/e  v2.6.12.1ti_bandg2.1p) " 1284l" clas12c#L94" id="L94" class="l12c#L>128mal/ti-soc-5sass="sreto concef">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9i v2.6.12.1ti_bandg2.1p) " 1285l" clas12="sref">ti_bandgap_readl12="s>1285al/ti-soc-4RRRRRRRRRRRRRRRRReeeeeeeee">  95hermalste=t
">"failed to anititemze
system tshut IRQ\n"name="L/<__erma__>ti_bap_read_temp>  82#define val1;
 115ti_bandgexi==sens 1287l" clas12>reg);
reg;
r>128al/ti-soc-t4hi-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1289l" clas12="sref">ti_bandgap_readl12="s>1289 * F159"> 1595/a>
<-thermal/1290l" clas12">reg;
r>129>al/ti-soc-434a href="+code=u32" class="sref">u32rs/thermal/ti-soc-thfclocref="drivers/thefclocrc="="c91      clk_get" class="sref">clk_getoc-thrbandt < ;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thfclocr_f="def="drivers/thefclocr_f="dde_9/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1291l" clas12="sref">ti_bandgap_readl12="s>1291c#L57" id=41l=u32" c4ss="line" IS_ERRgap_read_temp" IS_ERRc#Su32rs/thermal/ti-soc-thfclocref="drivers/thefclocr)/   v2.6.12.1ti_bandg2.1p) " 1292l" clas12="sref">ti_bandgap_readl12="s>1292al/ti-soc-43to concef">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"failed to request fclocr emperence\n"name="L/<__erma__>ti_bap_read_temp>  82#define );
bgap_5="sref="66" id="L1665 clas567=" ="="c91      PTR_ERRgap_read_temp" PTR_ERRc#Su32rs/thermal/ti-soc-thfclocref="drivers/thefclocr)<__erma__>ti_bap_read_temp>  82#define reg;
r>129mal/ti-soc-5sass="sregoto ermal/ti-soc-thfree_arqs" class="sref">free_arqs67="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1295l" clas12c#L94" id="L94" class="l12c#L>129.c#L57" id=41i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1296l" clas12="sref">ti_bandgap_readl12="s>129al/ti-soc-t53f">bgap_5ss="sref">u32 reg;
r>1297l/ti-soc-t5>f">bgap_5="srefa>;         a href="drivers/thermal/ti-soc-thdiv_clkgap_read_temp" div_clkc="="c91      clk_get" class="sref">clk_getoc-thrbandt < ;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thdiv_cr_f="def="drivers/thediv_cr_f="d)<__erma__>ti_bap_read_temp>  82#define id)
i>1298c#L57" id=41l=u32" c4ss="line" IS_ERRgap_read_temp" IS_ERRc#Su32rs/thermal/ti-soc-thdiv_clkgap_read_temp" div_clk)/   v2.6.12.1ti_bandg2.1p) " 1299l" clas12c#L94" id="L94" class="l12c#L>1299al/ti-soc-43to concef">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"failed to request div_ts_cr clocr emp\n"name="L/<__erma__>ti_bap_read_temp>  82#define u32rs/thermal/ti-soc-thdiv_clkgap_read_temp" div_clk)<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl130"s>1301al/ti-soc-43to concegoto ermal/ti-soc-thput_fclocref="drivers/theput_fclocr67="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1302l" clas130"sref">ti_bandgap_readl130"s>130e="L94">  951i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1303l" clas130eg);
reg;
bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/   v2.6.12.1ti_bandg2.1p) " 1305l" clas130#L94" id="L94" class="l130#L>1305al/ti-soc-4RRRRRRRRRanshol->RMW_BITS(<_emp_poi5te_/t+is+ers" class="sref">_emp_poi5te_/t+is+erstatic tisr67="_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1306l" clas130"sref">ti_bandgap_readl130"s>130mal/ti-soc-43to conceid)
tu3e="L94_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1307l" clas130>reg;
POWELdgap_read_tempre id)
tisr67=" ="="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli]./t+is+erstati_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1309l" clas130#L94" id="L94" class="l130#L>1309al/ti-soc-43to concef52 1595/a>
<-thermal/1310l" clas13">reg;
r>131# * Functio5154" clas5="linmmmmmmmmmmmmmmmmm* checr if the>efuse has a non-zero/value if notocL118" id="L1185 clas51tween clock domains.
reg;
r>131e="L94">  951gp, 5() - hmmmmmmmmmmmmmmmm* at is   9usiri 5(d sef"l" _empera102esocL118" id="L1185 clas51tween clock domains.
reg;
r>13152"> 152);
  95 1595/a>
<-thermal/13"4l" clas13">reg;
r>131mal/ti-soc-5sass="sre2" c4ss="line" #L1gap_read_temp" #L1 ="="c91        <>ness to/ti-1gap_read_temp"   <>ness to/ti-1oc-thrbandt < ti_bc#Ltsra>o_ho="sref">tisr67="rs/thermal/ti-soc-thbs toefusef="e=u32" cla_unc toefuse)<__erma__>ti_bap_read_temp>  82#define reg;
r>1315al/ti-soc-4RRRRRRRRRl=u3mmen5"> * CTRL_C#L1gap_read_temp" #L1/a>(<"oo"mal/tc ti_bandgho=>ti_tc13"6l" clas13">reg;
r>131mal/ti-soc-43to conceRRRRRRRRf">bgap_5="srefdev_a fogap_read_temp" dev_a foc#Sermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9i v2.6.12.1ti_bandg2.1p) " 13"7l" clas13">reg;
r>1317al/ti-soc-43to conce3to conceRRRRRRRRf">  95hermalste=t
">"Non-iri 5(d BGAP, Temp notbaccurati\n"name="L/<__erma__>ti_bap_read_temp>  82#define );
val2;
 1595/a>
<-thermal/1320l" clas13c#L94" id="L94" class="l13c#L>132>al/ti-soc-434a href="+code=clk_rati" class="sref">clk_ratide_9c="="c91      clk_rf="d_rati" class="sref">clk_rf="d_ratic#Su32rs/thermal/ti-soc-thdiv_clkgap_read_temp" div_clki v2.6.12.1ti_bandg2.1p) " 1321l" clas13c#L94" id="L94" class="l13c#L>1321al/ti-soc-43to conceeeeeeeeeeeeeeeeeee="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[0].132e="L94">  951l=u32" c4ss="line" clk_rati" class="sref">clk_ratide_9c<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[0].clk_ratide_9c<=r0/e  v2.6.12.1ti_bandg2.1p) " 1324l" clas13c#L94" id="L94" class="l13c#L>132mal/ti-soc-5sass="sre2" c4ss="line" ="66" id="L1665 clas567=" ="class="comment"> NODEV6" id="L1665 cl NODEVtati_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1325l" clas13c#L94" id="L94" class="l13c#L>1325al/ti-soc-4RRRRRRRRRf">bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"wrong clocr eclk_ratide_9)<__erma__>ti_bap_read_temp>  82#define  155>132mal/ti-soc-43to concegoto ermal/ti-soc-thput_clks" class="sref">put_clkstati_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1327l" clas135"> 155>1327l/ti-soc-t5>i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl13c8l" clas13c#L94" id="L94" class="l13c#L>132e="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1329l" clas135"> 155>1329al/ti-soc-434bandt < clk_set_ratic#Su32rs/thermal/ti-soc-thdiv_clkgap_read_temp" div_clkic2" c4ss="line" clk_rati" class="sref">clk_ratide_9)<__erma__>ti_bap_read_temp>  82#define ti_bap_read_temp>  82#define reg);
bgap_5="srefdev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"Cannotbre-set clocr eid)
i>133e="L9__erma__>ti_bap_read_temp>  82#define id)
i>1333al/ti-soc-434bandt < ;         a href="drivers/thermal/ti-soc-thelk_rati" class="sref">clk_ratide_9c="="c91      clk_rati" class="sref">clk_ratide_9<__erma__>ti_bap_read_temp>  82#define reg;
r>133mal/ti-soc-5sl=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LCLK_CTRLAS=i" class="srCLK_CTRL)/__erma__>ti_bap_read_temp>  82#define reg;
r>1335al/ti-soc-4RRRRRRRRRf">bgap_5="srefclk_prepare_enable" class="sref">clk_prepare_enablec#Su32rs/thermal/ti-soc-thfclocref="drivers/thefclocr)<__erma__>ti_bap_read_temp>  82#define );
bgap_5ss="sref">u32 reg;
r>133> * Fref">POWELdgap_read_tempre id)
i>133al/ti-soc-t4hermal/ti-soc-thppin_locr_anitgap_read_temp" ppin_locr_anitc#Sermal/ti-bandgau32" class="sref">u32rs/thermal/ti-soc-thlocref="drivers/thelocr)<__erma__>ti_bap_read_temp>  82#define id)
i>1339al/ti-soc-434bandt < ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9<__erma__>ti_bap_read_temp>  822.1p) " 1340l" clas13reg);
u32/<__erma__>ti_bap_read_temp>  822.1p) " 1341l" clas13">reg;
r>134href=ref">POWELdgap_read_tempre );
        <>ness topowera>o_ho="sref">ti <>ness topoweroc-thrbandt < ti_bc#Ltru(gap_read_temp"  ru(/<__erma__>ti_bap_read_temp>  822.1p) " 1343l" clas13reg);
reg;
r>134mal/ti-soc-5s4">  95hermal/ti5bandgap Set default cf="+er to 1sfor nowm* name="L159"> 1595/a>
<-thermal/1345l" clas13reg);
497="srefTI_BANDGAP_HA9c#Sti_bc#LCOUNTERgap_read_temp" COUNTER)/__erma__>ti_bap_read_temp>  82#define val1;
bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/__erma__>ti_bap_read_temp>  82#define       RMW_BIT946497="srefRMW_BIT9c#Sti_bc#Ln6" id="L1665 cliivrbandt < p) " 1348l" clas13c#L94" id="L94" class="l13c#L>134e="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1349l" clas13 id="L152" class="line" 13 id>1349al/ti-soc-5s4">  95hermal/ti5bandgap Set default t-5hsholdsefor alert  1595/a>
<-thermal/1350l" clas13c#L94" id="L94" class="l13c#L>1350l/ti-soc-t4hfor 32" c4ss="line" 96" id="L1665 clic= 0;sf">bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/e  v2.6.12.1ti_bandg2.1p) " 1351l" clas13c#L94" id="L94" class="l13c#L>1351al/ti-soc-43to conceanshol->RMW_BITS(<_emp_poi5te_datagap_read_temp" temp_poi5te_dataal/ti ti_bap_read_temp>  822.1p) " 1352l" clas13c#L94" id="L94" class="l13c#L>135e="L9__erma__>ti_bap_read_temp>  82#define       a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bap_read_temp>  822.1p) " 1354l" clas13c#L94" id="L94" class="l13c#L>135mal/t__erma__>ti_bap_read_temp>  822.1p) " 1355l" clas135"> 155>1355al/ti-soc-4RRRRRRRRRl=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LTALERT46497="srefTALERT)/e  v2.6.12.1ti_bandg2.1p) " 1356l" clas135"> 155>135mal/ti-soc-43to concei-soc-5s4">  95hermal/ti5bandgap Set anitite Talert t-5hsholdse* name="L159"> 1595/a>
<-thermal/1357l" clas135"> 155>1357al/ti-soc-43to concei-soc-43="c91      RMW_BIT946497="srefRMW_BIT9c#Sti_bc#Ln6" id="L1665 cliivrbandt < i v2.6.12.1ti_bandg2.1p) " 13c8l" clas135"> 155>135al/ti-soc-t4hRRRRRRRRRRRRRRRRRRRRRRRRRti_bc#Lts_datagap_read_temp" ts_datarivers/thermal/ti-soc-tht_coldf="e=u32" cla_ut_cold/<__erma__>ti_bap_read_temp>  822.1p) " 13c9l" clas135"> 155>1359al/ti-soc-43to conceeeeeeeee="c91      RMW_BIT946497="srefRMW_BIT9c#Sti_bc#Ln6" id="L1665 cliivrbandt < i v2.6.12.1ti_bandg2.1p) " 1360l" clas135"> 155>136>al/ti-soc-43to conceeeeeeeeeRRRRRRRRRti_bc#Lts_datagap_read_temp" ts_datarivers/thermal/ti-soc-tht_hotf="e=u32" cla_ut_hot/<__erma__>ti_bap_read_temp>  822.1p) " 1361l" clas13c#L94" id="L94" class="l13c#L>1361al/ti-soc-43to conceeeeeeeee4">  95hermal/ti5bandgap Enableeahe alert evbanse* name="L159"> 1595/a>
<-thermal/1362l" clas13c#L94" id="L94" class="l13c#L>1362al/ti-soc-43to conceeeeeeeee="c91      RMW_BIT946497="srefRMW_BIT9c#Sti_bc#Ln6" id="L1665 cliivrbandt < ivrbandt < p) " 1363l" clas13>reg);
497="srefRMW_BIT9c#Sti_bc#Ln6" id="L1665 cliivrbandt < ivrbandt < p) " 1364l" clas13">id)
i>136mal/ti-soc-5sass="srei-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1365l" clas13">reg;
r>136> * F159"> 1595/a>
<-thermal/1366l" clas13reg);
497="srefTI_BANDGAP_HA9c#Sti_bc#LTSHUT_CONFIG46497="srefTSHUT_CONFIG)/e  v2.6.12.1ti_bandg2.1p) " 1367l" clas13reg);
  95hermal/ti5bandgap Set anitite Tshut t-5hsholdse* name="L159"> 1595/a>
<-thermal/1358l" clas13reg);
ti_bc#Ln6" id="L1665 cliivrbandt < i v2.6.12.1ti_bandg2.1p) " 1369l" clas1358"4ass="line" name="L681358">1369al/ti-soc-43to conceeeeeeeeeeRRRRRRRRermal/ti-bandgatshut_hot_masref="drivers/thetshut_hot_masrde_9iverbandt>ti_bc#Lts_datagap_read_temp" ts_datarivers/thermal/ti-soc-thtshut_hotef="drivers/thetshut_hot/<__erma__>ti_bap_read_temp>  822.1p) " 1370l" clas13c#L94" id="L94" class="l13c#L>137>al/ti-soc-43to conceeeeeeeeeermal/ti-bandgaRMW_BIT946497="srefRMW_BIT9c#Sti_bc#Ln6" id="L1665 cliivrbandt < i v2.6.12.1ti_bandg2.1p) " 1371l" clas13c#L94" id="L94" class="l13c#L>1371al/ti-soc-43to conceeeeeeeeeeeeeeeeeerbandt < /<__erma__>ti_bap_read_temp>  822.1p) " 1372l" clas135"> 155>1372al/ti-soc-43to concei-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1373l" clas13 id="L152" class="line" 13 id>137al/ti-soc-t4"i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1374l" clas13c#L94" id="L94" class="l13c#L>137mal/t__erma__>ti_bap_read_temp>  822.1p) " 1375l" clas13 id="L152" class="line" 13 id>1375al/ti-soc-4Rl=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LMODE_CONFIG46497="srefMODE_CONFIG)/__erma__>ti_bap_read_temp>  82#define 137mal/ti-soc-43to conceness toset_continuous_mo>(c#Sti_bap_read_temp>  822.1p) " 1377l" clas13mal/ti-soc-thermal/ti-ba13mal>137> * Fref">POWELdgap_read_tempre 137al/ti-soc-t4h=">  95hermal/ti5bandgap Set .250 secondsetime as default cf="+er * name="L159"> 1595/a>
<-thermal/1379l" clas13mal/ti-soc-thermal/ti-ba13mal>1379al/ti-soc-43l=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LCOUNTERgap_read_temp" COUNTER)/__erma__>ti_bap_read_temp>  82#define  155>138>al/ti-soc-43to concefor 32" c4ss="line" 96" id="L1665 clic= 0;sf">bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/__erma__>ti_bap_read_temp>  82#define ti_bc#Ln6" id="L1665 cliivrbandt < reg);
clk_ratide_9c/ 4/<__erma__>ti_bap_read_temp>  822.1p) " 1383l" clas13">id)
i>1383="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1384l" clas13c#L94" id="L94" class="l13c#L>138mal/ti-soc-5s4">  95hermal/ti5bandgap E: 5y t-ing is good? Then exposeeahe poi5tes * name="L159"> 1595/a>
<-thermal/1385l" clas13="sref">ti_bandgap_readl13="s>1385al/ti-soc-4Rfor 32" c4ss="line" 96" id="L1665 clic= 0;sf">bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/e  v2.6.12.1ti_bandg2.1p) " 1386l" clas13>val1;
ti_bap_read_temp>  822.1p) " 1387l" clas13>reg);
POWELdgap_read_tempre reg;
r>138al/ti-soc-t4hRRRRRRRRl=u32" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bandg2.1p) " 1389l" clas13="sref">ti_bandgap_readl13="s>1389al/ti-soc-43to conceeeeeeeee="c91      ="66" id="L1665 clas567=" ="="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bc#Ln6" id="L1665 cli/<__erma__>ti_bap_read_temp>  822.1p) " 1390l" clas13">reg;
r>139>al/ti-soc-43to conceeeeeeeeel=u32" c4ss="line" L166" id="L1665 clas567="/__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl13="s>1391al/ti-soc-43to conceeeeeeeeeeeeeeeeegoto ermal/ti-soc-thremove_poi5tes" class="sref">remove_poi5tesrive<__erma__>ti_bap_read_temp>  822.1p) " 1392l" clas13="sref">ti_bandgap_readl13="s>1392al/ti-soc-43to concei-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1393l" clas13reg);
reg;
r>139mal/ti-soc-5sass="srel=u32" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thexpose_poi5tea>o_ho="sref">texpose_poi5te)e  v2.6.12.1ti_bandg2.1p) " 1395l" clas13c#L94" id="L94" class="l13c#L>1395al/ti-soc-4RRRRRRRRRRRRRRRRR      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bap_read_temp>  822.1p) " 1396l" clas13="sref">ti_bandgap_readl13="s>139mal/ti-soc-43to conceRRRRRRRRf">bgap_5="sref="66" id="L1665 clas567=" ="="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thexpose_poi5tea>o_ho="sref">texpose_poi5tebrbandt < ti_bc#Ln6" id="L1665 cliivrbandt < ti_bap_read_temp>  822.1p) " 1397l" clas13">reg;
r>1397al/ti-soc-43to concei-soc-43l=u32" c4ss="line" L166" id="L1665 clas567="/__erma__>ti_bap_read_temp>  82#define id)
i>139al/ti-soc-t4hRRRRRRRRRRRRRRRRRRRRRRRRgoto ermal/ti-soc-thremove_/a>t_efol=t
"" id="L1665 cl/tmove_/a>t_efol=t
rive<__erma__>ti_bap_read_temp>  822.1p) " 1399l" clas13c#L94" id="L94" class="l13c#L>1399al/ti-soc-43to concei-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1400l" clas1400l"4" id="L94" class="l1400l>140>al/ti-soc-43i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1401l" clas140"sref">ti_bandgap_readl140"s>140href=ref">POWELdgap_read_tempre ti_bandgap_readl140"s>140e="L94">  951f52 1595/a>
<-thermal/1403l" clas140eg);
  95 1595/a>
<-thermal/1404l" clas140>reg;
  95 1595/a>
<-thermal/1405l" clas140#L94" id="L94" class="l140#L>1405al/t4">  95 1595/a>
<-thermal/1406l" clas140"sref">ti_bandgap_readl140"s>140mal/t4">  95 1595/a>
<-thermal/1407l" clas140>reg;
497="srefTI_BANDGAP_HA9c#Sti_bc#LTALERT46497="srefTALERT)/e  v2.6.12.1ti_bandg2.1p) " 1408l" clas140>id)
ness totalert_anitc#Sti_bc#Lpdevgap_read_temp" pdevde_9/_SWITCHgo"dr="L115"> 115ti_bandgexi==sens 1409l" clas140#L94" id="L94" class="l140#L>1409al/ti-soc-43to concel=u32" c4ss="line" L166" id="L1665 clas567="/e  v2.6.12.1ti_bandg2.1p) " 1410l" clas14">reg;
r>141>al/ti-soc-43to conceeeeeeeeeermal/ti-bandgadev_s.ermal/ti-bandgapdevgap_read_temp" pdevde_9rs/thermal/ti-soc-thdevgap_read_temp" devde_9ive">  95hermalste=t
">"failed to anititemze
Talert IRQ\n"name="L/<__erma__>ti_bap_read_temp>  82#define reg;
r>1411al/ti-soc-43to conceeeeeeeee4rmal/ti-bandga96" id="L1665 clic= 2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;__erma__>ti_bap_read_temp>  82#define reg;
r>1412al/ti-soc-43to conce3to concgoto ermal/ti-soc-thdisable_clkgap_read_temp" disable_clkc#S<;__erma__>ti_bap_read_temp>  82#define );
reg;
r>141mal/ti-soc-5si-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl14"5l" clas14">reg;
r>141> * F159"> 1595/a>
<-thermal/14"6l" clas14">reg;
r>141mal/ti-soc-436 102ti_bap_read_temp>  82#define reg;
r>141> * Fref">POWELdgap_read_tempre );
POWELdgap_read_tempre val2;
;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bap_read_temp>  82#define ;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bc#Ln6" id="L1665 cli/<__erma__>ti_bap_read_temp>  822.1p) " 1421l" clas14c#L94" id="L94" class="l14c#L>1421al/termal/ti-soc-thremove_poi5tes" class="sref">remove_poi5tesrive:ref">POWELdgap_read_tempre 142e="L94">  951for 32" c4ss="line" 96" id="L1665 cli--;sf">bgap_5="srefn6" id="L1665 clic>=r0;sf">bgap_5="srefn6" id="L1665 cli--/e  v2.6.12.1ti_bandg2.1p) " 1423l" clas14c#L94" id="L94" class="l14c#L>142al/ti-soc-t4"p" cc-43l=u32" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bandg2.1p) " 1424l" clas14c#L94" id="L94" class="l14c#L>142mal/ti-soc-5sass="sreto conce2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bc#Ln6" id="L1665 cli/<__erma__>ti_bap_read_temp>  822.1p) " 1425l" clas14c#L94" id="L94" class="l14c#L>1425al/ti-soc-4RRRRRRRRRl=u32" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thremove_poi5te" class="sref">remove_poi5te67="/ v2.6.12.1ti_bandg2.1p) " 1426l" clas145"> 155>142mal/ti-soc-43to conceto conce2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thremove_poi5te" class="sref">remove_poi5te67="brbandt < ti_bc#Ln6" id="L1665 cli/<__erma__>ti_bap_read_temp>  822.1p) " 1427l" clas145"> 155>1427l/ti-soc-t5>i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl14c8l" clas14c#L94" id="L94" class="l14c#L>142al/ti-soc-t4hermal/ti-soc-th  <>ness topowera>o_ho="sref">ti <>ness topoweroc-thrbandt < ti_bc#Lfalsef="e=u32" cla_ufalse/<__erma__>ti_bap_read_temp>  822.1p) " 1429l" clas145"> 155>1429al/termal/ti-soc-thdisable_clkgap_read_temp" disable_clkc#S<:ref">POWELdgap_read_tempre 497="srefTI_BANDGAP_HA9c#Sti_bc#LCLK_CTRLAS=i" class="srCLK_CTRL)/__erma__>ti_bap_read_temp>  82#define reg);
bgap_5="srefclk_disable_unpreparea>o_ho="sref">telk_disable_unpreparec#Sid)
i>143e="L9ermal/ti-bandgaput_clks" class="sref">put_clkstati:ref">POWELdgap_read_tempre id)
i>1433al/ti-soc-434bandt < clk_putc#S)<__erma__>ti_bap_read_temp>  82#define reg;
r>143mal/termal/ti-bandgaput_fclocref="drivers/theput_fclocr67=":ref">POWELdgap_read_tempre reg;
r>1435al/ti-soc-4R4bandt < clk_putc#S);
free_irqs67=":ref">POWELdgap_read_tempre reg;
r>1437c#L57" id=41l=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LTSHUT46497="srefTSHUT)/e  v2.6.12.1ti_bandg2.1p) " 14c8l" clas14">id)
i>143al/ti-soc-t4hRRRRRRRR4bandt < free_irqc#Sgpio_to_irqc#So_ho="sref">tishut_gpio)iverbandt>ti_bc#LNULLAS=i" class="srNULL)<__erma__>ti_bap_read_temp>  82#define id)
i>1439al/ti-soc-43to concerbandt < gpio_freec#So_ho="sref">tishut_gpio)<__erma__>ti_bap_read_temp>  82#define );
reg;
r>144href=ref">POWELdgap_read_tempre );
ti_bap_read_temp>  82#define );
reg;
r>144mal/t__erma__>ti_bap_read_temp>  822.1p) " 1445l" clas14reg);
p) " 1446l" clas14>val1;
ti <>ness to/tmovec#SRMW_BITS(o_ho="sref">tplatform_deviceal/ti ti_bap_read_temp>  822.1p) " 1447l" clas14c#L94" id="L94" class="l14c#L>1447al/t  v2.6.12.1ti_bandg2.1p) " 1448l" clas14c#L94" id="L94" class="l14c#L>144al/ti-soc-t4hanshol->RMW_BITS(<_ <>ness ta>o_ho="sref">ti <>ness tal/ti ti_bap_read_temp>  82#define 1449al/ti-soc-5sinl->RMW_BITS(  95hermal/ti5bandgap First t-ing is to /tmove poi5tesinlerfaces * name="L159"> 1595/a>
<-thermal/1452l" clas14c#L94" id="L94" class="l14c#L>145e="L94">  951for 32" c4ss="line" 96" id="L1665 clic= 0;sf">bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/e  v2.6.12.1
<-thermal/1453l" clas14c#L94" id="L94" class="l14c#L>145al/ti-soc-t4"p" classl=u32" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].
<-thermal/1454l" clas14c#L94" id="L94" class="l14c#L>145mal/ti-soc-5sass="sreto conce2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].ti_bc#Ln6" id="L1665 cli/<__erma__>ti_bap_read_temp>  822.1p) " 1455l" clas145"> 155>145> * F159"> 1595/a>
<-thermal/1456l" clas145"> 155>145mal/ti-soc-43to concel=u32" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thremove_poi5te" class="sref">remove_poi5te67="/ v2.6.12.1ti_bandg2.1p) " 1457l" clas145"> 155>1457al/ti-soc-43to concei-soc-43="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thremove_poi5te" class="sref">remove_poi5te67="brbandt < ti_bc#Ln6" id="L1665 cli/<__erma__>ti_bap_read_temp>  822.1p) " 1458l" clas145"> 155>145al/ti-soc-t4hi-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl14c9l" clas145"> 155>1459al/t-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1460l" clas145"> 155>146>al/ti-soc-43ermal/ti-soc-th  <>ness topowera>o_ho="sref">ti <>ness topoweroc-thrbandt < ti_bc#Lfalsef="e=u32" cla_ufalse/<__erma__>ti_bap_read_temp>  822.1p) " 1461l" clas14c#L94" id="L94" class="l14c#L>146href=ref">POWELdgap_read_tempre 497="srefTI_BANDGAP_HA9c#Sti_bc#LCLK_CTRLAS=i" class="srCLK_CTRL)/__erma__>ti_bap_read_temp>  82#define reg);
bgap_5="srefclk_disable_unpreparea>o_ho="sref">telk_disable_unpreparec#Sid)
i>146mal/ti-soc-5s4bandt < clk_putc#Sreg;
r>1465al/ti-soc-4R4bandt < clk_putc#S)<__erma__>ti_bap_read_temp>  82#define );
bgap_5ss="sref">u32 );
497="srefTI_BANDGAP_HA9c#Sti_bc#LTALERT46497="srefTALERT)/-soc-t53f">bgap_5ss="sref">u32 );
free_irqc#Sirqc#Su32/<__erma__>ti_bap_read_temp>  822.1p) " 1469l" clas1458"4ass="line" name="L681458">1469al/t-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1470l" clas14c#L94" id="L94" class="l14c#L>147>al/ti-soc-43l=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LTSHUT46497="srefTSHUT)/e  v2.6.12.1ti_bandg2.1p) " 1471l" clas14c#L94" id="L94" class="l14c#L>1471al/ti-soc-43to conce4bandt < free_irqc#Sgpio_to_irqc#So_ho="sref">tishut_gpio)iverbandt>ti_bc#LNULLAS=i" class="srNULL)<__er6.12.1ti_bandg2.1p) " 1472l" clas145"> 155>1472al/ti-soc-43to concerbandt < gpio_freec#So_ho="sref">tishut_gpio)<__erma__>ti_bap_read_temp>  82#define 147al/ti-soc-t4"i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1474l" clas14c#L94" id="L94" class="l14c#L>147mal/t__erma__>ti_bap_read_temp>  822.1p) " 1475l" clas14 id="L152" class="line" 14 id>1475al/ti-soc-4R6 102ti_bap_read_temp>  82#define 147mal/ti-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1477l" clas14mal/ti-soc-thermal/ti-ba14mal>147> * Fref">POWELdgap_read_tempre 147al/ti#ifdefverbandt>ti_bc#LCONFIG_PM_SLEEPAS=i" class="srCONFIG_PM_SLEEP * Fref">POWELdgap_read_tempre 1479al/tstaticsinl->RMW_BITS(ness tosave_ctxtgap_read_temp"   <>ness tosave_ctxtc#SRMW_BITS(<_ <>ness ta>o_ho="sref">ti <>ness tal/ti bgap_5ss="sref">u32  155>148>al/t  v2.6.12.1ti_bandg2.1p) " 1481l" clas14c#L94" id="L94" class="l14c#L>1481al/ti-soc-43inl->RMW_BITS(reg);
ti_bap_read_temp>  82#define id)
i>148al/ti-soc-t4"for 32" c4ss="line" 96" id="L1665 clic= 0;sf">bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/e  v2.6.12.1
<-thermal/1484l" clas14c#L94" id="L94" class="l14c#L>148mal/ti-soc-5sass="sreanshol->RMW_BITS(<_emp_poi5te_re+is+ers" class="sref">_emp_poi5te_re+is+ersal/ti tisr<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl14="s>1485al/ti-soc-4RRRRRRRRRanshol->RMW_BITS(<_emp_poi5te_re+va1gap_read_temp" _emp_poi5te_re+va1al/ti ti_bap_read_temp>  82#define val1;
bgap_5ss="sref">u32 reg);
ermal/ti-bandgaa>;         a href="drivers/thermal/ti-soc-thre+va1gap_read_temp" re+va1al/t[f">bgap_5="srefn6" id="L1665 cli]<__erma__>ti_bap_read_temp>  82#define reg;
r>148al/ti-soc-t4hRRRRRRRRtisr ="="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].re+is+ersal/t<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl14="s>1489al/t-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1490l" clas14">reg;
r>149>al/ti-soc-43to concel=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LMODE_CONFIG46497="srefMODE_CONFIG)/__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl14="s>1491al/ti-soc-43to conceeeeeeeee(_ctr1gap_read_temp" u3_mo>(_ctr1 ="="c91      i <>ness to/tad1gap_read_temp" _ <>ness to/tad1c#Sti_bap_read_temp>  82#define ti_bandgap_readl14="s>1492al/ti-soc-43to conceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeetisrrs/thermal/ti-soc-thbg tomo>(_ctr1gap_read_temp" u3 tomo>(_ctr1)<__erma__>ti_bap_read_temp>  82#define );
497="srefTI_BANDGAP_HA9c#Sti_bc#LCOUNTERgap_read_temp" COUNTER)/__erma__>ti_bap_read_temp>  82#define reg;
r>149mal/ti-soc-5sass="sreeeeeeeee      i <>ness to/tad1gap_read_temp" _ <>ness to/tad1c#Sti_bap_read_temp>  82#define o_ho="sref">tisrrs/thermal/ti-soc-thbg tocf="+erf="e=u32" cla_unc tocf="+er)<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl14="s>149mal/ti-soc-43to concel=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LTALERT46497="srefTALERT)/e  v2.6.12.1
<-thermal/1497l" clas14">reg;
r>1497al/ti-soc-43to concei-soc-43 ="="c91      i <>ness to/tad1gap_read_temp" _ <>ness to/tad1c#Sti_bap_read_temp>  82#define id)
i>149al/ti-soc-t4hRRRRRRRRRRRRRRRRRRRRRRRReeeeeeeeeeeeeeeeeeeeeeeetisrrs/thermal/ti-soc-thbg tot-5hsholdf="e=u32" cla_unc tot-5hshold)<__erma__>ti_bap_read_temp>  82#define  ="="c91      i <>ness to/tad1gap_read_temp" _ <>ness to/tad1c#Sti_bap_read_temp>  82#define o_ho="sref">tisrrs/thermal/ti-soc-thbg tomasr_ctr1gap_read_temp" u3 tomasr_ctr1)<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl150"s>1501al/ti-soc-43to concei-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1502l" clas150"sref">ti_bandgap_readl150"s>150e="L9__erma__>ti_bap_read_temp>  82#define );
497="srefTI_BANDGAP_HA9c#Sti_bc#LTSHUT_CONFIG46497="srefTSHUT_CONFIG)/__erma__>ti_bap_read_temp>  82#define reg;
 ="="c91      i <>ness to/tad1gap_read_temp" _ <>ness to/tad1c#Sti_bap_read_temp>  82#define o_ho="sref">tisrrs/thermal/ti-soc-thtshut_t-5hsholdf="e=u32" cla_utshut_t-5hshold)<__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl150"s>150mal/ti-soc-43i-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1507l" clas150>reg;
POWELdgap_read_tempre id)
reg;
r>1510l/ti__erma__>ti_bap_read_temp>  82#define reg;
r>1511al/tstaticsinl->RMW_BITS(ness torestore_ctxtgap_read_temp"   <>ness torestore_ctxtc#SRMW_BITS(<_ <>ness ta>o_ho="sref">ti <>ness tal/ti bgap_5ss="sref">u32 reg;
r>1512al/t  v2.6.12.1
<-thermal/15"3l" clas15reg);
RMW_BITS(reg;
r>151mal/t__erma__>ti_bap_read_temp>  822.1p) " 15"5l" clas15">reg;
r>1515al/ti-soc-4Rfor 32" c4ss="line" 96" id="L1665 clic= 0;sf">bgap_5="srefn6" id="L1665 clic<r2" c4ss="line" a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5te_ef="+a>o_ho="sref">tpoi5te_ef="+c#S<;sf">bgap_5="srefn6" id="L1665 cli++/e  v2.6.12.1
<-thermal/15"6l" clas15">reg;
r>151mal/ti-soc-43to conceanshol->RMW_BITS(<_emp_poi5te_re+is+ers" class="sref">_emp_poi5te_re+is+ersal/ti tisr<__erma__>ti_bap_read_temp>  82#define reg;
r>1517al/ti-soc-43to conceanshol->RMW_BITS(<_emp_poi5te_re+va1gap_read_temp" _emp_poi5te_re+va1al/ti ti_bap_read_temp>  82#define );
id)
<665 clu3e="L9Rti_bap_read_temp>  82#define val2;
ermal/ti-bandgaa>;         a href="drivers/thermal/ti-soc-thre+va1gap_read_temp" re+va1al/t[f">bgap_5="srefn6" id="L1665 cli]<__erma__>ti_bap_read_temp>  82#define tisr ="="c91      a>;         a href="drivers/thermal/ti-soc-theonfa>o_ho="sref">tefnfrivers/thermal/ti-soc-thpoi5tes" class="sref">poi5tesrive[f">bgap_5="srefn6" id="L1665 cli].re+is+ersal/t<__erma__>ti_bap_read_temp>  82#define 152e="L9__erma__>ti_bap_read_temp>  82#define 497="srefTI_BANDGAP_HA9c#Sti_bc#LCOUNTERgap_read_temp" COUNTER)/__erma__>ti_bap_read_temp>  82#define       i <>ness to/tad1gap_read_temp" _ <>ness to/tad1c#Stisrrs/thermal/ti-soc-thbg tocf="+erf="e=u32" cla_unc tocf="+er)<__erma__>ti_bap_read_temp>  82#define  1595/a>
<-thermal/1526l" clas155"> 155>152mal/ti-soc-43to concel=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LTSHUT_CONFIG46497="srefTSHUT_CONFIG)/__erma__>ti_bap_read_temp>  82#define  155>1527al/ti-soc-43to concei-soc-43ness towrite1c#Sti_bc#Lrva1gap_read_temp" rva1al/trs/thermal/ti-soc-thtshut_t-5hsholdf="e=u32" cla_utshut_t-5hsholdi__erma__>ti_bap_read_temp>  82#define o_ho="sref">tisrrs/thermal/ti-soc-thtshut_t-5hsholdf="e=u32" cla_utshut_t-5hshold)<__erma__>ti_bap_read_temp>  82#define  155>1529al/ti-soc-43to concer">  95hermal/ti5bandgap Force ii5bdiate _emperature measure5ban   1595/a>
<-thermal/1530l" clas15c#L94" id="L94" class="l15c#L>153>al/t4">  95 1595/a>
<-thermal/1531l" clas15>reg);
  95 1595/a>
<-thermal/15c2l" clas15">id)
i>1532al/ti-soc-43to concerbandt < ness toforce_singleo/tadgap_read_temp" _ <>ness toforce_singleo/tadc#Sti_bc#Ln6" id="L1665 cli/<__erma__>ti_bap_read_temp>  822.1p) " 1533l" clas15">id)
i>1533="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl15c4l" clas15">reg;
r>153mal/ti-soc-5sass="srel=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LCOUNTERgap_read_temp" COUNTER)/__erma__>ti_bap_read_temp>  82#define reg;
r>1535al/ti-soc-4RRRRRRRRRRRRRRRRRness towrite1c#Sti_bc#Lrva1gap_read_temp" rva1al/trs/thermal/ti-soc-thbg_cf="+erf="e=u32" cla_uncocf="+eri__erma__>ti_bap_read_temp>  82#define );
o_ho="sref">tisrrs/thermal/ti-soc-thbg tocf="+erf="e=u32" cla_unc tocf="+er)<__erma__>ti_bap_read_temp>  82#define reg;
r>1537al/ti-soc-43to concel=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LMODE_CONFIG46497="srefMODE_CONFIG)/__erma__>ti_bap_read_temp>  82#define id)
i>153al/ti-soc-t4hRRRRRRRRRRRRRRRRness towrite1c#Sti_bc#Lrva1gap_read_temp" rva1al/trs/thermal/ti-soc-thbg_mo>(_ctr1gap_read_temp" u3_mo>(_ctr1i__erma__>ti_bap_read_temp>  82#define id)
i>1539al/ti-soc-43to conceto conce4RRRRRRRRRRRRRRRRRtisrrs/thermal/ti-soc-thbg tomo>(_ctr1gap_read_temp" u3 tomo>(_ctr1)<__erma__>ti_bap_read_temp>  82#define );
497="srefTI_BANDGAP_HA9c#Sti_bc#LTALERT46497="srefTALERT)/e  v2.6.12.1
<-thermal/1541l" clas15">reg;
r>1541al/ti-soc-43to conceeeeeeeeeness towrite1c#Sti_bc#Lrva1gap_read_temp" rva1al/trs/thermal/ti-soc-thbg_t-5hsholdf="e=u32" cla_unc_t-5hsholdi__erma__>ti_bap_read_temp>  82#define );
o_ho="sref">tisrrs/thermal/ti-soc-thbg tot-5hsholdf="e=u32" cla_unc tot-5hshold)<__erma__>ti_bap_read_temp>  82#define );
ness towrite1c#Sti_bc#Lrva1gap_read_temp" rva1al/trs/thermal/ti-soc-thbg_ctr1gap_read_temp" u3_ctr1i__erma__>ti_bap_read_temp>  82#define reg;
r>154mal/ti-soc-5sass="sreto conceeeeeeeeeeeeeeeeeeetisrrs/thermal/ti-soc-thbg tomasr_ctr1gap_read_temp" u3 tomasr_ctr1)<__erma__>ti_bap_read_temp>  82#define );
val1;
POWELdgap_read_tempre 1549al/ti-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1550l" clas15c#L94" id="L94" class="l15c#L>1550l/ti__erma__>ti_bap_read_temp>  82#define ness tosuspendc#SRMW_BITS(o_ho="sref">tdeviceal/ti ti_bap_read_temp>  82#define RMW_BITS(<_ <>ness ta>o_ho="sref">ti <>ness tal/ti ti_bap_read_temp>  82#define terral/t<__erma__>ti_bap_read_temp>  82#define  155>155> * F159"> 1595/a>
<-thermal/1556l" clas155"> 155>155mal/ti-soc-43>RMW_BITS(o_ho="sref">terral/tc= ="c91      i <>ness tosave_ctxtgap_read_temp"   <>ness tosave_ctxtc#Sti_bap_read_temp>  82#define  155>1557al/ti-soc-43="c91      i <>ness topowera>o_ho="sref">ti <>ness topoweroc-thrbandt < ti_bc#Lfalsef="e=u32" cla_ufalse/<__erma__>ti_bap_read_temp>  822.1p) " 1558l" clas155"> 155>155al/ti__erma__>ti_bap_read_temp>  822.1p) " 1559l" clas155"> 155>1559al/ti-soc-43l=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LCLK_CTRLAS=i" class="srCLK_CTRL)/__erma__>ti_bap_read_temp>  82#define  155>156>al/ti-soc-43to conce2" c4ss="line" clk_disable_unpreparea>o_ho="sref">telk_disable_unpreparec#SPOWELdgap_read_tempre o_ho="sref">terral/t<__erma__>ti_bap_read_temp>  82#define reg);
id)
i>156mal/t__erma__>ti_bap_read_temp>  822.1p) " 1565l" clas15">reg;
r>1565al/tstaticsinl->RMW_BITS(ness toresumea>o_ho="sref">ti <>ness toresumec#SRMW_BITS(o_ho="sref">tdeviceal/ti ti_bap_read_temp>  82#define );
);
RMW_BITS(<_ <>ness ta>o_ho="sref">ti <>ness tal/ti ti_bap_read_temp>  82#define<-thermal/1568l" clas15reg);
p) " 1569l" clas1558"4ass="line" name="L681558">1569al/ti-soc-43l=u32" c4ss="line" TI_BANDGAP_HA946497="srefTI_BANDGAP_HA9c#Sti_bc#LCLK_CTRLAS=i" class="srCLK_CTRL)/__erma__>ti_bap_read_temp>  82#define o_ho="sref">telk_prepare_enablec#SPOWELdgap_read_tempre  155>1572al/ti-soc-43="c91      i <>ness topowera>o_ho="sref">ti <>ness topoweroc-thrbandt < ti_bc#Lnshea>o_ho="sref">tishe)<__erma__>ti_bap_read_temp>  82#define 1573="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1574l" clas15c#L94" id="L94" class="l15c#L>1574al/ti-soc-436 102ness torestore_ctxtgap_read_temp"   <>ness torestore_ctxtc#Sti_bap_read_temp>  82#define 1575al/ti-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1576l" clas15mal/ti-soc-thermal/ti-ba15mal>157mal/tstatics_ <>ness todev_pm_opsde_9iverbandt>ti_bc#Ln <>ness tosuspendgap_read_temp" _ <>ness tosuspendc#Sti_bap_read_temp>  82#define 1577al/ti-soc-43to concei-soc-43->RMW_BITS(ness toresumea>o_ho="sref">ti <>ness toresumec#Sti_bap_read_temp>  82#define 157al/ti__erma__>ti_bap_read_temp>  822.1p) " 1579l" clas15mal/ti-soc-thermal/ti-ba15mal>1579al/t#defher->RMW_BITS(497="srefDEV_PM_OP9c#Sermal/ti-bandga  <>ness todev_pm_ops" class="sref">_ <>ness todev_pm_opsde_9/__erma__>ti_bap_read_temp>  82#define  155>158>al/t#else__erma__>ti_bap_read_temp>  82#define RMW_BITS(reg);
ti_bap_read_temp>  82#define id)
i>1583="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1584l" clas15c#L94" id="L94" class="l15c#L>158mal/tstaticsconst1anshol->RMW_BITS(RMW_BITS(ness tomatchgap_read_temp" of__ <>ness tomatchc#S<[]c=   v2.6.12.1
<-thermal/1585l" clas15="sref">ti_bandgap_readl15="s>1585al/t#ifdefverbandt>ti_bc#LCONFIG_OMAP3_THERMALAS=i" class="srCONFIG_OMAP3_THERMAL="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1586l" clas15>val1;
reg);
o_ho="sref">teompatiblede_9c= 2">  95"ti,omap34xx>
<-ther"name="Li__erma__>ti_bap_read_temp>  82#define reg;
r>158al/ti-soc-t4hRRRRRRRR.ermal/ti-bandgaomap34xx_datagap_read_temp" omap34xx_datac#Sti_bap_read_temp>  82#define ti_bandgap_readl15="s>1589al/ti-soc-43}i__erma__>ti_bap_read_temp>  82#define reg;
r>159>al/ti-soc-43  v2.6.12.1
<-thermal/1591l" clas15="sref">ti_bandgap_readl15="s>1591al/ti-soc-43to conce.teompatiblede_9c= 2">  95"ti,omap36xx>
<-ther"name="Li__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl15="s>1592al/ti-soc-43to conce.ermal/ti-bandgaomap36xx_datagap_read_temp" omap36xx_datac#Sti_bap_read_temp>  82#define );
ti_bap_read_temp>  82#define reg;
r>159mal/t#endif__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl15="s>159mal/ti-soc-43  v2.6.12.1
<-thermal/1597l" clas15">reg;
r>1597al/ti-soc-43to conce.teompatiblede_9c= 2">  95"ti,omap4430>
<-ther"name="Li__erma__>ti_bap_read_temp>  82#define id)
i>159al/ti-soc-t4hRRRRRRRR.ermal/ti-bandgaomap4430_datagap_read_temp" omap4430_datac#Sti_bap_read_temp>  82#define ti_bandgap_readl160"s>1601al/ti-soc-43to conce.teompatiblede_9c= 2">  95"ti,omap4460>
<-ther"name="Li__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl160"s>1602al/ti-soc-43to conce.ermal/ti-bandgaomap4460_datagap_read_temp" omap4460_datac#Sti_bap_read_temp>  82#define );
ti_bap_read_temp>  82#define reg;
o_ho="sref">teompatiblede_9c= 2">  95"ti,omap4470>
<-ther"name="Li__erma__>ti_bap_read_temp>  82#define ti_bandgap_readl160"s>160mal/ti-soc-43to conce.ermal/ti-bandgaomap4470_datagap_read_temp" omap4470_datac#Sti_bap_read_temp>  82#define reg;
ti_bap_read_temp>  82#define id)
reg;
r>161>al/ti-soc-43  v2.6.12.1
<-thermal/16"1l" clas16">reg;
r>1611al/ti-soc-43to conce.teompatiblede_9c= 2">  95"ti,omap5430>
<-ther"name="Li__erma__>ti_bap_read_temp>  82#define reg;
r>1612al/ti-soc-43to conce.ermal/ti-bandgaomap5430_datagap_read_temp" omap5430_datac#Sti_bap_read_temp>  82#define );
ti_bap_read_temp>  82#define reg;
r>161mal/t#endif__erma__>ti_bap_read_temp>  82#define reg;
r>1615al/t#ifdefverbandt>ti_bc#LCONFIG_DRA752_THERMALAS=i" class="srCONFIG_DRA752_THERMAL="L9-soc-5h7eturn: 5d="L116" class="line" na5e="L151rn: tcl1616l" clas16">reg;
r>161mal/ti-soc-43  v2.6.12.1
<-thermal/16"7l" clas16">reg;
r>1617al/ti-soc-43to conce.teompatiblede_9c= 2">  95"ti,dra752>
<-ther"name="Li__erma__>ti_bap_read_temp>  82#define );
ermal/ti-bandgadra752_datagap_read_temp" dra752_datac#Sti_bap_read_temp>  82#define val2;
  95hermal/ti5bandgap Sban94"lm* name="L159"> 1595/a>
<-thermal/1622l" clas16 id="L152" class="line" 16 id>1622al/ti-soc-43{3}i__erma__>ti_bap_read_temp>  82#define tofde_9iverbandt>ti_bc#Lof__ <>ness tomatchgap_read_temp" of__ <>ness tomatchc#Sti_bap_read_temp>  82#define  1595/a>
<-thermal/1626l" clas165"> 155>162mal/tstaticsanshol->RMW_BITS(RMW_BITS(<_ <>ness tosoi5te_/a>ness tosoi5te_/a>
<-thermal/1627l" clas165"> 155>1627al/ti-soc-43.tprobede_9c= 2" c4ss="line" i <>ness toprobea>o_ho="sref">ti <>ness toprobec#Sti_bap_read_temp>  82#define o_ho="sref">tremovede_9c= 2" c4ss="line" i <>ness toremovea>o_ho="sref">ti <>ness toremovec#Sti_bap_read_temp>  82#define  155>1629al/ti-soc-43.
<-thermal/1630l" clas16c#L94" id="L94" class="l16c#L>163>al/ti-soc-43to conceRRRRRRRR.  95"ti 0 - off)ti_bap_read_temp>  82#define reg);
o_ho="sref">tpmde_9c= 2" c4ss="line" DEV_PM_OP946497="srefDEV_PM_OP9c#Sti_bap_read_temp>  82#define id)
i>1632al/ti-soc-43to conceeeeeeeee.tof_match_tablede_9c= 2" c4ss="line" of__ <>ness tomatchgap_read_temp" of__ <>ness tomatchc#Sti_bap_read_temp>  82#define id)
i>163al/ti-soc-t4"}i__erma__>ti_bap_read_temp>  82#define reg;
r>163mal/t};__erma__>ti_bap_read_temp>  82#define reg;
r>163> * F159"> 1595/a>
<-thermal/16c6l" clas16reg);
ness tosoi5te_/a>ti_bap_read_temp>  82#define reg;
r>163> * Fref">POWELdgap_read_tempre id)
i>163al/tiermal/ti-bandgaMODULE_DESCRIPTIONgap_read_temp" MODULE_DESCRIPTIONc#S  95"OMAP4+ hore ma _emperature soi5te dgap_r"name="L/;__erma__>ti_bap_read_temp>  82#define id)
i>1639al/termal/ti-bandgaMODULE_LICENSEgap_read_temp" MODULE_LICENSEc#S  95"GPL v2"name="L/;__erma__>ti_bap_read_temp>  82#define );
  95"platform:ti 0 - off)ti_bap_read_temp>  82#define reg;
r>1641al/termal/ti-bandgaMODULE_AUTHORgap_read_temp" MODULE_AUTHORc#S  95"Texas Inansh5ban Inc."name="L/;__erma__>ti_bap_read_temp>  82#define );
lxr@a hux.node_9.
); lxr.a hux.no kindly hosted by _erma__>thttp://www.redpill-a hpro.no">Redpill L hpro A9c#S<, provider of L huxsconsult=t