fdt: exynos5: Add DT node definition for SROM and SMSC9215
authorHatim RV <hatim.rv@samsung.com>
Tue, 11 Dec 2012 00:52:46 +0000 (00:52 +0000)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 26 Dec 2012 10:26:25 +0000 (19:26 +0900)
Add the compatibility string and constant for the ethernet driver
so the device tree parsing code can recognize it.

Signed-off-by: Hatim Ali <hatim.rv@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
include/fdtdec.h
lib/fdtdec.c

index 70d0e979d127b38f9358218d214a3e7b69d55c38..12587f9ee300300fc7d72246545ca723ef11ecdb 100644 (file)
@@ -70,6 +70,8 @@ enum fdt_compat_id {
        COMPAT_NVIDIA_TEGRA20_NAND,     /* Tegra2 NAND controller */
        COMPAT_NVIDIA_TEGRA20_PWM,      /* Tegra 2 PWM controller */
        COMPAT_NVIDIA_TEGRA20_DC,       /* Tegra 2 Display controller */
+       COMPAT_SMSC_LAN9215,            /* SMSC 10/100 Ethernet LAN9215 */
+       COMPAT_SAMSUNG_EXYNOS5_SROMC,   /* Exynos5 SROMC */
 
        COMPAT_COUNT,
 };
index 6dba4389f23c231c9b9b34a330b7afeb753689b1..adebd795454578dd54a804fbc6e9f0cae17ac5f6 100644 (file)
@@ -45,6 +45,8 @@ static const char * const compat_names[COMPAT_COUNT] = {
        COMPAT(NVIDIA_TEGRA20_NAND, "nvidia,tegra20-nand"),
        COMPAT(NVIDIA_TEGRA20_PWM, "nvidia,tegra20-pwm"),
        COMPAT(NVIDIA_TEGRA20_DC, "nvidia,tegra20-dc"),
+       COMPAT(SMSC_LAN9215, "smsc,lan9215"),
+       COMPAT(SAMSUNG_EXYNOS5_SROMC, "samsung,exynos-sromc"),
 };
 
 const char *fdtdec_get_compatible(enum fdt_compat_id id)