]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd31dff0282db3bf0d352f0c1f9116d1e4ce555f
tree2f3d3a2dcbbda1b6fcd46b9fe193071641d2d0f4
parentbc38cd489e1843d3a6944774ae98f97cb6fc5eba
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