Lines Matching full:ddr
18 struct ccsr_ddr __iomem *ddr = &immap->ddr; in ecc_print_status() local
20 ddr83xx_t *ddr = &immap->ddr; in ecc_print_status() local
24 (ddr->sdram_cfg & SDRAM_CFG_ECC_EN) ? "ON" : "OFF"); in ecc_print_status()
29 (ddr->err_int_en & ECC_ERR_INT_EN_MBEE) ? 1 : 0); in ecc_print_status()
31 (ddr->err_int_en & ECC_ERR_INT_EN_SBEE) ? 1 : 0); in ecc_print_status()
33 (ddr->err_int_en & ECC_ERR_INT_EN_MSEE) ? 1 : 0); in ecc_print_status()
38 (ddr->err_disable & ECC_ERROR_DISABLE_MBED) ? 1 : 0); in ecc_print_status()
40 (ddr->err_disable & ECC_ERROR_DISABLE_SBED) ? 1 : 0); in ecc_print_status()
42 (ddr->err_disable & ECC_ERROR_DISABLE_MSED) ? 1 : 0); in ecc_print_status()
46 ddr->data_err_inject_hi, ddr->data_err_inject_lo); in ecc_print_status()
50 (ddr->ecc_err_inject & ECC_ERR_INJECT_EMB) ? 1 : 0); in ecc_print_status()
52 (ddr->ecc_err_inject & ECC_ERR_INJECT_EIEN) ? 1 : 0); in ecc_print_status()
54 ddr->ecc_err_inject & ECC_ERR_INJECT_EEIM); in ecc_print_status()
59 (ddr->err_sbe & ECC_ERROR_MAN_SBET) >> ECC_ERROR_MAN_SBET_SHIFT); in ecc_print_status()
61 (ddr->err_sbe & ECC_ERROR_MAN_SBEC) >> ECC_ERROR_MAN_SBEC_SHIFT); in ecc_print_status()
66 (ddr->err_detect & ECC_ERROR_DETECT_MME) ? 1 : 0); in ecc_print_status()
68 (ddr->err_detect & ECC_ERROR_DETECT_MBE) ? 1 : 0); in ecc_print_status()
70 (ddr->err_detect & ECC_ERROR_DETECT_SBE) ? 1 : 0); in ecc_print_status()
72 (ddr->err_detect & ECC_ERROR_DETECT_MSE) ? 1 : 0); in ecc_print_status()
75 printf("Memory Error Address Capture: 0x%08x\n", ddr->capture_address); in ecc_print_status()
77 ddr->capture_data_hi, ddr->capture_data_lo); in ecc_print_status()
79 ddr->capture_ecc & CAPTURE_ECC_ECE); in ecc_print_status()
83 (ddr->capture_attributes & ECC_CAPT_ATTR_BNUM) >> in ecc_print_status()
86 (ddr->capture_attributes & ECC_CAPT_ATTR_TSIZ) >> in ecc_print_status()
89 (ddr->capture_attributes & ECC_CAPT_ATTR_TSRC) >> in ecc_print_status()
92 (ddr->capture_attributes & ECC_CAPT_ATTR_TTYP) >> in ecc_print_status()
95 ddr->capture_attributes & ECC_CAPT_ATTR_VLD); in ecc_print_status()
102 struct ccsr_ddr __iomem *ddr = &immap->ddr; in do_ecc() local
104 ddr83xx_t *ddr = &immap->ddr; in do_ecc() local
130 ddr->capture_address = 0; in do_ecc()
131 ddr->capture_data_hi = 0; in do_ecc()
132 ddr->capture_data_lo = 0; in do_ecc()
133 ddr->capture_ecc = 0; in do_ecc()
134 ddr->capture_attributes = 0; in do_ecc()
148 val |= (ddr->err_sbe & ECC_ERROR_MAN_SBET); in do_ecc()
150 ddr->err_sbe = val; in do_ecc()
161 val |= (ddr->err_sbe & ECC_ERROR_MAN_SBEC); in do_ecc()
163 ddr->err_sbe = val; in do_ecc()
166 val = ddr->err_disable; in do_ecc()
193 ddr->err_disable = val; in do_ecc()
198 val = ddr->err_detect; in do_ecc()
218 ddr->err_detect = val; in do_ecc()
223 ddr->data_err_inject_hi = val; in do_ecc()
228 ddr->data_err_inject_lo = val; in do_ecc()
237 val |= (ddr->ecc_err_inject & ~ECC_ERR_INJECT_EEIM); in do_ecc()
239 ddr->ecc_err_inject = val; in do_ecc()
242 val = ddr->ecc_err_inject; in do_ecc()
251 ddr->ecc_err_inject = val; in do_ecc()
256 val = ddr->ecc_err_inject; in do_ecc()
265 ddr->ecc_err_inject = val; in do_ecc()
284 ddr->ecc_err_inject |= ECC_ERR_INJECT_EIEN; in do_ecc()
293 ddr->ecc_err_inject &= ~ECC_ERR_INJECT_EIEN; in do_ecc()
323 ddr->ecc_err_inject |= ECC_ERR_INJECT_EIEN; in do_ecc()
338 ddr->ecc_err_inject &= ~ECC_ERR_INJECT_EIEN; in do_ecc()
356 "support for DDR ECC features",