<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read CPU temperature in u-boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Read-CPU-temperature-in-u-boot/m-p/605287#M91220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone follow and answer this question ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ko-hey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 08:43:26 GMT</pubDate>
    <dc:creator>ko-hey</dc:creator>
    <dc:date>2016-12-22T08:43:26Z</dc:date>
    <item>
      <title>Read CPU temperature in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-CPU-temperature-in-u-boot/m-p/605286#M91219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My customer is using i.MX6S and L3.10.17.&lt;/P&gt;&lt;P&gt;I want to check whether the value changes or not when I changed&amp;nbsp;TEMPERATURE_HOT parameter in soc.c.&lt;/P&gt;&lt;P&gt;Does i.MX6's register change when user&amp;nbsp;changed&amp;nbsp;TEMPERATURE_HOT parameter in soc.c ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that it will change the value of TEMPERATURE_HOT when&amp;nbsp;&lt;SPAN&gt;user&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;changed&amp;nbsp;TEMPERATURE_HOT parameter in soc.c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I correct ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my understanding is wrong, is it just reading the value of the temperature sensor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ko-hey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335885"&gt;soc.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 06:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-CPU-temperature-in-u-boot/m-p/605286#M91219</guid>
      <dc:creator>ko-hey</dc:creator>
      <dc:date>2016-12-13T06:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Read CPU temperature in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-CPU-temperature-in-u-boot/m-p/605287#M91220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone follow and answer this question ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ko-hey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 08:43:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-CPU-temperature-in-u-boot/m-p/605287#M91220</guid>
      <dc:creator>ko-hey</dc:creator>
      <dc:date>2016-12-22T08:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read CPU temperature in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-CPU-temperature-in-u-boot/m-p/605288#M91221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It&amp;nbsp; is to set a hot point to&amp;nbsp; compare to the value gets from thermal sensor, to decide in the uboot stage if the temperature if&amp;nbsp;it is fine&amp;nbsp;for boot to&amp;nbsp; the next stage here is linux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void check_cpu_temperature(void)&lt;BR /&gt;{&lt;BR /&gt; int cpu_tmp = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; cpu_tmp = read_cpu_temperature();&lt;/STRONG&gt;&lt;BR /&gt; while (cpu_tmp &amp;gt; TEMPERATURE_MIN &amp;amp;&amp;amp; cpu_tmp &amp;lt; TEMPERATURE_MAX) {&lt;BR /&gt; if (cpu_tmp &amp;gt;= TEMPERATURE_HOT) {&lt;BR /&gt; printf("CPU is %d C, too hot to boot, waiting...\n",&lt;BR /&gt; cpu_tmp);&lt;BR /&gt; udelay(5000000);&lt;BR /&gt; cpu_tmp = read_cpu_temperature();&lt;BR /&gt; } else&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; if (cpu_tmp &amp;gt; TEMPERATURE_MIN &amp;amp;&amp;amp; cpu_tmp &amp;lt; TEMPERATURE_MAX)&lt;BR /&gt; printf("CPU:&amp;nbsp;&amp;nbsp; Temperature %d C, calibration data: 0x%x\n",&lt;BR /&gt; cpu_tmp, fuse);&lt;BR /&gt; else&lt;BR /&gt; printf("CPU:&amp;nbsp;&amp;nbsp; Temperature: can't get valid data!\n");&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 09:16:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-CPU-temperature-in-u-boot/m-p/605288#M91221</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2016-12-22T09:16:11Z</dc:date>
    </item>
  </channel>
</rss>

