i2c: designware_i2c: Optionally check enable status register
authorStefan Roese <sr@denx.de>
Wed, 27 Apr 2016 07:02:12 +0000 (09:02 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 17 May 2016 06:28:50 +0000 (08:28 +0200)
commitb6a77b0ce8ac21c154f02907c364b6d3e3c8af5e
tree67b980cdd9b641cffb2e2f0a2277a36e6b11580f
parentd79ac324789839b4b10b37e2ff64dd9e4a92441e
i2c: designware_i2c: Optionally check enable status register

Some platforms don't implement the enable status register at offset 0x9c.
The SPEAr600 platform is one of them. The recently added check to this
status register can't be performend on these platforms.

This patch introduces a new config option that can be enabled on such
platforms not supporting this register.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/designware_i2c.c