<div dir="ltr"><div><div><div><div>I am not sure  my last email approach may be not good.<br><br></div>but one thing : how to compile : ./src/soc/intel/common/block/i2c/lpss_i2c.c . <br></div>In my project i am compiling only libpayload. and need to to compile this i2c project too,<br><br><br></div>Regards<br></div>Chiinmoy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 17, 2017 at 4:05 PM, chinmoy ghosh <span dir="ltr"><<a href="mailto:chinmoyghosh2001@gmail.com" target="_blank">chinmoyghosh2001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks for reply. <br></div><div><br></div><div>Requirement : <br></div><div>I am working for Intel <span class="m_7193168914010785520gmail-st"> Apollo Lake SOC</span>.<br></div>I need to enable a power chip which sits on I2c bus  and reset the chip via gpio pin .So i need to write a slave driver to access the chip.</div><div><br></div><div>Static Analysis by me  : <br></div><div>Before that , i2c master should be there .  I feel lpss_i2c.c can help the same. <br></div><div>I called the lpss_i2c_init function from external/coreboot/payloads/<wbr>libpayload/arch/x86/main.c and compiling with libpayload.a .</div><div>let me know if i am right upto this ?. if it is then following questions are : <br></div><div>1) how to access  GPIO register to ser one or zero <br></div><div>2) how to do i2c slave write for that chip ? any api for that ?<br></div><div><br></div><div><br></div><div>Regards</div><div>Chinmoy<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Nov 17, 2017 at 2:04 PM, Paul Menzel <span dir="ltr"><<a href="mailto:paulepanter@users.sourceforge.net" target="_blank">paulepanter@users.<wbr>sourceforge.net</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Dear Chinmoy,<br>
<br>
<br>
Am Donnerstag, den 16.11.2017, 17:48 +0530 schrieb chinmoy ghosh:<br>
> I am new to coreboot.<br>
<br>
Welcome!<br>
<span><br>
> I am able to clone the coreboot and able to compile for x86 arch.<br>
</span>> I am not able to select any drivers in the menuconfig. I want compile some<br>
> coreboot/src/drivers/i2c drivers.<br>
<br>
I assume these are dependent on the board. Please elaborate on your<br>
goal, that means what I2C driver do you need, and what board do you<br>
work on, and give all the necessary details, like what commit hash you<br>
use.<br>
<br>
<br>
Thanks,<br>
<br>
Paul<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
<a href="https://mail.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://mail.coreboot.org/mail<wbr>man/listinfo/coreboot</a><br></font></span></blockquote></div><br></div>
</blockquote></div><br></div>