From patchwork Fri Dec 5 14:42:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Nelson X-Patchwork-Id: 5444231 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2C458BEEA8 for ; Fri, 5 Dec 2014 14:42:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 563D320265 for ; Fri, 5 Dec 2014 14:42:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 459DC2025A for ; Fri, 5 Dec 2014 14:42:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 39D106E9F1; Fri, 5 Dec 2014 06:42:07 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by gabe.freedesktop.org (Postfix) with ESMTP id 941E06E9F1 for ; Fri, 5 Dec 2014 06:42:06 -0800 (PST) Received: by mail-ob0-f175.google.com with SMTP id wp4so582275obc.20 for ; Fri, 05 Dec 2014 06:42:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=xLDdBHK48FAhHKwsaevfuWg+oLn/t/21nO0sJrP5mIQ=; b=nCeYuPQUWSmIVyGeWwujiLULN3OSlu70cj7M4Iuc5Klq6vb8+gWhIwdDXNs2gVcwEo RCSSsTxgQGiCEDok2x/Lzr5XAU9wCqfDvA3YJ0kAA3aPEEJhbmk4hKVBixu+q5TGYM6w y8k6nZEJDOiKDukQpdEMJedzhoeRqBYsycMW4vQDVysQk0k3k5SyOabQWkftuXZXQnIE hI8ApBp3AhJeR8aVgDuLxymJHYbiZ/Y2OMsvfQRQb6bIIU0M+zhb4zlywfJsB5bFP9qp 8nUV4Q3KQHW+AUPau8Xol9EdNiIGU8hNsK2whj18dEkl9SPWNYFw4MhvuMTl4UDxcPJH /i/Q== X-Received: by 10.202.186.138 with SMTP id k132mr9828393oif.99.1417790526158; Fri, 05 Dec 2014 06:42:06 -0800 (PST) Received: from hades.digikey.us ([64.77.213.245]) by mx.google.com with ESMTPSA id l10sm13975377oev.7.2014.12.05.06.42.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Dec 2014 06:42:05 -0800 (PST) From: Robert Nelson To: dri-devel@lists.freedesktop.org, robdclark@gmail.com Subject: [PATCH] add support for AM572x in the DDX Date: Fri, 5 Dec 2014 08:42:03 -0600 Message-Id: <1417790523-4384-1-git-send-email-robertcnelson@gmail.com> X-Mailer: git-send-email 2.1.3 Cc: beagleboard-x15@googlegroups.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Robert Nelson --- 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 ;-)" }, */ { 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)