i2c: designware: Add support for an interface clock
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 28 Feb 2019 13:52:10 +0000 (13:52 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 20 Mar 2019 16:57:18 +0000 (17:57 +0100)
commitc62ebb3d5f0d0e9dafe990c9ce680ca9b46fd4c1
tree2f3d3a2dcbbda1b6fcd46b9fe193071641d2d0f4
parentbdfdf4b2ba644347d63a61da941f30aea1bd35fc
i2c: designware: Add support for an interface clock

The Synopsys I2C Controller has an interface clock, but most SoCs hide
this away. However, on some SoCs you need to explicitly enable the
interface clock in order to access the registers. Therefore, add
support for an optional interface clock.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Gareth Williams <gareth.williams.jx@renesas.com>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c