Lines Matching refs:sdram
38 sdramc_t *sdram = (sdramc_t *)(MMAP_SDRAM); in dram_init() local
44 if ((in_be32(&sdram->sdcfg1) == CONFIG_SYS_SDRAM_CFG1) && in dram_init()
45 (in_be32(&sdram->sdcfg2) == CONFIG_SYS_SDRAM_CFG2)) in dram_init()
56 out_be32(&sdram->sdcs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
58 out_be32(&sdram->sdcfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
59 out_be32(&sdram->sdcfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
64 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
68 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
70 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
74 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE); in dram_init()
76 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE); in dram_init()
79 out_be32(&sdram->sdcr, in dram_init()