From: Daniel Mack <daniel@caiaq.de>
To: linux-arm-kernel@lists.arm.linux.org.uk
Cc: Daniel Mack <daniel@caiaq.de>, Eric Miao <eric.miao@marvell.com>,
linux-fbdev-devel@lists.sourceforge.net,
Dennis Oliver Kropp <dok@directfb.org>,
Sven Neumann <s.neumann@raumfeld.com>
Subject: [PATCH] video: add PXA3xx accelerator ID
Date: Mon, 20 Jul 2009 12:14:14 +0200 [thread overview]
Message-ID: <1248084854-7635-1-git-send-email-daniel@caiaq.de> (raw)
In-Reply-To: <4A63E08F.4090409@gmail.com>
Add ID 99 for PXA3xx frame buffers and use it in pxafb when running on a
pxa with acceleration enabled.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Eric Miao <eric.miao@marvell.com>
Cc: linux-fbdev-devel@lists.sourceforge.net
Cc: Dennis Oliver Kropp <dok@directfb.org>
Cc: Sven Neumann <s.neumann@raumfeld.com>
---
drivers/video/pxafb.c | 5 +++++
include/linux/fb.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 3951cc5..922ed8a 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -2083,6 +2083,11 @@ static int __devinit pxafb_probe(struct platform_device *dev)
goto failed;
}
+#ifdef CONFIG_PXA3XX_GCU
+ if (cpu_is_pxa3xx())
+ fbi->fb.fix.accel = FB_ACCEL_PXA3XX;
+#endif
+
fbi->backlight_power = inf->pxafb_backlight_power;
fbi->lcd_power = inf->pxafb_lcd_power;
diff --git a/include/linux/fb.h b/include/linux/fb.h
index f847df9..a34bdf5 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -133,6 +133,7 @@ struct dentry;
#define FB_ACCEL_NEOMAGIC_NM2230 96 /* NeoMagic NM2230 */
#define FB_ACCEL_NEOMAGIC_NM2360 97 /* NeoMagic NM2360 */
#define FB_ACCEL_NEOMAGIC_NM2380 98 /* NeoMagic NM2380 */
+#define FB_ACCEL_PXA3XX 99 /* PXA3xx */
#define FB_ACCEL_SAVAGE4 0x80 /* S3 Savage4 */
#define FB_ACCEL_SAVAGE3D 0x81 /* S3 Savage3D */
--
1.6.3.1
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
next parent reply other threads:[~2009-07-20 10:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1247159091-28697-4-git-send-email-daniel@caiaq.de>
[not found] ` <1247159091-28697-5-git-send-email-daniel@caiaq.de>
[not found] ` <4A56F02D.1000007@gmail.com>
[not found] ` <20090718080736.GL13236@buzzloop.caiaq.de>
[not found] ` <4A63E08F.4090409@gmail.com>
2009-07-20 10:14 ` Daniel Mack [this message]
[not found] ` <20090720102239.GA3809@buzzloop.caiaq.de>
[not found] ` <4A645A38.1080008@gmail.com>
[not found] ` <20090720134703.GE19257@buzzloop.caiaq.de>
[not found] ` <4A64830F.2020701@gmail.com>
[not found] ` <20090722120433.GA9464@buzzloop.caiaq.de>
2009-09-02 21:24 ` [PATCH 4/4] video: add driver for PXA3xx 2D graphics accelerator Daniel Mack
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=1248084854-7635-1-git-send-email-daniel@caiaq.de \
--to=daniel@caiaq.de \
--cc=dok@directfb.org \
--cc=eric.miao@marvell.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=s.neumann@raumfeld.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;
as well as URLs for NNTP newsgroup(s).