1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * ddrmc DDR3 calibration code for NXP's VF610
5 * Copyright (C) 2018 DENX Software Engineering
6 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
10 #ifndef __DDRMC_VF610_CALIBRATOIN_H_
11 #define __DDRMC_VF610_CALIBRATOIN_H_
14 * Number of "samples" in the calibration bitmap
15 * to be considered during calibration.
20 * Constants to indicate if we are looking for a rising or
21 * falling edge in the calibration bitmap
29 * The max number of delay elements when DQS to DQ setting
31 #define DDRMC_DQS_DQ_MAX_DELAY 0xFF
34 * ddrmc_calibration - Vybrid's (VF610) DDR3 calibration code
36 * This function is calculating proper memory controller values
39 * @param ddrmr_regs - memory controller registers
41 * @return 0 on success, otherwise error code
43 int ddrmc_calibration(struct ddrmr_regs *ddrmr);
45 #endif /* __DDRMC_VF610_CALIBRATOIN_H_ */