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)
downloadast2050-yocto-poky-29d6678fd546377459ef75cf54abeef5b969b5cf.zip
ast2050-yocto-poky-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 0000000..c5b465c
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-fb.patch
@@ -0,0 +1,85 @@
+---
+ arch/arm/mach-mx3/mx31lite.c | 26 ++++++++++++++++++++++++++
+ drivers/video/mxc/mxcfb_modedb.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 51 insertions(+)
+
+Index: linux-2.6.19.2/arch/arm/mach-mx3/mx31lite.c
+===================================================================
+--- linux-2.6.19.2.orig/arch/arm/mach-mx3/mx31lite.c 2007-10-03 19:37:43.000000000 +0200
++++ linux-2.6.19.2/arch/arm/mach-mx3/mx31lite.c 2007-10-03 19:43:09.000000000 +0200
+@@ -280,6 +280,31 @@
+ }
+ #endif
+
++#if defined(CONFIG_FB_MXC_SYNC_PANEL) || defined(CONFIG_FB_MXC_SYNC_PANEL_MODULE)
++static const char fb_default_mode[] = "Sharpsix-VGA";
++
++/* mxc lcd driver */
++static struct platform_device mxc_fb_device = {
++ .name = "mxc_sdc_fb",
++ .id = 0,
++ .dev = {
++ .release = mxc_nop_release,
++ .platform_data = &fb_default_mode,
++ .coherent_dma_mask = 0xFFFFFFFF,
++ },
++};
++
++static void mxc_init_fb(void)
++{
++ (void)platform_device_register(&mxc_fb_device);
++}
++#else
++static inline void mxc_init_fb(void)
++{
++}
++#endif
++
++
+ /*!
+ * Board specific fixup function. It is called by \b setup_arch() in
+ * setup.c file very early on during kernel starts. It allows the user to
+@@ -400,6 +425,7 @@
+ mxc_init_nor_mtd();
+ mxc_init_nand_mtd();
+ mxc_init_eth();
++ mxc_init_fb();
+ }
+
+ /*
+Index: linux-2.6.19.2/drivers/video/mxc/mxcfb_modedb.c
+===================================================================
+--- linux-2.6.19.2.orig/drivers/video/mxc/mxcfb_modedb.c 2007-10-03 19:37:43.000000000 +0200
++++ linux-2.6.19.2/drivers/video/mxc/mxcfb_modedb.c 2007-10-03 19:43:02.000000000 +0200
+@@ -55,6 +55,31 @@
+ "TV-VGA", 60, 640, 480, 40574, 35, 45, 9, 1, 46, 5,
+ 0, FB_VMODE_NONINTERLACED, 0,
+ },
++ [5] = {
++ /* 640x480 @ 60 Hz, 6" */
++ "Sharpsix-VGA",
++ 60, 640, 480, // 60 Hz, 640x480
++ 35285, // 36.66 ns clock period
++ 128, 128, // left & right margin
++ 34, 10, // upper & lower margin
++ 2, 2, // hsync & vsync len
++ FB_SYNC_OE_ACT_HIGH,
++ FB_VMODE_NONINTERLACED,
++ 0,
++ },
++ [6] = {
++ /* 640x480 @ 60 Hz 10" */
++ "Sharpten-VGA",
++ 60, 640, 480, // 60 Hz, 640x480
++ 35285, // 35.285b ns clock period
++ 128, 128, // left & right margin
++ 34, 10, // upper & lower margin
++ 2, 2, // hsync & vsync len
++ FB_SYNC_OE_ACT_HIGH,
++ FB_VMODE_NONINTERLACED,
++ 0,
++ },
++
+ };
+
+ int mxcfb_modedb_sz = ARRAY_SIZE(mxcfb_modedb);
OpenPOWER on IntegriCloud