Lines Matching refs:ddr
19 struct ccsr_ddr __iomem *ddr = &immap->ddr; in ecc_print_status() local
21 ddr83xx_t *ddr = &immap->ddr; in ecc_print_status() local
25 (ddr->sdram_cfg & SDRAM_CFG_ECC_EN) ? "ON" : "OFF"); in ecc_print_status()
30 (ddr->err_int_en & ECC_ERR_INT_EN_MBEE) ? 1 : 0); in ecc_print_status()
32 (ddr->err_int_en & ECC_ERR_INT_EN_SBEE) ? 1 : 0); in ecc_print_status()
34 (ddr->err_int_en & ECC_ERR_INT_EN_MSEE) ? 1 : 0); in ecc_print_status()
39 (ddr->err_disable & ECC_ERROR_DISABLE_MBED) ? 1 : 0); in ecc_print_status()
41 (ddr->err_disable & ECC_ERROR_DISABLE_SBED) ? 1 : 0); in ecc_print_status()
43 (ddr->err_disable & ECC_ERROR_DISABLE_MSED) ? 1 : 0); in ecc_print_status()
47 ddr->data_err_inject_hi, ddr->data_err_inject_lo); in ecc_print_status()
51 (ddr->ecc_err_inject & ECC_ERR_INJECT_EMB) ? 1 : 0); in ecc_print_status()
53 (ddr->ecc_err_inject & ECC_ERR_INJECT_EIEN) ? 1 : 0); in ecc_print_status()
55 ddr->ecc_err_inject & ECC_ERR_INJECT_EEIM); in ecc_print_status()
60 (ddr->err_sbe & ECC_ERROR_MAN_SBET) >> ECC_ERROR_MAN_SBET_SHIFT); in ecc_print_status()
62 (ddr->err_sbe & ECC_ERROR_MAN_SBEC) >> ECC_ERROR_MAN_SBEC_SHIFT); in ecc_print_status()
67 (ddr->err_detect & ECC_ERROR_DETECT_MME) ? 1 : 0); in ecc_print_status()
69 (ddr->err_detect & ECC_ERROR_DETECT_MBE) ? 1 : 0); in ecc_print_status()
71 (ddr->err_detect & ECC_ERROR_DETECT_SBE) ? 1 : 0); in ecc_print_status()
73 (ddr->err_detect & ECC_ERROR_DETECT_MSE) ? 1 : 0); in ecc_print_status()
76 printf("Memory Error Address Capture: 0x%08x\n", ddr->capture_address); in ecc_print_status()
78 ddr->capture_data_hi, ddr->capture_data_lo); in ecc_print_status()
80 ddr->capture_ecc & CAPTURE_ECC_ECE); in ecc_print_status()
84 (ddr->capture_attributes & ECC_CAPT_ATTR_BNUM) >> in ecc_print_status()
87 (ddr->capture_attributes & ECC_CAPT_ATTR_TSIZ) >> in ecc_print_status()
90 (ddr->capture_attributes & ECC_CAPT_ATTR_TSRC) >> in ecc_print_status()
93 (ddr->capture_attributes & ECC_CAPT_ATTR_TTYP) >> in ecc_print_status()
96 ddr->capture_attributes & ECC_CAPT_ATTR_VLD); in ecc_print_status()
103 struct ccsr_ddr __iomem *ddr = &immap->ddr; in do_ecc() local
105 ddr83xx_t *ddr = &immap->ddr; in do_ecc() local
131 ddr->capture_address = 0; in do_ecc()
132 ddr->capture_data_hi = 0; in do_ecc()
133 ddr->capture_data_lo = 0; in do_ecc()
134 ddr->capture_ecc = 0; in do_ecc()
135 ddr->capture_attributes = 0; in do_ecc()
149 val |= (ddr->err_sbe & ECC_ERROR_MAN_SBET); in do_ecc()
151 ddr->err_sbe = val; in do_ecc()
162 val |= (ddr->err_sbe & ECC_ERROR_MAN_SBEC); in do_ecc()
164 ddr->err_sbe = val; in do_ecc()
167 val = ddr->err_disable; in do_ecc()
194 ddr->err_disable = val; in do_ecc()
199 val = ddr->err_detect; in do_ecc()
219 ddr->err_detect = val; in do_ecc()
224 ddr->data_err_inject_hi = val; in do_ecc()
229 ddr->data_err_inject_lo = val; in do_ecc()
238 val |= (ddr->ecc_err_inject & ~ECC_ERR_INJECT_EEIM); in do_ecc()
240 ddr->ecc_err_inject = val; in do_ecc()
243 val = ddr->ecc_err_inject; in do_ecc()
252 ddr->ecc_err_inject = val; in do_ecc()
257 val = ddr->ecc_err_inject; in do_ecc()
266 ddr->ecc_err_inject = val; in do_ecc()
285 ddr->ecc_err_inject |= ECC_ERR_INJECT_EIEN; in do_ecc()
294 ddr->ecc_err_inject &= ~ECC_ERR_INJECT_EIEN; in do_ecc()
324 ddr->ecc_err_inject |= ECC_ERR_INJECT_EIEN; in do_ecc()
339 ddr->ecc_err_inject &= ~ECC_ERR_INJECT_EIEN; in do_ecc()