diff options
author | Koen Kooi <koen@openembedded.org> | 2008-05-10 19:03:06 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-05-10 19:03:06 +0000 |
commit | ecfef382035fc2da121c6af6a9f99f3002069867 (patch) | |
tree | f1ae9d17dde1d1fc54ec45ddeb5af113d9149ffb | |
parent | 9ea424383c69a8fcfeeac14705dcc10162b1e2c7 (diff) |
linux omap2 git: update TFP patch, add patch that prints L2 cache status on boot and bump PRu
3 files changed, 67 insertions, 10 deletions
diff --git a/packages/linux/linux-omap2-git/beagleboard/0001-omap3beagle-add-driver-to-turn-on-the-TFP410-framer.patch b/packages/linux/linux-omap2-git/beagleboard/0001-omap3beagle-add-driver-to-turn-on-the-TFP410-framer.patch index e58c90adea..5cc10b01c1 100644 --- a/packages/linux/linux-omap2-git/beagleboard/0001-omap3beagle-add-driver-to-turn-on-the-TFP410-framer.patch +++ b/packages/linux/linux-omap2-git/beagleboard/0001-omap3beagle-add-driver-to-turn-on-the-TFP410-framer.patch @@ -1,3 +1,16 @@ +From 75b8dbeed8f53ffb7edc58b2393084fe2346477e Mon Sep 17 00:00:00 2001 +From: Koen Kooi <koen@openembedded.org> +Date: Fri, 9 May 2008 20:54:00 +0200 +Subject: [PATCH] omap3beagle: add driver to turn on the TFP410 framer to get DVI output + +Signed-off-by: Koen Kooi <koen@openembedded.org> +--- + arch/arm/mach-omap2/board-omap3beagle.c | 11 +++ + drivers/video/omap/Makefile | 1 + + drivers/video/omap/lcd_omap3beagle.c | 135 +++++++++++++++++++++++++++++++ + 3 files changed, 147 insertions(+), 0 deletions(-) + create mode 100644 drivers/video/omap/lcd_omap3beagle.c + diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 0c0cbfc..c992cc7 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c @@ -40,10 +53,10 @@ index cad6a68..fe7ee5d 100644 omapfb-objs := $(objs-yy) diff --git a/drivers/video/omap/lcd_omap3beagle.c b/drivers/video/omap/lcd_omap3beagle.c new file mode 100644 -index 0000000..d49101a +index 0000000..f5b7466 --- /dev/null +++ b/drivers/video/omap/lcd_omap3beagle.c -@@ -0,0 +1,140 @@ +@@ -0,0 +1,135 @@ +/* + * LCD panel support for the TI OMAP3 Beagle board + * @@ -79,13 +92,8 @@ index 0000000..d49101a + +#define LCD_XRES 1024 +#define LCD_YRES 768 -+#define LCD_PIXCLOCK_MAX 64000 /* in pico seconds */ -+#define LCD_PIXCLOCK_MIN 64000 /* in pico seconds */ -+ -+#define ENABLE_VDAC_DEDICATED 0x03 -+#define ENABLE_VDAC_DEV_GRP 0x20 -+#define ENABLE_VPLL2_DEDICATED 0x05 -+#define ENABLE_VPLL2_DEV_GRP 0xE0 ++#define LCD_PIXCLOCK_MAX 64000 /* in kHz */ ++#define LCD_PIXCLOCK_MIN 64000 /* in kHz */ + +static int omap3beagle_panel_init(struct lcd_panel *panel, + struct omapfb_device *fbdev) @@ -184,3 +192,6 @@ index 0000000..d49101a + +module_init(omap3beagle_panel_drv_init); +module_exit(omap3beagle_panel_drv_exit); +-- +1.5.4.3 + diff --git a/packages/linux/linux-omap2-git/beagleboard/l2-cache-check.patch b/packages/linux/linux-omap2-git/beagleboard/l2-cache-check.patch new file mode 100644 index 0000000000..d81f03880c --- /dev/null +++ b/packages/linux/linux-omap2-git/beagleboard/l2-cache-check.patch @@ -0,0 +1,45 @@ +Content-Type: text/plain; charset=ISO-8859-1; format=flowed +Content-Transfer-Encoding: 7bit + + +Enabling L2 cache of Cortex-A8 based OMAP3 has to be done by +bootloader. Check if this is done and warn if not. + +Signed-off-by: Dirk Behme <dirk.behme@gmail.com> + +---- + +Changes in v2: Fix a typo. + +Index: linux-beagle/arch/arm/mach-omap2/id.c +=================================================================== +--- linux-beagle.orig/arch/arm/mach-omap2/id.c ++++ linux-beagle/arch/arm/mach-omap2/id.c +@@ -267,3 +267,26 @@ void __init omap2_check_revision(void) + + } + ++#ifdef CONFIG_ARCH_OMAP3 ++/* ++ * OMAP3 has L2 cache which has to be enabled by bootloader. ++ */ ++static int __init omap3_check_l2cache(void) ++{ ++ u32 val; ++ ++ /* Get CP15 AUX register, bit 1 enabled indicates L2 cache is on */ ++ asm volatile("mrc p15, 0, %0, c1, c0, 1":"=r" (val)); ++ ++ if ((val & 0x2) == 0) { ++ printk(KERN_WARNING "Warning: L2 cache not enabled. Check " ++ "your bootloader. L2 off results in performance loss\n"); ++ } else { ++ pr_info("OMAP3 L2 cache enabled"); ++ } ++ ++ return 0; ++} ++ ++arch_initcall(omap3_check_l2cache); ++#endif /* CONFIG_ARCH_OMAP3 */ + diff --git a/packages/linux/linux-omap2_git.bb b/packages/linux/linux-omap2_git.bb index 545817b860..489682e711 100644 --- a/packages/linux/linux-omap2_git.bb +++ b/packages/linux/linux-omap2_git.bb @@ -5,7 +5,7 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/linux-omap2-git/${MA SRCREV = "cb170dcdce58de20b045ae964a4ccfc29aad1647" PV = "2.6.25+2.6.26-rc1+git${SRCREV}" -PR = "r11" +PR = "r12" SRC_URI = "git://source.mvista.com/git/linux-omap-2.6.git;protocol=git \ @@ -16,6 +16,7 @@ SRC_URI_append_beagleboard = " file://no-harry-potter.diff;patch=1 \ file://l2-cache.patch;patch=1 \ file://0001-This-patch-adds-RTC-support-to-the-omap3-based-beagl.patch;patch=1 \ file://0001-omap3beagle-add-driver-to-turn-on-the-TFP410-framer.patch;patch=1 \ + file://l2-cache-check.patch;patch=1 \ " COMPATIBLE_MACHINE = "omap2430sdp|omap2420h4|beagleboard" |