]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_GCC/freedom-metal/doc/html/devguide/fe310-g000-pll.html
Base project to replace existing Freedom Studio project using latest Freedom Studio...
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_GCC / freedom-metal / doc / html / devguide / fe310-g000-pll.html
1
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <html xmlns="http://www.w3.org/1999/xhtml">
6   <head>
7     <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
8     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9     <title>FE310-G00 PLL &#8212; Freedom Metal v201905 documentation</title>
10     <link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
11     <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12     <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
13     <script type="text/javascript" src="../_static/jquery.js"></script>
14     <script type="text/javascript" src="../_static/underscore.js"></script>
15     <script type="text/javascript" src="../_static/doctools.js"></script>
16     <link rel="index" title="Index" href="../genindex.html" />
17     <link rel="search" title="Search" href="../search.html" />
18     <link rel="next" title="Interrupt Handlers" href="interrupts.html" />
19     <link rel="prev" title="Exception Handlers" href="exceptions.html" />
20    
21   <link rel="stylesheet" href="../_static/custom.css" type="text/css" />
22   
23   
24   <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
25
26   </head><body>
27   
28
29     <div class="document">
30       <div class="documentwrapper">
31         <div class="bodywrapper">
32           
33
34           <div class="body" role="main">
35             
36   <div class="section" id="fe310-g00-pll">
37 <h1>FE310-G00 PLL<a class="headerlink" href="#fe310-g00-pll" title="Permalink to this headline">ΒΆ</a></h1>
38 <p>On targets with a PLL compatible with the FE310-G000 SoC, the PLL is configured
39 at program initialization with a constructor. This PLL sets the clock frequency
40 of the RISC-V CPU, and users of Freedom Metal who wish to set a specific clock
41 rate can use Freedom Metal to request that the PLL take on a certain output rate.</p>
42 <p>In the DeviceTree for your target, there should be a node like the following
43 (example taken from the SiFive HiFive1):</p>
44 <div class="highlight-DeviceTree notranslate"><div class="highlight"><pre><span></span>hfclk: clock@4 {
45         compatible = &quot;sifive,fe310-g000,pll&quot;;
46         clocks = &lt;&amp;hfxoscout &amp;hfroscout&gt;;
47         clock-names = &quot;pllref&quot;, &quot;pllsel0&quot;;
48         reg = &lt;&amp;prci 0x8 &amp;prci 0xc&gt;;
49         reg-names = &quot;config&quot;, &quot;divider&quot;;
50         clock-frequency = &lt;16000000&gt;;
51 };
52 </pre></div>
53 </div>
54 <p>The <code class="docutils literal notranslate"><span class="pre">clock-frequency</span></code> property of the node sets the requested clock rate of
55 the FE310-G000 PLL. The PLL driver will attempt to configure the PLL to achieve
56 this clock rate.</p>
57 <p>Users should note that the FE310-G000 PLL only supports certain input/output
58 clock rate ratios, and so the effective output rate of the PLL may differ from
59 the requested rate.</p>
60 </div>
61
62
63           </div>
64           
65         </div>
66       </div>
67       <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
68         <div class="sphinxsidebarwrapper">
69 <h1 class="logo"><a href="../index.html">Freedom Metal</a></h1>
70
71
72
73
74
75
76
77
78 <h3>Navigation</h3>
79 <ul class="current">
80 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction to Freedom Metal</a></li>
81 <li class="toctree-l1 current"><a class="reference internal" href="../devguide.html">Developer Guide</a><ul class="current">
82 <li class="toctree-l2"><a class="reference internal" href="exceptions.html">Exception Handlers</a></li>
83 <li class="toctree-l2 current"><a class="current reference internal" href="#">FE310-G00 PLL</a></li>
84 <li class="toctree-l2"><a class="reference internal" href="interrupts.html">Interrupt Handlers</a></li>
85 <li class="toctree-l2"><a class="reference internal" href="itim.html">Instruction Tightly Integrated Memory</a></li>
86 <li class="toctree-l2"><a class="reference internal" href="pmps.html">Physical Memory Protection</a></li>
87 <li class="toctree-l2"><a class="reference internal" href="tty.html">Standard I/O</a></li>
88 </ul>
89 </li>
90 <li class="toctree-l1"><a class="reference internal" href="../api.html">API Reference</a></li>
91 </ul>
92
93 <div class="relations">
94 <h3>Related Topics</h3>
95 <ul>
96   <li><a href="../index.html">Documentation overview</a><ul>
97   <li><a href="../devguide.html">Developer Guide</a><ul>
98       <li>Previous: <a href="exceptions.html" title="previous chapter">Exception Handlers</a></li>
99       <li>Next: <a href="interrupts.html" title="next chapter">Interrupt Handlers</a></li>
100   </ul></li>
101   </ul></li>
102 </ul>
103 </div>
104 <div id="searchbox" style="display: none" role="search">
105   <h3>Quick search</h3>
106     <div class="searchformwrapper">
107     <form class="search" action="../search.html" method="get">
108       <input type="text" name="q" />
109       <input type="submit" value="Go" />
110       <input type="hidden" name="check_keywords" value="yes" />
111       <input type="hidden" name="area" value="default" />
112     </form>
113     </div>
114 </div>
115 <script type="text/javascript">$('#searchbox').show(0);</script>
116         </div>
117       </div>
118       <div class="clearer"></div>
119     </div>
120     <div class="footer">
121       &copy;2019, SiFive Inc..
122       
123       |
124       Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.5</a>
125       &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.11</a>
126       
127       |
128       <a href="../_sources/devguide/fe310-g000-pll.rst.txt"
129           rel="nofollow">Page source</a>
130     </div>
131
132     
133
134     
135   </body>
136 </html>