]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ram: rk3399: Drop debug stride in driver
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 13 Jul 2020 20:06:33 +0000 (01:36 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 22 Jul 2020 12:22:23 +0000 (20:22 +0800)
stride debug is already present in sdram_common.c via
RAM_ROCKCHIP_DEBUG.

So, drop the redundant debug stride code in rk3399 driver.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/ram/rockchip/sdram_rk3399.c

index 0fe2cedc52856c41cac4b0c46802fdd00d651e4e..73d437347ddef3ed125e2a5e5a59c7fde453baab 100644 (file)
@@ -2875,31 +2875,6 @@ static unsigned char calculate_stride(struct rk3399_sdram_params *params)
                if (stride == (-1))
                        goto error;
        }
-       switch (stride) {
-       case 0xc:
-               printf("128B stride\n");
-               break;
-       case 5:
-       case 9:
-       case 0xd:
-       case 0x11:
-       case 0x19:
-               printf("256B stride\n");
-               break;
-       case 0xa:
-       case 0xe:
-       case 0x12:
-               printf("512B stride\n");
-               break;
-       case 0xf:
-               printf("4K stride\n");
-               break;
-       case 0x1f:
-               printf("32MB + 256B stride\n");
-               break;
-       default:
-               printf("no stride\n");
-       }
 
        sdram_print_stride(stride);