diff mbox

fdtdec: Add compatible string for High speed i2c

Message ID 1367276332-26351-1-git-send-email-naveenkrishna.ch@gmail.com
State Accepted
Commit ecbd7e1ec7280d90d151a99691f74b892588cadd
Headers show

Commit Message

Naveen Krishna Ch April 29, 2013, 10:58 p.m. UTC
Adds a new COMPAT string exynos5-hsi2c for high speed i2c controller
available on exynos5 SoCs from Samsung.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
---
This patch is required for the following change
http://lists.denx.de/pipermail/u-boot/2013-April/151886.html
and fixes the following issue.
http://www.mail-archive.com/u-boot@lists.denx.de/msg112117.html
Apologies for delaying this change.

 include/fdtdec.h |    1 +
 lib/fdtdec.c     |    1 +
 2 files changed, 2 insertions(+)
diff mbox

Patch

diff --git a/include/fdtdec.h b/include/fdtdec.h
index 4e8032b..2bf8ae8 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -93,6 +93,7 @@  enum fdt_compat_id {
 	COMPAT_GENERIC_SPI_FLASH,	/* Generic SPI Flash chip */
 	COMPAT_MAXIM_98095_CODEC,	/* MAX98095 Codec */
 	COMPAT_INFINEON_SLB9635_TPM,	/* Infineon SLB9635 TPM */
+	COMPAT_SAMSUNG_EXYNOS5_I2C,	/* Exynos5 High Speed I2C Controller */
 
 	COMPAT_COUNT,
 };
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 92fbefe..f8af561 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -66,6 +66,7 @@  static const char * const compat_names[COMPAT_COUNT] = {
 	COMPAT(GENERIC_SPI_FLASH, "spi-flash"),
 	COMPAT(MAXIM_98095_CODEC, "maxim,max98095-codec"),
 	COMPAT(INFINEON_SLB9635_TPM, "infineon,slb9635-tpm"),
+	COMPAT(SAMSUNG_EXYNOS5_I2C, "samsung,exynos5-hsi2c"),
 };
 
 const char *fdtdec_get_compatible(enum fdt_compat_id id)