|
@@ -363,7 +363,7 @@ static struct pxa3xx_nand_flash *builtin_flash_types[] = {
|
|
#define tAR_NDTR1(r) (((r) >> 0) & 0xf)
|
|
#define tAR_NDTR1(r) (((r) >> 0) & 0xf)
|
|
|
|
|
|
/* convert nano-seconds to nand flash controller clock cycles */
|
|
/* convert nano-seconds to nand flash controller clock cycles */
|
|
-#define ns2cycle(ns, clk) (int)(((ns) * (clk / 1000000) / 1000) - 1)
|
|
|
|
|
|
+#define ns2cycle(ns, clk) (int)((ns) * (clk / 1000000) / 1000)
|
|
|
|
|
|
/* convert nand flash controller clock cycles to nano-seconds */
|
|
/* convert nand flash controller clock cycles to nano-seconds */
|
|
#define cycle2ns(c, clk) ((((c) + 1) * 1000000 + clk / 500) / (clk / 1000))
|
|
#define cycle2ns(c, clk) ((((c) + 1) * 1000000 + clk / 500) / (clk / 1000))
|