OSDN Git Service

i2c: designware: Add Intel Baytrail PMIC I2C bus support
authorDavid Box <david.e.box@linux.intel.com>
Thu, 15 Jan 2015 09:12:17 +0000 (01:12 -0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 26 Jan 2015 11:26:25 +0000 (12:26 +0100)
commit894acb2f823b13afacfe40b02efbd9146af58586
tree0f4b01bb796bfbceaf1764111a356581502bedcd
parentc0601d285efe063def984f91b04de2d227f89526
i2c: designware: Add Intel Baytrail PMIC I2C bus support

This patch implements an I2C bus sharing mechanism between the host and platform
hardware on select Intel BayTrail SoC platforms using the X-Powers AXP288 PMIC.

On these platforms access to the PMIC must be shared with platform hardware. The
hardware unit assumes full control of the I2C bus and the host must request
access through a special semaphore. Hardware control of the bus also makes it
necessary to disable runtime pm to avoid interfering with hardware transactions.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-designware-baytrail.c [new file with mode: 0644]
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c