Lines Matching refs:clkper

1004 	int clkper; /* clock period in picoseconds */  in mx6_lpddr2_cfg()  local
1015 clkper = (1000 * 1000) / clock; /* pico seconds */ in mx6_lpddr2_cfg()
1024 trfc = DIV_ROUND_UP(130000, clkper) - 1; in mx6_lpddr2_cfg()
1025 txsr = DIV_ROUND_UP(140000, clkper) - 1; in mx6_lpddr2_cfg()
1028 trfc = DIV_ROUND_UP(210000, clkper) - 1; in mx6_lpddr2_cfg()
1029 txsr = DIV_ROUND_UP(220000, clkper) - 1; in mx6_lpddr2_cfg()
1041 txp = DIV_ROUND_UP(7500, clkper) - 1; in mx6_lpddr2_cfg()
1044 tfaw = DIV_ROUND_UP(60000, clkper) - 1; in mx6_lpddr2_cfg()
1046 tfaw = DIV_ROUND_UP(50000, clkper) - 1; in mx6_lpddr2_cfg()
1047 trrd = DIV_ROUND_UP(10000, clkper) - 1; in mx6_lpddr2_cfg()
1050 tcksre = DIV_ROUND_UP(15000, clkper); in mx6_lpddr2_cfg()
1052 twr = DIV_ROUND_UP(15000, clkper) - 1; in mx6_lpddr2_cfg()
1058 tras = DIV_ROUND_UP(lpddr2_cfg->trasmin, clkper / 10) - 1; in mx6_lpddr2_cfg()
1060 trcd_lp = DIV_ROUND_UP(lpddr2_cfg->trcd_lp, clkper / 10) - 1; in mx6_lpddr2_cfg()
1062 clkper / 10) - 1; in mx6_lpddr2_cfg()
1063 trppb_lp = DIV_ROUND_UP(lpddr2_cfg->trppb_lp, clkper / 10) - 1; in mx6_lpddr2_cfg()
1064 trpab_lp = DIV_ROUND_UP(lpddr2_cfg->trpab_lp, clkper / 10) - 1; in mx6_lpddr2_cfg()
1067 twtr = DIV_ROUND_UP(7500, clkper) - 1; in mx6_lpddr2_cfg()
1068 trtp = DIV_ROUND_UP(7500, clkper) - 1; in mx6_lpddr2_cfg()
1074 debug("clock: %dMHz (%d ps)\n", clock, clkper); in mx6_lpddr2_cfg()
1235 int clkper; /* clock period in picoseconds */ in mx6_ddr3_cfg() local
1269 clkper = (1000 * 1000) / clock; /* pico seconds */ in mx6_ddr3_cfg()
1276 trfc = DIV_ROUND_UP(110000, clkper) - 1; in mx6_ddr3_cfg()
1277 txs = DIV_ROUND_UP(120000, clkper) - 1; in mx6_ddr3_cfg()
1280 trfc = DIV_ROUND_UP(160000, clkper) - 1; in mx6_ddr3_cfg()
1281 txs = DIV_ROUND_UP(170000, clkper) - 1; in mx6_ddr3_cfg()
1284 trfc = DIV_ROUND_UP(260000, clkper) - 1; in mx6_ddr3_cfg()
1285 txs = DIV_ROUND_UP(270000, clkper) - 1; in mx6_ddr3_cfg()
1288 trfc = DIV_ROUND_UP(350000, clkper) - 1; in mx6_ddr3_cfg()
1289 txs = DIV_ROUND_UP(360000, clkper) - 1; in mx6_ddr3_cfg()
1301 txp = DIV_ROUND_UP(max(3 * clkper, 7500), clkper) - 1; in mx6_ddr3_cfg()
1302 tcke = DIV_ROUND_UP(max(3 * clkper, 7500), clkper) - 1; in mx6_ddr3_cfg()
1304 tfaw = DIV_ROUND_UP(40000, clkper) - 1; in mx6_ddr3_cfg()
1305 trrd = DIV_ROUND_UP(max(4 * clkper, 10000), clkper) - 1; in mx6_ddr3_cfg()
1307 tfaw = DIV_ROUND_UP(50000, clkper) - 1; in mx6_ddr3_cfg()
1308 trrd = DIV_ROUND_UP(max(4 * clkper, 10000), clkper) - 1; in mx6_ddr3_cfg()
1312 txp = DIV_ROUND_UP(max(3 * clkper, 7500), clkper) - 1; in mx6_ddr3_cfg()
1313 tcke = DIV_ROUND_UP(max(3 * clkper, 5625), clkper) - 1; in mx6_ddr3_cfg()
1315 tfaw = DIV_ROUND_UP(37500, clkper) - 1; in mx6_ddr3_cfg()
1316 trrd = DIV_ROUND_UP(max(4 * clkper, 7500), clkper) - 1; in mx6_ddr3_cfg()
1318 tfaw = DIV_ROUND_UP(50000, clkper) - 1; in mx6_ddr3_cfg()
1319 trrd = DIV_ROUND_UP(max(4 * clkper, 10000), clkper) - 1; in mx6_ddr3_cfg()
1327 txpdll = DIV_ROUND_UP(max(10 * clkper, 24000), clkper) - 1; in mx6_ddr3_cfg()
1328 tcksre = DIV_ROUND_UP(max(5 * clkper, 10000), clkper); in mx6_ddr3_cfg()
1329 taonpd = DIV_ROUND_UP(2000, clkper) - 1; in mx6_ddr3_cfg()
1332 twr = DIV_ROUND_UP(15000, clkper) - 1; in mx6_ddr3_cfg()
1333 tmrd = DIV_ROUND_UP(max(12 * clkper, 15000), clkper) - 1; in mx6_ddr3_cfg()
1334 trc = DIV_ROUND_UP(ddr3_cfg->trcmin, clkper / 10) - 1; in mx6_ddr3_cfg()
1335 tras = DIV_ROUND_UP(ddr3_cfg->trasmin, clkper / 10) - 1; in mx6_ddr3_cfg()
1336 tcl = DIV_ROUND_UP(ddr3_cfg->trcd, clkper / 10) - 3; in mx6_ddr3_cfg()
1337 trp = DIV_ROUND_UP(ddr3_cfg->trcd, clkper / 10) - 1; in mx6_ddr3_cfg()
1338 twtr = ROUND(max(4 * clkper, 7500) / clkper, 1) - 1; in mx6_ddr3_cfg()
1345 debug("clock: %dMHz (%d ps)\n", clock, clkper); in mx6_ddr3_cfg()