All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: linux-omap@vger.kernel.org, Tomi Valkeinen <tomi.valkeinen@nokia.com>
Subject: [PATCH 01/20] OMAP2: Add funcs for writing SMS_ROT_* registers
Date: Fri,  7 Aug 2009 15:27:39 +0300	[thread overview]
Message-ID: <1249648078-7780-2-git-send-email-tomi.valkeinen@nokia.com> (raw)
In-Reply-To: <1249648078-7780-1-git-send-email-tomi.valkeinen@nokia.com>

SMS_ROT_* registers are used by VRFB rotation engine.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
---
 arch/arm/mach-omap2/sdrc.c             |   16 ++++++++++++++++
 arch/arm/plat-omap/include/mach/sdrc.h |    8 +++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/sdrc.c b/arch/arm/mach-omap2/sdrc.c
index 2045441..56f6dab 100644
--- a/arch/arm/mach-omap2/sdrc.c
+++ b/arch/arm/mach-omap2/sdrc.c
@@ -111,3 +111,19 @@ void __init omap2_sdrc_init(struct omap_sdrc_params *sp)
 		(1 << SDRC_POWER_PAGEPOLICY_SHIFT);
 	sdrc_write_reg(l, SDRC_POWER);
 }
+
+void omap2_sms_write_rot_control(u32 val, unsigned ctx)
+{
+	sms_write_reg(val, SMS_ROT_CONTROL(ctx));
+}
+
+void omap2_sms_write_rot_size(u32 val, unsigned ctx)
+{
+	sms_write_reg(val, SMS_ROT_SIZE(ctx));
+}
+
+void omap2_sms_write_rot_physical_ba(u32 val, unsigned ctx)
+{
+	sms_write_reg(val, SMS_ROT_PHYSICAL_BA(ctx));
+}
+
diff --git a/arch/arm/plat-omap/include/mach/sdrc.h b/arch/arm/plat-omap/include/mach/sdrc.h
index adc7352..4199c19 100644
--- a/arch/arm/plat-omap/include/mach/sdrc.h
+++ b/arch/arm/plat-omap/include/mach/sdrc.h
@@ -75,7 +75,10 @@
 
 /* SMS register offsets - read/write with sms_{read,write}_reg() */
 
-#define SMS_SYSCONFIG		0x010
+#define SMS_SYSCONFIG			0x010
+#define SMS_ROT_CONTROL(context)	(0x180 + 0x10 * context)
+#define SMS_ROT_SIZE(context)		(0x184 + 0x10 * context)
+#define SMS_ROT_PHYSICAL_BA(context)	(0x188 + 0x10 * context)
 /* REVISIT: fill in other SMS registers here */
 
 
@@ -104,6 +107,9 @@ struct omap_sdrc_params {
 
 void __init omap2_sdrc_init(struct omap_sdrc_params *sp);
 struct omap_sdrc_params *omap2_sdrc_get_params(unsigned long r);
+void omap2_sms_write_rot_control(u32 val, unsigned ctx);
+void omap2_sms_write_rot_size(u32 val, unsigned ctx);
+void omap2_sms_write_rot_physical_ba(u32 val, unsigned ctx);
 
 #ifdef CONFIG_ARCH_OMAP2
 
-- 
1.6.4


  reply	other threads:[~2009-08-07 12:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 12:27 [PATCHv2 00/20] OMAP: DSS intro v2 Tomi Valkeinen
2009-08-07 12:27 ` Tomi Valkeinen [this message]
2009-08-07 12:27   ` [PATCH 02/20] OMAP: OMAPFB: split omapfb.h Tomi Valkeinen
2009-08-07 12:27     ` [PATCH 03/20] OMAP: OMAPFB: add omapdss device Tomi Valkeinen
2009-08-07 12:27       ` [PATCH 04/20] OMAP: Add VRAM manager Tomi Valkeinen
2009-08-07 12:27         ` [PATCH 05/20] OMAP: Add support for VRFB rotation engine Tomi Valkeinen
2009-08-07 12:27           ` [PATCH 06/20] OMAP: DSS2: Documentation for DSS2 Tomi Valkeinen
2009-08-07 12:27             ` [PATCH 07/20] OMAP: DSS2: Display Subsystem Driver core Tomi Valkeinen
2009-08-07 12:27               ` [PATCH 08/20] OMAP: DSS2: Add more core files Tomi Valkeinen
2009-08-07 12:27                 ` [PATCH 09/20] OMAP: DSS2: DISPC Tomi Valkeinen
2009-08-07 12:27                   ` [PATCH 10/20] OMAP: DSS2: DPI driver Tomi Valkeinen
2009-08-07 12:27                     ` [PATCH 11/20] OMAP: DSS2: Video encoder driver Tomi Valkeinen
2009-08-07 12:27                       ` [PATCH 12/20] OMAP: DSS2: RFBI driver Tomi Valkeinen
2009-08-07 12:27                         ` [PATCH 13/20] OMAP: DSS2: SDI driver Tomi Valkeinen
2009-08-07 12:27                           ` [PATCH 14/20] OMAP: DSS2: DSI driver Tomi Valkeinen
2009-08-07 12:27                             ` [PATCH 15/20] OMAP: DSS2: omapfb driver Tomi Valkeinen
2009-08-07 12:27                               ` [PATCH 16/20] OMAP: DSS2: Add DPI panel drivers Tomi Valkeinen
2009-08-07 12:27                                 ` [PATCH 17/20] OMAP: DSS2: Taal DSI command mode panel driver Tomi Valkeinen
2009-08-07 12:27                                   ` [PATCH 18/20] OMAP: SDP: Enable DSS2 for OMAP3 SDP board Tomi Valkeinen
2009-08-07 12:27                                     ` [PATCH 19/20] OMAP: Beagle: Enable DSS2 for Beagle board Tomi Valkeinen
2009-08-07 12:27                                       ` [PATCH 20/20] OMAP: Overo: Enable DSS2 for Overo 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=1249648078-7780-2-git-send-email-tomi.valkeinen@nokia.com \
    --to=tomi.valkeinen@nokia.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-omap@vger.kernel.org \
    /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.