aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/coldfire/patches/101-kernel-2.6.38-Fix-LCD-framebuffer-driver-data-swap-bug-for-MCF5441.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-04 15:23:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-04 15:23:10 +0000
commitb97aee1ee851c6ce0f48e9c231a8152c1151dbe4 (patch)
tree3f5f5e1f2c6c8577ee1388dcec0bf4ba7d7565bd /target/linux/coldfire/patches/101-kernel-2.6.38-Fix-LCD-framebuffer-driver-data-swap-bug-for-MCF5441.patch
parentc41002971aeecd78e93ce553028f7cc01c4de777 (diff)
downloadupstream-b97aee1ee851c6ce0f48e9c231a8152c1151dbe4.tar.gz
upstream-b97aee1ee851c6ce0f48e9c231a8152c1151dbe4.tar.bz2
upstream-b97aee1ee851c6ce0f48e9c231a8152c1151dbe4.zip
coldfire: R.I.P.
The target still uses 2.6.38. The support of that kernel version has been removed ~9 months ago. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35489
Diffstat (limited to 'target/linux/coldfire/patches/101-kernel-2.6.38-Fix-LCD-framebuffer-driver-data-swap-bug-for-MCF5441.patch')
-rw-r--r--target/linux/coldfire/patches/101-kernel-2.6.38-Fix-LCD-framebuffer-driver-data-swap-bug-for-MCF5441.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/target/linux/coldfire/patches/101-kernel-2.6.38-Fix-LCD-framebuffer-driver-data-swap-bug-for-MCF5441.patch b/target/linux/coldfire/patches/101-kernel-2.6.38-Fix-LCD-framebuffer-driver-data-swap-bug-for-MCF5441.patch
deleted file mode 100644
index b948d1f833..0000000000
--- a/target/linux/coldfire/patches/101-kernel-2.6.38-Fix-LCD-framebuffer-driver-data-swap-bug-for-MCF5441.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 633531cdbaa3ed70a364db78fd7f8ae11da3e394 Mon Sep 17 00:00:00 2001
-From: Wang Huan <wanghuan@zch06.freescale.net>
-Date: Wed, 14 Sep 2011 17:40:41 +0800
-Subject: [PATCH] Fix LCD framebuffer driver data swap bug for MCF54418
-
-This patch fixed LCD framebuffer driver data swap bug
-for MCF54418.
-
-Signed-off-by: Alison Wang <b18965@freescale.com>
----
- drivers/video/fsl-ssd1289-fb.c | 13 ++++++++++---
- 1 files changed, 10 insertions(+), 3 deletions(-)
-
---- a/drivers/video/fsl-ssd1289-fb.c
-+++ b/drivers/video/fsl-ssd1289-fb.c
-@@ -54,8 +54,10 @@ static int ssd1289_spi_writeblock(struct
- for (i = 0; i < SPI_LCD_BLOCK_SIZE; i++) {
- if (i % 2 == 0)
- spi_block_buffer[i] = 0x01;
-- else if (flag == 1)
-- spi_block_buffer[i] = *(daddr + (i >> 1));
-+ else if ((flag == 1) && (i % 4 == 1))
-+ spi_block_buffer[i] = *(daddr + (i >> 1) + 1);
-+ else if ((flag == 1) && (i % 4 == 3))
-+ spi_block_buffer[i] = *(daddr + (i >> 1) - 1);
- else if (flag == 0)
- spi_block_buffer[i] = 0;
- }
-@@ -331,6 +333,9 @@ static int ssd1289fbd(void *arg)
- int i;
- unsigned short *buf_p;
- struct fsl_ssd1289_fb_info *fbinfo = info->par;
-+#if defined(CONFIG_SSD1289_FLEXBUS_MODE)
-+ unsigned short tmp;
-+#endif
- #if defined(CONFIG_SSD1289_SPI_MODE)
- unsigned char *bufspi_p;
- int count;
-@@ -344,7 +349,9 @@ static int ssd1289fbd(void *arg)
-
- #if defined(CONFIG_SSD1289_FLEXBUS_MODE)
- for (i = 0; i < info->screen_size; i += 2) {
-- ssd1289_write(info, *buf_p, 1);
-+ tmp = ((((*buf_p) & 0x00ff) << 8) |
-+ (((*buf_p) & 0xff00) >> 8));
-+ ssd1289_write(info, tmp, 1);
- buf_p++;
- }
- #elif defined(CONFIG_SSD1289_SPI_MODE)