diff options
-rw-r--r-- | arch/arm/mach-omap2/gpmc-onenand.c | 9 | ||||
-rw-r--r-- | drivers/mtd/onenand/omap2.c | 3 |
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 1db606ca007e..3a7d25fb00ef 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, | |||
173 | } | 173 | } |
174 | 174 | ||
175 | switch (freq) { | 175 | switch (freq) { |
176 | case 104: | ||
177 | min_gpmc_clk_period = 9600; /* 104 MHz */ | ||
178 | t_ces = 3; | ||
179 | t_avds = 4; | ||
180 | t_avdh = 2; | ||
181 | t_ach = 3; | ||
182 | t_aavdh = 6; | ||
183 | t_rdyo = 9; | ||
184 | break; | ||
176 | case 83: | 185 | case 83: |
177 | min_gpmc_clk_period = 12000; /* 83 MHz */ | 186 | min_gpmc_clk_period = 12000; /* 83 MHz */ |
178 | t_ces = 5; | 187 | t_ces = 5; |
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index 9f322f1a7f22..d0894ca7798b 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) | |||
721 | case 3: | 721 | case 3: |
722 | c->freq = 83; | 722 | c->freq = 83; |
723 | break; | 723 | break; |
724 | case 4: | ||
725 | c->freq = 104; | ||
726 | break; | ||
724 | } | 727 | } |
725 | 728 | ||
726 | #ifdef CONFIG_MTD_PARTITIONS | 729 | #ifdef CONFIG_MTD_PARTITIONS |