I am not sure  my last email approach may be not good.

but one thing : how to compile : ./src/soc/intel/common/block/i2c/lpss_i2c.c .
In my project i am compiling only libpayload. and need to to compile this i2c project too,


Regards
Chiinmoy

On Fri, Nov 17, 2017 at 4:05 PM, chinmoy ghosh <chinmoyghosh2001@gmail.com> wrote:
Thanks for reply.

Requirement :
I am working for Intel Apollo Lake SOC.
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.

Static Analysis by me  :
Before that , i2c master should be there .  I feel lpss_i2c.c can help the same.
I called the lpss_i2c_init function from external/coreboot/payloads/libpayload/arch/x86/main.c and compiling with libpayload.a .
let me know if i am right upto this ?. if it is then following questions are :
1) how to access  GPIO register to ser one or zero
2) how to do i2c slave write for that chip ? any api for that ?


Regards
Chinmoy


On Fri, Nov 17, 2017 at 2:04 PM, Paul Menzel <paulepanter@users.sourceforge.net> wrote:
Dear Chinmoy,


Am Donnerstag, den 16.11.2017, 17:48 +0530 schrieb chinmoy ghosh:
> I am new to coreboot.

Welcome!

> I am able to clone the coreboot and able to compile for x86 arch.
> I am not able to select any drivers in the menuconfig. I want compile some
> coreboot/src/drivers/i2c drivers.

I assume these are dependent on the board. Please elaborate on your
goal, that means what I2C driver do you need, and what board do you
work on, and give all the necessary details, like what commit hash you
use.


Thanks,

Paul
--
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot