All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Nelson <robertcnelson@gmail.com>
To: dri-devel@lists.freedesktop.org, robdclark@gmail.com
Cc: beagleboard-x15@googlegroups.com
Subject: [PATCH] add support for AM572x in the DDX
Date: Fri,  5 Dec 2014 08:42:03 -0600	[thread overview]
Message-ID: <1417790523-4384-1-git-send-email-robertcnelson@gmail.com> (raw)

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 README            | 1 +
 src/omap_driver.c | 3 +++
 src/omap_driver.h | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/README b/README
index 059f258..d4afd89 100644
--- a/README
+++ b/README
@@ -9,6 +9,7 @@ the following chipsets:
   + OMAP4460
   + OMAP5430
   + OMAP5432
+  + AM572x
 
 
 NOTE: this driver is work in progress..  you probably don't want to try
diff --git a/src/omap_driver.c b/src/omap_driver.c
index 1fc188d..b9d90c5 100644
--- a/src/omap_driver.c
+++ b/src/omap_driver.c
@@ -95,6 +95,7 @@ static SymTabRec OMAPChipsets[] = {
 		/*    { 4470, "OMAP4470 with <redacted> ;-)" }, */
 		{ 0x5430, "OMAP5430 with PowerVR SGX544 MP" },
 		{ 0x5432, "OMAP5432 with PowerVR SGX544 MP" },
+		{ 0x0752, "AM572x with PowerVR SGX544 MP" },
 		{-1, NULL }
 };
 
@@ -620,6 +621,7 @@ OMAPPreInit(ScrnInfoPtr pScrn, int flags)
 	case 0x4460:
 	case 0x5430:
 	case 0x5432:
+	case 0x0752:
 		if (xf86LoadSubModule(pScrn, SUB_MODULE_PVR)) {
 			INFO_MSG("Loaded the %s sub-module", SUB_MODULE_PVR);
 		} else {
@@ -663,6 +665,7 @@ OMAPAccelInit(ScreenPtr pScreen)
 		case 0x4460:
 		case 0x5430:
 		case 0x5432:
+		case 0x0752:
 			INFO_MSG("Initializing the \"%s\" sub-module ...", SUB_MODULE_PVR);
 			pOMAP->pOMAPEXA = InitPowerVREXA(pScreen, pScrn, pOMAP->drmFD);
 			if (pOMAP->pOMAPEXA) {
diff --git a/src/omap_driver.h b/src/omap_driver.h
index 6d2517e..8277e25 100644
--- a/src/omap_driver.h
+++ b/src/omap_driver.h
@@ -184,7 +184,7 @@ static inline Bool has_video(OMAPPtr pOMAP)
 
 static inline Bool has_dmm(OMAPPtr pOMAP)
 {
-	return pOMAP->chipset >= 0x4430;
+	return pOMAP->chipset >= 0x4430 || pOMAP->chipset == 0x0752;
 }
 
 static inline Bool has_rotation(OMAPPtr pOMAP)
-- 
2.1.3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2014-12-05 14:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-05 14:42 Robert Nelson [this message]
2014-12-05 16:57 ` [PATCH] add support for AM572x in the DDX Emil Velikov
2014-12-05 17:01   ` Robert Nelson
2014-12-05 17:19     ` Emil Velikov
2014-12-05 17:27       ` Robert Nelson
2014-12-05 17:34     ` Rob Clark
2014-12-05 17:40       ` Robert Nelson
2014-12-06 16:43         ` Rob Clark
2014-12-06 19:19           ` Robert Nelson
2014-12-08  8:45             ` Tomi Valkeinen

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=1417790523-4384-1-git-send-email-robertcnelson@gmail.com \
    --to=robertcnelson@gmail.com \
    --cc=beagleboard-x15@googlegroups.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=robdclark@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.