Patchwork [U-Boot,2/4] fdt: exynos5: Add DT node definition for SROM and SMSC9215

login
register
mail settings
Submitter Hatim RV
Date Nov. 5, 2012, 10:18 a.m.
Message ID <1352110699-22244-3-git-send-email-hatim.rv@samsung.com>
Download mbox | patch
Permalink /patch/197178/
State Changes Requested
Delegated to: Minkyu Kang
Headers show

Comments

Hatim RV - Nov. 5, 2012, 10:18 a.m.
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>
Simon Glass - Nov. 6, 2012, 1:41 a.m.
Hi Hatim,

On Mon, Nov 5, 2012 at 2:18 AM, Hatim Ali <hatim.rv@samsung.com> wrote:
> 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>
>
> diff --git a/include/fdtdec.h b/include/fdtdec.h
> index 0b14075..e310ab4 100644
> --- a/include/fdtdec.h
> +++ b/include/fdtdec.h
> @@ -67,6 +67,9 @@ enum fdt_compat_id {
>         COMPAT_NVIDIA_TEGRA20_KBC,      /* Tegra20 Keyboard */
>         COMPAT_NVIDIA_TEGRA20_NAND,     /* Tegra2 NAND controller */
>

Perhaps remove this blank line?

> +       COMPAT_SMSC_LAN9215,            /* SMSC 10/100 Ethernet LAN9215 */
> +       COMPAT_SAMSUNG_EXYNOS5_SROMC,   /* Exynos5 SROMC */
> +
>         COMPAT_COUNT,
>  };
>
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index 4c23f45..43ba41a 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -43,6 +43,9 @@ static const char * const compat_names[COMPAT_COUNT] = {
>         COMPAT(NVIDIA_TEGRA20_EMC_TABLE, "nvidia,tegra20-emc-table"),
>         COMPAT(NVIDIA_TEGRA20_KBC, "nvidia,tegra20-kbc"),
>         COMPAT(NVIDIA_TEGRA20_NAND, "nvidia,tegra20-nand"),
> +

and this one

> +       COMPAT(SMSC_LAN9215, "smsc,lan9215"),
> +       COMPAT(SAMSUNG_EXYNOS5_SROMC, "samsung,exynos-sromc"),
>  };
>
>  const char *fdtdec_get_compatible(enum fdt_compat_id id)
> --
> 1.7.2.3
>

Regards,
Simon

Patch

diff --git a/include/fdtdec.h b/include/fdtdec.h
index 0b14075..e310ab4 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -67,6 +67,9 @@  enum fdt_compat_id {
 	COMPAT_NVIDIA_TEGRA20_KBC,	/* Tegra20 Keyboard */
 	COMPAT_NVIDIA_TEGRA20_NAND,	/* Tegra2 NAND controller */
 
+	COMPAT_SMSC_LAN9215,		/* SMSC 10/100 Ethernet LAN9215 */
+	COMPAT_SAMSUNG_EXYNOS5_SROMC,	/* Exynos5 SROMC */
+
 	COMPAT_COUNT,
 };
 
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 4c23f45..43ba41a 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -43,6 +43,9 @@  static const char * const compat_names[COMPAT_COUNT] = {
 	COMPAT(NVIDIA_TEGRA20_EMC_TABLE, "nvidia,tegra20-emc-table"),
 	COMPAT(NVIDIA_TEGRA20_KBC, "nvidia,tegra20-kbc"),
 	COMPAT(NVIDIA_TEGRA20_NAND, "nvidia,tegra20-nand"),
+
+	COMPAT(SMSC_LAN9215, "smsc,lan9215"),
+	COMPAT(SAMSUNG_EXYNOS5_SROMC, "samsung,exynos-sromc"),
 };
 
 const char *fdtdec_get_compatible(enum fdt_compat_id id)