]> git.sur5r.net Git - u-boot/commitdiff
i2c: Select SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED for SPEAr
authorStefan Roese <sr@denx.de>
Thu, 28 Apr 2016 07:47:19 +0000 (09:47 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 17 May 2016 06:29:00 +0000 (08:29 +0200)
The DW I2C controller in the SPEAr SoCs doesn't support the enable
status register check. This patch selects
SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED for these boards.

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

index 193b9f59b8db4692ce8ba4f8444ab0a2c573a866..6e22bbadff2d54d24fd34f8500896ce970cec325 100644 (file)
@@ -80,6 +80,16 @@ config SYS_I2C_DW
          controller is used in various SoCs, e.g. the ST SPEAr, Altera
          SoCFPGA, Synopsys ARC700 and some Intel x86 SoCs.
 
+config SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED
+       bool "DW I2C Enable Status Register not supported"
+       depends on SYS_I2C_DW && (TARGET_SPEAR300 || TARGET_SPEAR310 || \
+               TARGET_SPEAR320 || TARGET_SPEAR600 || TARGET_X600)
+       default y
+       help
+         Some versions of the Designware I2C controller do not support the
+         enable status register. This config option can be enabled in such
+         cases.
+
 config SYS_I2C_INTEL
        bool "Intel I2C/SMBUS driver"
        depends on DM_I2C