Commit d8a0ffd2 authored by Dirk Behme's avatar Dirk Behme Committed by Tony Lindgren

[PATCH] ARM: OMAP: Fix problem on mounting a jffs2 rootfs image

Check the flash timings on OSK to avoid problems with jffs2. Some
versions of uboot set incorrect timings.
parent 25db8372
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment