summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/arch-avr32/kernel-patches-2.6.27.6/linux-2.6.27.6-202-avr32-atmel_mpopfb-add-signal-to-disable-line-caching.patch
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2008-12-20 22:19:38 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2008-12-20 22:19:38 +0000
commitc923379e8acc41ae2f7ae73da0f81dcf30ba91b7 (patch)
tree3daf6d89af5d974d5445f9f9f134a2f93cb80bb8 /target/device/Atmel/arch-avr32/kernel-patches-2.6.27.6/linux-2.6.27.6-202-avr32-atmel_mpopfb-add-signal-to-disable-line-caching.patch
parent80b526fd3cc1eea9bd5bcd418f26b04536e027a9 (diff)
downloadbuildroot-novena-c923379e8acc41ae2f7ae73da0f81dcf30ba91b7.tar.gz
buildroot-novena-c923379e8acc41ae2f7ae73da0f81dcf30ba91b7.zip
Add 2.6.27.7 patches for AVR32
Diffstat (limited to 'target/device/Atmel/arch-avr32/kernel-patches-2.6.27.6/linux-2.6.27.6-202-avr32-atmel_mpopfb-add-signal-to-disable-line-caching.patch')
-rw-r--r--target/device/Atmel/arch-avr32/kernel-patches-2.6.27.6/linux-2.6.27.6-202-avr32-atmel_mpopfb-add-signal-to-disable-line-caching.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/target/device/Atmel/arch-avr32/kernel-patches-2.6.27.6/linux-2.6.27.6-202-avr32-atmel_mpopfb-add-signal-to-disable-line-caching.patch b/target/device/Atmel/arch-avr32/kernel-patches-2.6.27.6/linux-2.6.27.6-202-avr32-atmel_mpopfb-add-signal-to-disable-line-caching.patch
new file mode 100644
index 000000000..d09823e3b
--- /dev/null
+++ b/target/device/Atmel/arch-avr32/kernel-patches-2.6.27.6/linux-2.6.27.6-202-avr32-atmel_mpopfb-add-signal-to-disable-line-caching.patch
@@ -0,0 +1,59 @@
+From 86fd2e3e74a191ae43122ac18f62f5163c577d4b Mon Sep 17 00:00:00 2001
+From: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
+Date: Wed, 26 Nov 2008 14:11:59 +0100
+Subject: [PATCH 3/3] atmel_mpopfb: add signal to disable line caching and set correct output
+
+This patch adds a signal to disable line caching, due to an errata in
+silicon revision A. It also sets the output from MPOP to BGR to match
+big endian framebuffer memory.
+
+Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
+
+diff --git a/drivers/video/atmel_mpopfb.c b/drivers/video/atmel_mpopfb.c
+index 3b4b668..350303b 100644
+--- a/drivers/video/atmel_mpopfb.c
++++ b/drivers/video/atmel_mpopfb.c
+@@ -313,6 +313,10 @@ static int atmel_mpopfb_check_var(struct fb_var_screeninfo *var,
+ static void atmel_mpopfb_start(struct atmel_mpopfb_info *sinfo)
+ {
+ if (!sinfo->running) {
++ unsigned int line_cache_disable =
++ sinfo->baseimg_info.line_cache_disable ?
++ ATMEL_MPOP_CR_CACHEDIS_MASK : 0;
++
+ dev_dbg(sinfo->info->device, " * Starting MPOP.\n");
+
+ /* Enable all error interrupts. */
+@@ -323,9 +327,9 @@ static void atmel_mpopfb_start(struct atmel_mpopfb_info *sinfo)
+ * reading from the slave interface it will start
+ * generating a frame.
+ */
+- mpop_writel(sinfo, ATMEL_MPOP_CR,
+- ATMEL_MPOP_CR_EN_MASK
+- /*| ATMEL_MPOP_CR_OUT_BGR_MASK */ );
++ mpop_writel(sinfo, ATMEL_MPOP_CR, ATMEL_MPOP_CR_EN_MASK
++ | line_cache_disable
++ | ATMEL_MPOP_CR_OUT_BGR_MASK);
+
+ sinfo->running = 1;
+ }
+diff --git a/include/linux/atmel_mpopfb.h b/include/linux/atmel_mpopfb.h
+index cd12e16..d0f2505 100644
+--- a/include/linux/atmel_mpopfb.h
++++ b/include/linux/atmel_mpopfb.h
+@@ -42,9 +42,11 @@ struct atmel_mpopfb_baseimg_info {
+ unsigned xsize;
+ unsigned ysize;
+
+- /* Signal that we should flip the video. */
++ /* Signal for flipping the video. */
+ int flip;
+
++ /* Signal for disabling the line cache. */
++ int line_cache_disable;
+ };
+
+ enum atmel_mpopfb_overlay_type {
+--
+1.5.6.3
+