1 /* SPDX-License-Identifier: GPL-2.0+ */
6 * Authors: Stefan Agner
10 #ifndef __ASM_ARCH_VF610_DDRMC_H
11 #define __ASM_ARCH_VF610_DDRMC_H
13 struct ddr3_jedec_timings {
64 struct ddrmc_cr_setting {
66 int cr_rnum; /* CR register ; -1 for last entry */
69 struct ddrmc_phy_setting {
71 int phy_rnum; /* PHY register ; -1 for last entry */
74 void ddrmc_setup_iomux(const iomux_v3_cfg_t *pads, int pads_count);
75 void ddrmc_phy_init(void);
76 void ddrmc_ctrl_init_ddr3(struct ddr3_jedec_timings const *timings,
77 struct ddrmc_cr_setting *board_cr_settings,
78 struct ddrmc_phy_setting *board_phy_settings,
79 int col_diff, int row_diff);