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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user