5 * Authors: Stefan Agner
8 * SPDX-License-Identifier: GPL-2.0+
11 #ifndef __ASM_ARCH_VF610_DDRMC_H
12 #define __ASM_ARCH_VF610_DDRMC_H
14 struct ddr3_jedec_timings {
65 struct ddrmc_cr_setting {
67 int cr_rnum; /* CR register ; -1 for last entry */
70 struct ddrmc_phy_setting {
72 int phy_rnum; /* PHY register ; -1 for last entry */
75 void ddrmc_setup_iomux(const iomux_v3_cfg_t *pads, int pads_count);
76 void ddrmc_phy_init(void);
77 void ddrmc_ctrl_init_ddr3(struct ddr3_jedec_timings const *timings,
78 struct ddrmc_cr_setting *board_cr_settings,
79 struct ddrmc_phy_setting *board_phy_settings,
80 int col_diff, int row_diff);