aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-omap-pm/dss2/0024-DSS2-VRFB-Macro-for-calculating-base-address-of-th.patch
blob: 2f7d475c49c6143e5e516dcce1bf8960b97eb2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 5ba7dbfd877bf8c345419b2985e5b26c2934d1d3 Mon Sep 17 00:00:00 2001
From: Hardik Shah <hardik.shah@ti.com>
Date: Mon, 13 Apr 2009 18:50:24 +0530
Subject: [PATCH 024/146] DSS2: VRFB: Macro for calculating base address of the VRFB context was faulty

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
---
 arch/arm/plat-omap/vrfb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-omap/vrfb.c b/arch/arm/plat-omap/vrfb.c
index 7e0f8fc..d68065f 100644
--- a/arch/arm/plat-omap/vrfb.c
+++ b/arch/arm/plat-omap/vrfb.c
@@ -16,8 +16,8 @@
 
 #define SMS_ROT_VIRT_BASE(context, rot) \
 	(((context >= 4) ? 0xD0000000 : 0x70000000) \
-	 | 0x4000000 * (context) \
-	 | 0x1000000 * (rot))
+	 + (0x4000000 * (context)) \
+	 + (0x1000000 * (rot)))
 
 #define OMAP_VRFB_SIZE			(2048 * 2048 * 4)
 
-- 
1.6.2.4