summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch b/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch
new file mode 100644
index 0000000000..c5b465c7d3
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch
@@ -0,0 +1,85 @@
1---
2 arch/arm/mach-mx3/mx31lite.c | 26 ++++++++++++++++++++++++++
3 drivers/video/mxc/mxcfb_modedb.c | 25 +++++++++++++++++++++++++
4 2 files changed, 51 insertions(+)
5
6Index: linux-2.6.19.2/arch/arm/mach-mx3/mx31lite.c
7===================================================================
8--- linux-2.6.19.2.orig/arch/arm/mach-mx3/mx31lite.c 2007-10-03 19:37:43.000000000 +0200
9+++ linux-2.6.19.2/arch/arm/mach-mx3/mx31lite.c 2007-10-03 19:43:09.000000000 +0200
10@@ -280,6 +280,31 @@
11 }
12 #endif
13
14+#if defined(CONFIG_FB_MXC_SYNC_PANEL) || defined(CONFIG_FB_MXC_SYNC_PANEL_MODULE)
15+static const char fb_default_mode[] = "Sharpsix-VGA";
16+
17+/* mxc lcd driver */
18+static struct platform_device mxc_fb_device = {
19+ .name = "mxc_sdc_fb",
20+ .id = 0,
21+ .dev = {
22+ .release = mxc_nop_release,
23+ .platform_data = &fb_default_mode,
24+ .coherent_dma_mask = 0xFFFFFFFF,
25+ },
26+};
27+
28+static void mxc_init_fb(void)
29+{
30+ (void)platform_device_register(&mxc_fb_device);
31+}
32+#else
33+static inline void mxc_init_fb(void)
34+{
35+}
36+#endif
37+
38+
39 /*!
40 * Board specific fixup function. It is called by \b setup_arch() in
41 * setup.c file very early on during kernel starts. It allows the user to
42@@ -400,6 +425,7 @@
43 mxc_init_nor_mtd();
44 mxc_init_nand_mtd();
45 mxc_init_eth();
46+ mxc_init_fb();
47 }
48
49 /*
50Index: linux-2.6.19.2/drivers/video/mxc/mxcfb_modedb.c
51===================================================================
52--- linux-2.6.19.2.orig/drivers/video/mxc/mxcfb_modedb.c 2007-10-03 19:37:43.000000000 +0200
53+++ linux-2.6.19.2/drivers/video/mxc/mxcfb_modedb.c 2007-10-03 19:43:02.000000000 +0200
54@@ -55,6 +55,31 @@
55 "TV-VGA", 60, 640, 480, 40574, 35, 45, 9, 1, 46, 5,
56 0, FB_VMODE_NONINTERLACED, 0,
57 },
58+ [5] = {
59+ /* 640x480 @ 60 Hz, 6" */
60+ "Sharpsix-VGA",
61+ 60, 640, 480, // 60 Hz, 640x480
62+ 35285, // 36.66 ns clock period
63+ 128, 128, // left & right margin
64+ 34, 10, // upper & lower margin
65+ 2, 2, // hsync & vsync len
66+ FB_SYNC_OE_ACT_HIGH,
67+ FB_VMODE_NONINTERLACED,
68+ 0,
69+ },
70+ [6] = {
71+ /* 640x480 @ 60 Hz 10" */
72+ "Sharpten-VGA",
73+ 60, 640, 480, // 60 Hz, 640x480
74+ 35285, // 35.285b ns clock period
75+ 128, 128, // left & right margin
76+ 34, 10, // upper & lower margin
77+ 2, 2, // hsync & vsync len
78+ FB_SYNC_OE_ACT_HIGH,
79+ FB_VMODE_NONINTERLACED,
80+ 0,
81+ },
82+
83 };
84
85 int mxcfb_modedb_sz = ARRAY_SIZE(mxcfb_modedb);