|
Sorry for the late reply. Thanks, so AFAIU, the guy who asked this question in 2015, was going to use LS1021a (not a typo LS1012a) as I2C slave device as well, and he shared a part of the slave driver code.
Is there any open source code for the full version of i2c slave driver for LS1012a? I might find it a bit hard to write my own one, or I should refer to some related links that would be helpful. Thanks
and also, if I installed Ubuntu 16.04 arm64, as described in NXP tutorial for this board, then this is the current i2c master driver, right?
https://github.com/torvalds/linux/blob/master/drivers/i2c/busses/i2c-imx.c
And I need to remove the i2c master driver from kernel module and include my i2c slave driver, right? This will cause several components on boards (like accelerator) which use I2C master be dysfunctional which is OK, I need to use LS1012a for SoC-to-SoC communication.
Got the answer on my question here - https://community.nxp.com/message/1296050?commentID=1296050#comment-1296050 . Thanks