Lines Matching refs:mcopt1
840 static enum dev_type ppc4xx_edac_get_dtype(u32 mcopt1) in ppc4xx_edac_get_dtype() argument
842 switch (mcopt1 & SDRAM_MCOPT1_WDTH_MASK) { in ppc4xx_edac_get_dtype()
863 static enum mem_type ppc4xx_edac_get_mtype(u32 mcopt1) in ppc4xx_edac_get_mtype() argument
865 bool rden = ((mcopt1 & SDRAM_MCOPT1_RDEN_MASK) == SDRAM_MCOPT1_RDEN); in ppc4xx_edac_get_mtype()
867 switch (mcopt1 & SDRAM_MCOPT1_DDR_TYPE_MASK) { in ppc4xx_edac_get_mtype()
893 static int ppc4xx_edac_init_csrows(struct mem_ctl_info *mci, u32 mcopt1) in ppc4xx_edac_init_csrows() argument
905 mtype = ppc4xx_edac_get_mtype(mcopt1); in ppc4xx_edac_init_csrows()
906 dtype = ppc4xx_edac_get_dtype(mcopt1); in ppc4xx_edac_init_csrows()
1012 const dcr_host_t *dcr_host, u32 mcopt1) in ppc4xx_edac_mc_init() argument
1015 const u32 memcheck = (mcopt1 & SDRAM_MCOPT1_MCHK_MASK); in ppc4xx_edac_mc_init()
1078 status = ppc4xx_edac_init_csrows(mci, mcopt1); in ppc4xx_edac_mc_init()
1232 u32 mcopt1, memcheck; in ppc4xx_edac_probe() local
1267 mcopt1 = mfsdram(&dcr_host, SDRAM_MCOPT1); in ppc4xx_edac_probe()
1268 memcheck = (mcopt1 & SDRAM_MCOPT1_MCHK_MASK); in ppc4xx_edac_probe()
1298 status = ppc4xx_edac_mc_init(mci, op, &dcr_host, mcopt1); in ppc4xx_edac_probe()