diff mbox

[PATCHv4,07/10] ARM: OMAP2+: display: detect DRA7 DSS

Message ID 1433139798-23450-8-git-send-email-tomi.valkeinen@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tomi Valkeinen June 1, 2015, 6:23 a.m. UTC
Add platform code to detect DRA7 DSS.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
---
 arch/arm/mach-omap2/display.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tony Lindgren June 3, 2015, 3:42 p.m. UTC | #1
* Tomi Valkeinen <tomi.valkeinen@ti.com> [150531 23:25]:
> Add platform code to detect DRA7 DSS.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

Acked-by: Tony Lindgren <tonY@atomide.com>

> ---
>  arch/arm/mach-omap2/display.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
> index 9868d0bc7805..6ab13d18c636 100644
> --- a/arch/arm/mach-omap2/display.c
> +++ b/arch/arm/mach-omap2/display.c
> @@ -287,6 +287,8 @@ static enum omapdss_version __init omap_display_get_version(void)
>  		return OMAPDSS_VER_OMAP5;
>  	else if (soc_is_am43xx())
>  		return OMAPDSS_VER_AM43xx;
> +	else if (soc_is_dra7xx())
> +		return OMAPDSS_VER_DRA7xx;
>  	else
>  		return OMAPDSS_VER_UNKNOWN;
>  }
> @@ -573,6 +575,7 @@ static const char * const omapdss_compat_names[] __initconst = {
>  	"ti,omap3-dss",
>  	"ti,omap4-dss",
>  	"ti,omap5-dss",
> +	"ti,dra7-dss",
>  };
>  
>  struct device_node * __init omapdss_find_dss_of_node(void)
> -- 
> 2.1.4
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
index 9868d0bc7805..6ab13d18c636 100644
--- a/arch/arm/mach-omap2/display.c
+++ b/arch/arm/mach-omap2/display.c
@@ -287,6 +287,8 @@  static enum omapdss_version __init omap_display_get_version(void)
 		return OMAPDSS_VER_OMAP5;
 	else if (soc_is_am43xx())
 		return OMAPDSS_VER_AM43xx;
+	else if (soc_is_dra7xx())
+		return OMAPDSS_VER_DRA7xx;
 	else
 		return OMAPDSS_VER_UNKNOWN;
 }
@@ -573,6 +575,7 @@  static const char * const omapdss_compat_names[] __initconst = {
 	"ti,omap3-dss",
 	"ti,omap4-dss",
 	"ti,omap5-dss",
+	"ti,dra7-dss",
 };
 
 struct device_node * __init omapdss_find_dss_of_node(void)