argh! of course I forgot to actually attach the patch. Here we go again:<div><br><br><div class="gmail_quote">On Mon, Jan 31, 2011 at 3:53 PM, David Hendricks <span dir="ltr"><<a href="mailto:dhendrix@google.com">dhendrix@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">A few months ago, ITE open sourced the initial IT8500 EC patch on this mailing list (<a href="http://www.flashrom.org/pipermail/flashrom/2010-August/004382.html" target="_blank">http://www.flashrom.org/pipermail/flashrom/2010-August/004382.html</a>) so that we could check it in to the Chromium OS branch. It didn't quite make it upstream, and has been updated since then.<br>


<br>The attached patch basically does the same thing and has been deployed and tested to work on the Cr-48. There are a few caveats, though:<br>- The boot BIOS straps register must be modified to select LPC. This can be done with the attached "select_bbs.sh" script (Install iotools (<a href="http://code.google.com/p/iotools/" target="_blank">http://code.google.com/p/iotools/</a>) before using select_bbs). We worked around this in the Chromium OS branch by adding a bus argument to the programmer option, ie "flashrom -p internal:bus=lpc".<br>


<br>- It is very important to disable power management daemons before running Flashrom on this EC. I commented out the brute force method we use in the Chromium OS branch that disables powerd, since IIRC Carl-Daniel has a better approach in the works.<br>


<br>- Due to dependencies which may be introduced by the OEM/ODM EC firmware, the code is not guaranteed to work for anything other than the Cr-48.<div><br></div><div>- Carl-Daniel pointed out that the code might ignore the result of it87 init code. I've attempted to mitigate this in the patch (see internal.c), but I think it's just the symptom of a larger problem with how we detect and initialize IO bridges, and should probably be dealt with in a separate patch.</div>


<div><br><i>Here is the text from the original patch submission:<br>The attached patch adds generalized support for IT8500/IT8502 embedded controllers.<br>The patch was developed by Google for Flashrom r1082, but applies cleanly against r1130.<br>


It was tested for IT8500E on a Chrome OS platform and may require modification<br>depending on ODM/OEM customization and EC firmware version.<br><br>This patch is not officially supported by ITE Tech Inc.</i><br><br>Signed-off-by: David Hendricks <<a href="mailto:dhendrix@google.com" target="_blank">dhendrix@google.com</a>><div>


(The original patch also included a sign-off from Yung-chieh Lo @ Google and Donald Huang @ ITE).</div><div><br>--<br>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.<br></div></div>
</blockquote></div><br><br clear="all">Signed-off-by: David Hendricks <<a href="mailto:dhendrix@google.com">dhendrix@google.com</a>></div><div><br>-- <br>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.<br>


</div>