summaryrefslogtreecommitdiff
path: root/packages/linux/linux-2.6.18/lcdc-do-not-clear-mem-if-fbmem_start-is-set.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-24 08:51:39 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-24 08:51:39 +0000
commit87dd9b603c8730c41aa20102d25b386b6123b1e3 (patch)
tree9529085af6547c1f71ed7df1cc583900b030f4f7 /packages/linux/linux-2.6.18/lcdc-do-not-clear-mem-if-fbmem_start-is-set.patch
parentcbea2f4a751b5ee8fb1343a05742f8b8765dec7a (diff)
parent7e541bf1f5abaad0105328e57198a05f8c17f242 (diff)
propagate from branch 'org.openembedded.dev' (head 63851b92b9273aff39e9034738719537beaaad00)
to branch 'org.openembedded.dev.avr32' (head 73b3fea2362aba583bd68ba2381480ce68660133)
Diffstat (limited to 'packages/linux/linux-2.6.18/lcdc-do-not-clear-mem-if-fbmem_start-is-set.patch')
-rw-r--r--packages/linux/linux-2.6.18/lcdc-do-not-clear-mem-if-fbmem_start-is-set.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/linux/linux-2.6.18/lcdc-do-not-clear-mem-if-fbmem_start-is-set.patch b/packages/linux/linux-2.6.18/lcdc-do-not-clear-mem-if-fbmem_start-is-set.patch
new file mode 100644
index 0000000000..b354047f60
--- /dev/null
+++ b/packages/linux/linux-2.6.18/lcdc-do-not-clear-mem-if-fbmem_start-is-set.patch
@@ -0,0 +1,16 @@
+Index: linux-2.6.18/drivers/video/sidsafb.c
+===================================================================
+--- linux-2.6.18.orig/drivers/video/sidsafb.c 2006-12-20 13:43:17.000000000 +0100
++++ linux-2.6.18/drivers/video/sidsafb.c 2006-12-20 13:46:44.000000000 +0100
+@@ -765,7 +765,10 @@
+ printk("fb%d: Atmel LCDC at 0x%08lx (mapped at %p), irq %lu\n",
+ info->node, info->fix.mmio_start, sinfo->regs, sinfo->irq_base);
+
+- memset_io(info->screen_base, 0, info->fix.smem_len);
++ /* Only clear framebuffer if fbmem_start was not declared, assume the
++ * user have filled the framebuffer before the kernel was started. */
++ if (!fb_data->fbmem_start)
++ memset_io(info->screen_base, 0, info->fix.smem_len);
+ info->var.activate |= FB_ACTIVATE_FORCE | FB_ACTIVATE_NOW;
+ ret = fb_set_var(info, &info->var);
+ if (ret)