[PATCH 3/3] OMAP4: DSS2: Add hwmod device names for OMAP4.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add hwmod device names for OMAP4; this enables device build for omap4 dss
hwmod IPs.

Signed-off-by: Sumit Semwal <sumit.semwal@xxxxxx>
---
 arch/arm/mach-omap2/display.c |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
index 276b800..918956e 100644
--- a/arch/arm/mach-omap2/display.c
+++ b/arch/arm/mach-omap2/display.c
@@ -51,20 +51,27 @@ int __init omap_display_init(struct omap_dss_board_info
 	struct omap_device *od;
 	int i;
 	struct omap_display_platform_data pdata;
-	char *oh_name[] = { 	"dss_dss",	/* omap2,3 */
-				"dss_dispc",	/* omap2,3 */
-				"dss_rfbi",	/* omap2,3 */
-				"dss_venc",	/* omap2,3 */
-				"dss_dsi1" };	/* omap3 */
+	char *oh_name[] = { 	"dss_dss",	/* omap2,3,4 */
+				"dss_dispc",	/* omap2,3,4 */
+				"dss_rfbi",	/* omap2,3,4 */
+				"dss_venc",	/* omap2,3,4 */
+				"dss_dsi1",	/* omap3,4 */
+				"dss_dsi2",	/* omap4 */
+				"dss_hdmi",	/* omap4 */
+			  };
+
 	char *dev_name[] = { "omap_dss", "omap_dispc", "omap_rfbi",
 				"omap_venc", "omap_dsi1" };
 	int oh_count;
 
 	if (cpu_is_omap24xx()) {
-		oh_count = ARRAY_SIZE(oh_name) - 1;
-		/* last hwmod dev in oh_name is not available for omap2 */
-	} else {
+		oh_count = ARRAY_SIZE(oh_name) - 3;
+		/* last 3 hwmod dev in oh_name not available for omap2 */
+	} else if (cpu_is_omap44xx()) {
 		oh_count = ARRAY_SIZE(oh_name);
+	} else {
+		oh_count = ARRAY_SIZE(oh_name) - 2;
+		/* last 2 hwmod dev in oh_name not available for omap3 */
 	}
 
 	pdata.board_data	=	board_data;
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux