aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@nokia.com>2010-12-09 11:22:50 +0200
committerTony Lindgren <tony@atomide.com>2010-12-21 12:05:34 -0800
commit4931445b94f49672028b81ace9d4eee8ddf19ab2 (patch)
tree46d760c854ec0cf63fe6d5d5ef166478933dbc3a
parenta3551f5b0c3ca7aaa053e554e3ee766983b5d713 (diff)
downloadkernel_samsung_aries-4931445b94f49672028b81ace9d4eee8ddf19ab2.zip
kernel_samsung_aries-4931445b94f49672028b81ace9d4eee8ddf19ab2.tar.gz
kernel_samsung_aries-4931445b94f49672028b81ace9d4eee8ddf19ab2.tar.bz2
OMAP2/3: OneNAND: add 104MHz support
Add GPMC timings for 104MHz OneNAND. Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/gpmc-onenand.c9
-rw-r--r--drivers/mtd/onenand/omap2.c3
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach-omap2/gpmc-onenand.c
index 1db606c..3a7d25f 100644
--- a/arch/arm/mach-omap2/gpmc-onenand.c
+++ b/arch/arm/mach-omap2/gpmc-onenand.c
@@ -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;
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index 9f322f1..d0894ca 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -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