]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: Fix problem on mounting a jffs2 rootfs image
authorDirk Behme <dirk.behme@de.bosch.com>
Tue, 3 Jan 2006 18:49:33 +0000 (10:49 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 3 Jan 2006 18:49:33 +0000 (10:49 -0800)
Check the flash timings on OSK to avoid problems with jffs2. Some
versions of uboot set incorrect timings.

arch/arm/mach-omap1/board-osk.c

index e990e1bc16696cea8e0b53e1b48409c72e33fbb5..ed480cbe4ae9955f9d32bc0fd2ef8407b8d68e04 100644 (file)
@@ -254,8 +254,18 @@ static void __init osk_mistral_init(void)
 static void __init osk_mistral_init(void) { }
 #endif
 
+#define EMFIS_CS3_VAL (0x30003361)
+
 static void __init osk_init(void)
 {
+       /* Workaround for wrong CS3 (NOR flash) timing
+        * There are some U-Boot versions out there which configure
+        * wrong CS3 memory timings. This mainly leads to CRC
+        * or similiar errors if you use NOR flash (e.g. with JFFS2)
+        */
+       if (EMIFS_CCS(3) != EMIFS_CS3_VAL)
+               EMIFS_CCS(3) = EMIFS_CS3_VAL;
+
        osk_flash_resource.end = osk_flash_resource.start = omap_cs3_phys();
        osk_flash_resource.end += SZ_32M - 1;
        platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices));