Lines Matching full:ddr2
152 static void ddr2_conf(struct atmel_mpddrc_config *ddr2) in ddr2_conf() argument
154 ddr2->md = (ATMEL_MPDDRC_MD_DBW_16_BITS | ATMEL_MPDDRC_MD_DDR2_SDRAM); in ddr2_conf()
156 ddr2->cr = (ATMEL_MPDDRC_CR_NC_COL_10 | in ddr2_conf()
162 ddr2->rtr = 0x411; in ddr2_conf()
164 ddr2->tpr0 = (6 << ATMEL_MPDDRC_TPR0_TRAS_OFFSET | in ddr2_conf()
173 ddr2->tpr1 = (2 << ATMEL_MPDDRC_TPR1_TXP_OFFSET | in ddr2_conf()
178 ddr2->tpr2 = (7 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET | in ddr2_conf()
189 struct atmel_mpddrc_config ddr2; in mem_init() local
192 ddr2_conf(&ddr2); in mem_init()
194 /* enable DDR2 clock */ in mem_init()
197 /* Chip select 1 is for DDR2/SDRAM */ in mem_init()
206 ddr2_init(ATMEL_BASE_DDRSDRC, ATMEL_BASE_CS1, &ddr2); in mem_init()