From: Sumit Semwal <sumit.semwal@ti.com>
To: tomi.valkeinen@nokia.com, paul@pwsan.com,
khilman@deeprootsystems.com, hvaibhav@ti.com,
linux-omap@vger.kernel.org
Cc: Sumit Semwal <sumit.semwal@ti.com>
Subject: [PATCH 3/3] OMAP4: DSS2: Add hwmod device names for OMAP4.
Date: Wed, 5 Jan 2011 23:14:04 +0530 [thread overview]
Message-ID: <1294249444-11951-4-git-send-email-sumit.semwal@ti.com> (raw)
In-Reply-To: <1294249444-11951-1-git-send-email-sumit.semwal@ti.com>
Add hwmod device names for OMAP4; this enables device build for omap4 dss
hwmod IPs.
Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
---
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
next prev parent reply other threads:[~2011-01-05 17:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-05 17:44 [PATCH 0/3] OMAP4: DSS OMAP4 hwmod support Sumit Semwal
2011-01-05 17:44 ` [PATCH 1/3] OMAP2PLUS: DSS2: Add OMAP4 support Sumit Semwal
2011-01-05 17:44 ` [PATCH 2/3] OMAP4: hwmod data: add DSS DISPC DSI1,2 RFBI HDMI VENC Sumit Semwal
2011-01-05 17:44 ` Sumit Semwal [this message]
2011-01-07 23:02 ` [PATCH 0/3] OMAP4: DSS OMAP4 hwmod support Kevin Hilman
2011-01-09 8:49 ` Semwal, Sumit
2011-01-11 1:36 ` Kevin Hilman
2011-01-11 4:59 ` Semwal, Sumit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294249444-11951-4-git-send-email-sumit.semwal@ti.com \
--to=sumit.semwal@ti.com \
--cc=hvaibhav@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=tomi.valkeinen@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox