OMAP2/3: OneNAND: add 104MHz support
authorAdrian Hunter <adrian.hunter@nokia.com>
Thu, 9 Dec 2010 09:22:50 +0000 (11:22 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Dec 2010 20:05:34 +0000 (12:05 -0800)
Add GPMC timings for 104MHz OneNAND.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc-onenand.c
drivers/mtd/onenand/omap2.c

index 1db606ca007e2422d20ce9a9c0e7deafb448fb9c..3a7d25fb00ef88e16dcecd78080c5c0816cce22f 100644 (file)
@@ -173,6 +173,15 @@ static int omap2_onenand_set_sync_mode(struct omap_onenand_platform_data *cfg,
        }
 
        switch (freq) {
+       case 104:
+               min_gpmc_clk_period = 9600; /* 104 MHz */
+               t_ces   = 3;
+               t_avds  = 4;
+               t_avdh  = 2;
+               t_ach   = 3;
+               t_aavdh = 6;
+               t_rdyo  = 9;
+               break;
        case 83:
                min_gpmc_clk_period = 12000; /* 83 MHz */
                t_ces   = 5;
index 9f322f1a7f220d48fb30334bc80d85769df4a8c6..d0894ca7798bfd5b36bb42cdcd100b0cdab55eb4 100644 (file)
@@ -721,6 +721,9 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev)
        case 3:
                c->freq = 83;
                break;
+       case 4:
+               c->freq = 104;
+               break;
        }
 
 #ifdef CONFIG_MTD_PARTITIONS