Patchwork [U-Boot,1/4,V5] EXYNOS5: FDT: Add compatible strings for Serial

login
register
mail settings
Submitter Rajeshwari Birje
Date May 17, 2013, 11:03 a.m.
Message ID <1368788601-11221-2-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/244612/
State Changes Requested
Delegated to: Minkyu Kang
Headers show

Comments

Rajeshwari Birje - May 17, 2013, 11:03 a.m.
Add required compatible information for s5p serial driver

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
---
Changes in V2:
        - Changed the compatible string to "samsung,exynos4210-uart"
Changes in V3:
	- Rebased on latest u-boot-samsung
Changes in V4:
	- Rebased on latest u-boot-samsung
	- Changed to COMPAT_SAMSUNG_EXYNOS5_SERIAL to COMPAT_SAMSUNG_EXYNOS_SERIAL 
Changes in V5:
	- None 
include/fdtdec.h |    1 +
 lib/fdtdec.c     |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
Minkyu Kang - June 21, 2013, 2:26 p.m.
Dear Rajeshwari Shinde,


On 17 May 2013 20:03, Rajeshwari Shinde <rajeshwari.s@samsung.com> wrote:

> Add required compatible information for s5p serial driver
>
> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> Acked-by: Simon Glass <sjg@chromium.org>
> ---
> Changes in V2:
>         - Changed the compatible string to "samsung,exynos4210-uart"
> Changes in V3:
>         - Rebased on latest u-boot-samsung
> Changes in V4:
>         - Rebased on latest u-boot-samsung
>         - Changed to COMPAT_SAMSUNG_EXYNOS5_SERIAL to
> COMPAT_SAMSUNG_EXYNOS_SERIAL
> Changes in V5:
>         - None
> include/fdtdec.h |    1 +
>  lib/fdtdec.c     |    1 +
>  2 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/include/fdtdec.h b/include/fdtdec.h
> index 844991e..7f78dbc 100644
> --- a/include/fdtdec.h
> +++ b/include/fdtdec.h
> @@ -92,6 +92,7 @@ enum fdt_compat_id {
>         COMPAT_MAXIM_MAX77686_PMIC,     /* MAX77686 PMIC */
>         COMPAT_GENERIC_SPI_FLASH,       /* Generic SPI Flash chip */
>         COMPAT_MAXIM_98095_CODEC,       /* MAX98095 Codec */
> +       COMPAT_SAMSUNG_EXYNOS_SERIAL,   /* Exynos UART */
>

Why don't you gather with SAMSUNG stuffs?


>
>         COMPAT_COUNT,
>  };
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index 403babd..b141211 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -65,6 +65,7 @@ static const char * const compat_names[COMPAT_COUNT] = {
>         COMPAT(MAXIM_MAX77686_PMIC, "maxim,max77686_pmic"),
>         COMPAT(GENERIC_SPI_FLASH, "spi-flash"),
>         COMPAT(MAXIM_98095_CODEC, "maxim,max98095-codec"),
> +       COMPAT(SAMSUNG_EXYNOS_SERIAL, "samsung,exynos4210-uart"),
>

ditto.


>  };
>
>  const char *fdtdec_get_compatible(enum fdt_compat_id id)
> --
> 1.7.4.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>


Thanks,
Minkyu Kang.

Patch

diff --git a/include/fdtdec.h b/include/fdtdec.h
index 844991e..7f78dbc 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -92,6 +92,7 @@  enum fdt_compat_id {
 	COMPAT_MAXIM_MAX77686_PMIC,	/* MAX77686 PMIC */
 	COMPAT_GENERIC_SPI_FLASH,	/* Generic SPI Flash chip */
 	COMPAT_MAXIM_98095_CODEC,	/* MAX98095 Codec */
+	COMPAT_SAMSUNG_EXYNOS_SERIAL,	/* Exynos UART */
 
 	COMPAT_COUNT,
 };
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 403babd..b141211 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -65,6 +65,7 @@  static const char * const compat_names[COMPAT_COUNT] = {
 	COMPAT(MAXIM_MAX77686_PMIC, "maxim,max77686_pmic"),
 	COMPAT(GENERIC_SPI_FLASH, "spi-flash"),
 	COMPAT(MAXIM_98095_CODEC, "maxim,max98095-codec"),
+	COMPAT(SAMSUNG_EXYNOS_SERIAL, "samsung,exynos4210-uart"),
 };
 
 const char *fdtdec_get_compatible(enum fdt_compat_id id)