Add I2C driver framework

This I2C driver framework has some major differences compared to libi2c.

* It is compatible to the Linux I2C user-space API.

* It uses generic IMFS nodes and thus reduces the levels of indirection.

* The drivers don't have to mess around with minor numbers to get their
  state information.

* No arbitrary bus controller model is assumed.  The main task of an I2C
  bus controller driver is to process I2C messages.  How this is done is
  private to the driver.

* Scatter/gather operations are supported (I2C_M_NOSTART).
This commit is contained in:
Sebastian Huber
2014-11-07 13:47:39 +01:00
parent b6f218867b
commit 41c5f1b779
12 changed files with 1413 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ project_lib_LIBRARIES = librtemscpu.a
librtemscpu_a_SOURCES =
TMP_LIBS =
TMP_LIBS += ../dev/libdev.a
TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
TMP_LIBS += ../score/libscore.a
TMP_LIBS += ../sapi/libsapi.a