arm: mx6: ddr3: Remove dead code
authorNikolay Dimitrov <picmaster@mail.bg>
Fri, 8 May 2015 10:06:50 +0000 (13:06 +0300)
committerStefano Babic <sbabic@denx.de>
Fri, 15 May 2015 17:21:24 +0000 (19:21 +0200)
imx6 mmdc supports data rates up to 1066 MT/s, so remove the code handling
higher data rates.

Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
arch/arm/cpu/armv7/mx6/ddr.c

index 2b2ad660bb95eb75c45804362b085c1eeecc5b08..5d5bd0f54652390db66d2d2ec9db78fbcf76749f 100644 (file)
@@ -352,28 +352,6 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo,
                        trrd = DIV_ROUND_UP(max(4 * clkper, 10000), clkper) - 1;
                }
                break;
-       case 1333:
-               txp = DIV_ROUND_UP(max(3 * clkper, 6000), clkper) - 1;
-               tcke = DIV_ROUND_UP(max(3 * clkper, 5625), clkper) - 1;
-               if (ddr3_cfg->pagesz == 1) {
-                       tfaw = DIV_ROUND_UP(30000, clkper) - 1;
-                       trrd = DIV_ROUND_UP(max(4 * clkper, 6000), clkper) - 1;
-               } else {
-                       tfaw = DIV_ROUND_UP(45000, clkper) - 1;
-                       trrd = DIV_ROUND_UP(max(4 * clkper, 7500), clkper) - 1;
-               }
-               break;
-       case 1600:
-               txp = DIV_ROUND_UP(max(3 * clkper, 6000), clkper) - 1;
-               tcke = DIV_ROUND_UP(max(3 * clkper, 5000), clkper) - 1;
-               if (ddr3_cfg->pagesz == 1) {
-                       tfaw = DIV_ROUND_UP(30000, clkper) - 1;
-                       trrd = DIV_ROUND_UP(max(4 * clkper, 6000), clkper) - 1;
-               } else {
-                       tfaw = DIV_ROUND_UP(40000, clkper) - 1;
-                       trrd = DIV_ROUND_UP(max(4 * clkper, 7500), clkper) - 1;
-               }
-               break;
        default:
                puts("invalid memory speed\n");
                hang();