1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

driver: ddr: fsl_mmdc: Pass board parameters through data structure

Instead of using multiple macros, a data structure is used to pass
board-specific parameters to MMDC DDR driver.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Shengzhou Liu <Shengzhou.Liu@nxp.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
York Sun
2016-09-26 08:09:25 -07:00
parent da28e58a7f
commit 1fdcc8dfc7
8 changed files with 87 additions and 73 deletions

View File

@@ -150,10 +150,23 @@ struct mmdc_regs {
u32 mpdccr;
};
void mmdc_init(void);
struct fsl_mmdc_info {
u32 mdctl;
u32 mdpdc;
u32 mdotc;
u32 mdcfg0;
u32 mdcfg1;
u32 mdcfg2;
u32 mdmisc;
u32 mdref;
u32 mdrwd;
u32 mdor;
u32 mdasp;
u32 mpodtctrl;
u32 mpzqhwctrl;
u32 mprddlctl;
};
#if !defined(CONFIG_MMDC_MDCTL)
#error Must configure board-specific timing CONFIG_MMDC_* in <board>.h for MMDC
#endif
void mmdc_init(const struct fsl_mmdc_info *);
#endif /* FSL_MMDC_H */