]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/gpmc.c
ARM: OMAP: updated N800/N810 support for OneNAND
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / gpmc.c
index 1b54820d62130bbf3af1addfde0982f416722051..2b0e07dc5f98d76e0090001b74038402f08d341d 100644 (file)
@@ -117,6 +117,11 @@ unsigned int gpmc_ns_to_ticks(unsigned int time_ns)
        return (time_ns * 1000 + tick_ps - 1) / tick_ps;
 }
 
+unsigned int gpmc_ticks_to_ns(unsigned int ticks)
+{
+       return ticks * gpmc_get_fclk_period() / 1000;
+}
+
 unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns)
 {
        unsigned long ticks = gpmc_ns_to_ticks(time_ns);