]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cpu/mpc83xx/ecc.c
rename CFG_ macros to CONFIG_SYS
[people/ms/u-boot.git] / cpu / mpc83xx / ecc.c
index 6f13094243a1cacaadb6a531c9d0a141abee76a2..5ab169fe3e0f5524357074737efdff32c62584d9 100644 (file)
@@ -20,7 +20,7 @@
 #if defined(CONFIG_DDR_ECC) && defined(CONFIG_DDR_ECC_CMD)
 void ecc_print_status(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ddr83xx_t *ddr = &immap->ddr;
 
        printf("\nECC mode: %s\n\n",
@@ -45,7 +45,7 @@ void ecc_print_status(void)
               (ddr->err_disable & ECC_ERROR_DISABLE_MSED) ? 1 : 0);
 
        /* Error injection */
-       printf("Memory Data Path Error Injection Mask High/Low: %08lx %08lx\n",
+       printf("Memory Data Path Error Injection Mask High/Low: %08x %08x\n",
               ddr->data_err_inject_hi, ddr->data_err_inject_lo);
 
        printf("Memory Data Path Error Injection Mask ECC:\n");
@@ -75,8 +75,8 @@ void ecc_print_status(void)
               (ddr->err_detect & ECC_ERROR_DETECT_MSE) ? 1 : 0);
 
        /* Capture data */
-       printf("Memory Error Address Capture: 0x%08lx\n", ddr->capture_address);
-       printf("Memory Data Path Read Capture High/Low: %08lx %08lx\n",
+       printf("Memory Error Address Capture: 0x%08x\n", ddr->capture_address);
+       printf("Memory Data Path Read Capture High/Low: %08x %08x\n",
               ddr->capture_data_hi, ddr->capture_data_lo);
        printf("Memory Data Path Read Capture ECC: 0x%02x\n\n",
               ddr->capture_ecc & CAPTURE_ECC_ECE);
@@ -100,7 +100,7 @@ void ecc_print_status(void)
 
 int do_ecc(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ddr83xx_t *ddr = &immap->ddr;
        volatile u32 val;
        u64 *addr;