diff options
author | York Sun <york.sun@nxp.com> | 2016-09-26 08:09:25 -0700 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-09-26 08:53:07 -0700 |
commit | 1fdcc8dfc7612acc765cd483051dcfaac399f4f1 (patch) | |
tree | 282484829ff5a8c8c79cab37da823e7fde9b7e63 /board/freescale/ls1012ardb | |
parent | da28e58a7fc169625334b1e40f72067b481b352a (diff) | |
download | u-boot-imx-1fdcc8dfc7612acc765cd483051dcfaac399f4f1.zip u-boot-imx-1fdcc8dfc7612acc765cd483051dcfaac399f4f1.tar.gz u-boot-imx-1fdcc8dfc7612acc765cd483051dcfaac399f4f1.tar.bz2 |
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>
Diffstat (limited to 'board/freescale/ls1012ardb')
-rw-r--r-- | board/freescale/ls1012ardb/ls1012ardb.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c index 50f9187..778434d 100644 --- a/board/freescale/ls1012ardb/ls1012ardb.c +++ b/board/freescale/ls1012ardb/ls1012ardb.c @@ -58,7 +58,23 @@ int checkboard(void) int dram_init(void) { - mmdc_init(); + static const struct fsl_mmdc_info mparam = { + 0x05180000, /* mdctl */ + 0x00030035, /* mdpdc */ + 0x12554000, /* mdotc */ + 0xbabf7954, /* mdcfg0 */ + 0xdb328f64, /* mdcfg1 */ + 0x01ff00db, /* mdcfg2 */ + 0x00001680, /* mdmisc */ + 0x0f3c8000, /* mdref */ + 0x00002000, /* mdrwd */ + 0x00bf1023, /* mdor */ + 0x0000003f, /* mdasp */ + 0x0000022a, /* mpodtctrl */ + 0xa1390003, /* mpzqhwctrl */ + }; + + mmdc_init(&mparam); gd->ram_size = CONFIG_SYS_SDRAM_SIZE; |