debug_cond(DLEVEL == 2, "%s:%d p: ptap=%u\n",
__func__, __LINE__, p);
- } else {
- /*
- * Step 3-5b: Find the right edge of the window
- * using delay taps.
- */
- debug_cond(DLEVEL == 2,
- "%s:%d ptap=%u dtap=%u bgn=%u\n",
- __func__, __LINE__, p, d, work_bgn);
-
- work_end = work_bgn;
}
/* The dtap increment to find the failing edge is done here. */
- for (; d <= IO_DQS_EN_DELAY_MAX;
- d++, work_end += IO_DELAY_PER_DQS_EN_DCHAIN_TAP) {
+ for (; d <= IO_DQS_EN_DELAY_MAX; d++) {
debug_cond(DLEVEL == 2, "%s:%d end-2: dtap=%u\n",
__func__, __LINE__, d);
&bit_chk, 0)) {
break;
}
+
+ work_end += IO_DELAY_PER_DQS_EN_DCHAIN_TAP;
}
/* Go back to working dtap */