matrix utility apps: initial version
[keystone-demos/matrix-apps.git] / utility_eeprom / i2c.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3 /*
4  * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
5  *
6  *
7  *  Redistribution and use in source and binary forms, with or without
8  *  modification, are permitted provided that the following conditions
9  *  are met:
10  *
11  *    Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  *
14  *    Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the
17  *    distribution.
18  *
19  *    Neither the name of Texas Instruments Incorporated nor the names of
20  *    its contributors may be used to endorse or promote products derived
21  *    from this software without specific prior written permission.
22  *
23  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 -->
35 <html xmlns="http://www.w3.org/1999/xhtml">
36 <head>
37 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
38 <title>Keystone II Utility Applications</title>
39 <SCRIPT TYPE="text/javascript">
40         function openpopup(url)
41         {
42             location.href=url;
43         }
44         function submitForm1()
45         {
46                 if(document.pressed == 'Write EEPROM')
47                 {
48                         document.iblUpgrade.action ="apps/utility_eeprom/cgi-bin/eepromwrite.cgi";
49                 }
50                 return true;
51         }
53         function submitForm2()
54         {
55                 if(document.pressed == 'Read EEPROM')
56                 {
57                         document.eepromRead.action ="apps/utility_eeprom/cgi-bin/eepromread.cgi";
58                 }
59                 return true;
60         }
62 </SCRIPT>
63 </head>
64 <body>
65 <div id="wrapper">
66         <div id="logo">
67                 <h1>EEPROM Utility</h1>
68         </div>
69         <div id="header">
70                 <div id="menu">
71                 </div>
72         </div>
73 </div>
75 <div id="page">
76         <div id="content">
77                 <hr>
78                 <table cellpadding="6">
79                         <tr><td valign="center">
80                         <image src="apps/images/utilities-c66x.png">
81                         </td><td width="100%" align="justify">
82                         <h2>Program the EEPROM on the Platform</h2>
83                         <br>
84                         <p class="Description"><b>Description:</b> This page allows the user to read/write the I2C EEPROM. While programming IBL there is an option to restore the existing IBL configuration after the upgrade.</p>
85                         </td></tr>
86                 </table>
87                 <hr>
88                 <br>
89                 <div id="eepromwrite" style="width: 90%; margin-left: 25px; padding: 2px; border: 1px gray solid;">
90                         <form name="iblUpgrade" onsubmit="return submitForm1();" enctype="multipart/form-data" method="post">
91                         <table border="0" cellpadding="5" id="eepromwritetable" width="100%">
92                                 <caption> <b> I2C EEPROM Write </b> </caption>
93                                 <tr>
94                                 <td width="30%" align="left">I2C Bus Address</td>
95                                 <td align="left" width="60%">
96                                 <input type="radio" value="0x50" name="busAddr"> 0x50
97                                 <input type="radio" value="0x51" checked name="busAddr"> 0x51</td>
98                                 </tr>
99                                 <tr>
100                                 <td width="30%" align="left">Image File</td>
101                                 <td align="left" width="60%">
102                                 <input type="file"  name="datafile" size="40px" value=""></td>
103                                 </tr>
104                                 <tr>
105                                 <td width="91%" align="left" colspan="2"><input type="submit" onclick="document.pressed=this.value" value="Write EEPROM"></td>
106                                 </tr>
107                         </table>
108                         </form>
109                 </div>
110                 <br>
111                 <div id="eepromRead" style="width: 90%; margin-left: 25px; padding: 2px; border: 1px gray solid;">
112                         <form name="eepromRead" onsubmit="return submitForm2();" enctype="multipart/form-data" method="post">
113                         <table border="0" cellpadding="5" id="eepromreadtable" width="100%">
114                                 <caption> <b> I2C EEPROM Read </b> </caption>
115                                 <tr>
116                                 <td width="30%" align="left">I2C Bus Address</td>
117                                 <td align="left" width="60%">
118                                 <input type="radio" value="0x50" name="busAddr"> 0x50
119                                 <input type="radio" value="0x51" checked name="busAddr"> 0x51</td>
120                                 </tr>
121                                 <tr>
122                                 <td width="30%" align="left"><input type="submit" value="Read EEPROM" onclick="document.pressed=this.value"> </td>
123                                 </tr>
124                         </table>
125                         </form>
126                 </div>
127                 <br>
128                 <br>
129                 <br>
130         </div>
132         <div style="clear: both;">&nbsp;</div>
133 </div>
135 <div id="footer">
136         <p id="legal">( c ) 2013 Texas Instruments Incorporated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
137 </div>
139 </body>
140 </html>