summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-openmoko-2.6.32
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-04-14 12:21:28 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2010-04-14 15:06:44 +0200
commit8f6571b8d800b253e796cca0df8c190c5771de12 (patch)
tree0094b2ef3d8da71dfc5798a3da1abd6cf8a04759 /recipes/linux/linux-openmoko-2.6.32
parentde9e047739390cba58dc6b8e0e0053ef639cdcb8 (diff)
linux-openmoko-2.6.32: add 2 new patches from gdrm-2.6.32 branch
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/linux/linux-openmoko-2.6.32')
-rw-r--r--recipes/linux/linux-openmoko-2.6.32/0023-Re-enable-Glamo-fence-IRQ-if-it-sticks.patch36
-rw-r--r--recipes/linux/linux-openmoko-2.6.32/0024-Fix-KMS-framebuffer-physical-address.patch38
2 files changed, 74 insertions, 0 deletions
diff --git a/recipes/linux/linux-openmoko-2.6.32/0023-Re-enable-Glamo-fence-IRQ-if-it-sticks.patch b/recipes/linux/linux-openmoko-2.6.32/0023-Re-enable-Glamo-fence-IRQ-if-it-sticks.patch
new file mode 100644
index 0000000000..a24350f8c6
--- /dev/null
+++ b/recipes/linux/linux-openmoko-2.6.32/0023-Re-enable-Glamo-fence-IRQ-if-it-sticks.patch
@@ -0,0 +1,36 @@
+From 348d0334015689a22c9dbd8dd0291360c960a764 Mon Sep 17 00:00:00 2001
+From: Thomas White <taw@bitwiz.org.uk>
+Date: Tue, 13 Apr 2010 22:18:41 +0200
+Subject: [PATCH 23/24] Re-enable Glamo fence IRQ if it sticks
+
+Also fix a formatting typo.
+
+Signed-off-by: Thomas White <taw@bitwiz.org.uk>
+---
+ drivers/mfd/glamo/glamo-fence.c | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/mfd/glamo/glamo-fence.c b/drivers/mfd/glamo/glamo-fence.c
+index 9119675..ba3ed88 100644
+--- a/drivers/mfd/glamo/glamo-fence.c
++++ b/drivers/mfd/glamo/glamo-fence.c
+@@ -98,7 +98,7 @@ static void glamo_fence_emit(struct glamo_fence *fence)
+
+ static void glamo_fence_enable(struct glamodrm_handle *gdrm)
+ {
+- enable_irq( GLAMO_IRQ_2D);
++ enable_irq(GLAMO_IRQ_2D);
+ }
+
+
+@@ -168,6 +168,7 @@ static void glamo_fence_debodge(struct glamodrm_handle *gdrm)
+
+ glamo_cmdq_wait(gdrm, GLAMO_ENGINE_ALL);
+ glamo_engine_reset(gdrm->glamo_core, GLAMO_ENGINE_2D);
++ glamo_fence_enable(gdrm);
+
+ read_lock(&gdrm->fence_list_lock);
+ list_for_each(tmp, &gdrm->fence_list) {
+--
+1.7.0.4
+
diff --git a/recipes/linux/linux-openmoko-2.6.32/0024-Fix-KMS-framebuffer-physical-address.patch b/recipes/linux/linux-openmoko-2.6.32/0024-Fix-KMS-framebuffer-physical-address.patch
new file mode 100644
index 0000000000..3ce4d59042
--- /dev/null
+++ b/recipes/linux/linux-openmoko-2.6.32/0024-Fix-KMS-framebuffer-physical-address.patch
@@ -0,0 +1,38 @@
+From 1b83b6d7f2e1bf5473cd17a742737a1cfe450509 Mon Sep 17 00:00:00 2001
+From: Thomas White <taw@bitwiz.org.uk>
+Date: Fri, 20 Nov 2009 22:06:30 +0100
+Subject: [PATCH 24/24] Fix KMS framebuffer physical address
+
+This allows "/dev/fb0" to work correctly with mmap().
+
+Signed-off-by: Thomas White <taw@bitwiz.org.uk>
+---
+ drivers/mfd/glamo/glamo-kms-fb.c | 5 ++---
+ 1 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/mfd/glamo/glamo-kms-fb.c b/drivers/mfd/glamo/glamo-kms-fb.c
+index 6d4b9ea..04de83b 100644
+--- a/drivers/mfd/glamo/glamo-kms-fb.c
++++ b/drivers/mfd/glamo/glamo-kms-fb.c
+@@ -387,9 +387,6 @@ int glamofb_create(struct drm_device *dev, uint32_t fb_width,
+ info->fbops = &glamofb_ops;
+
+ info->fix.line_length = fb->pitch;
+- info->fix.smem_start = dev->mode_config.fb_base
+- + (unsigned long) gdrm->vram->start;
+- info->fix.smem_len = size;
+
+ info->flags = FBINFO_DEFAULT;
+
+@@ -401,6 +398,8 @@ int glamofb_create(struct drm_device *dev, uint32_t fb_width,
+ ret = -ENOSPC;
+ goto out_unref;
+ }
++ info->fix.smem_start = (unsigned long)gdrm->vram->start + offs;
++ info->fix.smem_len = size;
+ info->screen_size = size;
+
+ info->pseudo_palette = fb->pseudo_palette;
+--
+1.7.0.4
+