From: Stefan Roese Date: Thu, 28 Apr 2016 09:47:19 +0200 Subject: [U-Boot] [PATCH 3/3] i2c: Select SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED for SPEAr In-Reply-To: <1461829639-32118-1-git-send-email-sr@denx.de> References: <1461829639-32118-1-git-send-email-sr@denx.de> Message-ID: <1461829639-32118-3-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Cc: Heiko Schocher --- drivers/i2c/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 48ab486..3b9f5f5 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -73,6 +73,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 -- 2.8.1