i2c: ksdk: Add shim driver

Add a shim layer around the ksdk I2C driver to adapt it to the Zephyr
I2C interface. Currently only supports master mode.

Jira: ZEP-717
Change-Id: I704b8c38e22e456bb9fa4325682b2a354a27a7ba
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2016-04-29 15:53:40 -05:00 committed by Kumar Gala
commit e4067638b7
6 changed files with 307 additions and 0 deletions

View file

@ -108,6 +108,39 @@ endif # GPIO_K64
endif # GPIO
if I2C
config I2C_KSDK
def_bool y
config I2C_0
def_bool y
if I2C_0
config I2C_0_DEFAULT_CFG
default 0x12
config I2C_0_IRQ_PRI
default 0
endif # I2C_0
config I2C_1
def_bool n
if I2C_1
config I2C_1_DEFAULT_CFG
default 0x12
config I2C_1_IRQ_PRI
default 0
endif # I2C_1
endif # I2C
if PINMUX
config PINMUX_K64