<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 26, 2016 at 12:20 AM, Zheng Bao <span dir="ltr"><<a href="mailto:fishbaoz@hotmail.com" target="_blank">fishbaoz@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">


<div><div dir="ltr"><a href="https://chromium.googlesource.com/chromiumos/platform/ec" target="_blank"></a><a href="https://chromium.googlesource.com/chromiumos/platform/ec" target="_blank"></a><a href="https://chromium.googlesource.com/chromiumos/platform/ec" target="_blank">https://chromium.googlesource.com/chromiumos/platform/ec</a><br><br>Hi, Stafan & All,<br>I am trying to build a platform which uses AMD APU + EC.<br><br>My goal is let EC <br>1. give the power sequencing logic to APU<br>2. play as a generic EC which has features like keyboard, UART.<br><br>Currently, I don't have plan to boot chrome OS yet.<br><br>So I need you guys give me some advice. <br>Does chromeOS-EC meet my requirement?<br></div></div></blockquote><div><br></div><div>Yes, it should. However there is only support for a limited number of ECs.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div dir="ltr">Is it OK if I don't boot chromeOS?</div></div></blockquote><div><br></div><div>Yes. Most of the verified boot logic is in the host firmware (coreboot/depthcharge).</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"> Is chromeOS-EC hard to master?</div></div></blockquote></div><br><div>I'd say it's moderately difficult, but not bad. The mess of config #defines can be frustrating (ctags and grep are infinitely useful) but the design makes sense for something that is optimized for minimal code size and reusability among different ECs.</div><div><br></div><div>I don't know how easy/difficult it is compared to other EC firmwares. I suggest using ctags to walk thru the initialization code in common/main.c to see how initialization is done, and also choose a specific board (with your preferred EC) to study how GPIOs, interrupts, tasks, hooks, etc. are used.</div><div><br></div><div>Try posting to <a href="mailto:chromium-os-dev@chromium.org" target="_blank">chromium-os-dev@chromium.org</a>. There are several EC developers who read that list and can answer questions.<br></div><div><br></div>-- <br><div>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.</div>
</div></div>