]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/nand/gpmi-nand/gpmi-lib.c
mtd: gpmi: add gpmi_devdata{} to simplify the code
[karo-tx-linux.git] / drivers / mtd / nand / gpmi-nand / gpmi-lib.c
index dd1df605a1d61ec8a43ffb5515ea50ce2f3c9b69..ec4db2a359e5de9d7e6a57fb855698115e9722f1 100644 (file)
@@ -861,7 +861,7 @@ static void gpmi_compute_edo_timing(struct gpmi_nand_data *this,
        struct resources *r = &this->resources;
        unsigned long rate = clk_get_rate(r->clock[0]);
        int mode = this->timing_mode;
-       int dll_threshold = 16; /* in ns */
+       int dll_threshold = this->devdata->max_chain_delay;
        unsigned long delay;
        unsigned long clk_period;
        int t_rea;
@@ -886,9 +886,6 @@ static void gpmi_compute_edo_timing(struct gpmi_nand_data *this,
        /* [3] for GPMI_HW_GPMI_CTRL1 */
        hw->wrn_dly_sel = BV_GPMI_CTRL1_WRN_DLY_SEL_NO_DELAY;
 
-       if (GPMI_IS_MX6Q(this))
-               dll_threshold = 12;
-
        /*
         * Enlarge 10 times for the numerator and denominator in {3}.
         * This make us to get more accurate result.