Lines Matching refs:param

584 static bool finetuneDQI_L(struct ast_device *ast, struct ast2300_dram_param *param)  in finetuneDQI_L()  argument
773 static bool cbr_dll2(struct ast_device *ast, struct ast2300_dram_param *param) in cbr_dll2() argument
779 if (finetuneDQI_L(ast, param) == false) in cbr_dll2()
829 static void get_ddr3_info(struct ast_device *ast, struct ast2300_dram_param *param) in get_ddr3_info() argument
842 param->reg_MADJ = 0x00034C4C; in get_ddr3_info()
843 param->reg_SADJ = 0x00001800; in get_ddr3_info()
844 param->reg_DRV = 0x000000F0; in get_ddr3_info()
845 param->reg_PERIOD = param->dram_freq; in get_ddr3_info()
846 param->rodt = 0; in get_ddr3_info()
848 switch (param->dram_freq) { in get_ddr3_info()
851 param->wodt = 0; in get_ddr3_info()
852 param->reg_AC1 = 0x22202725; in get_ddr3_info()
853 param->reg_AC2 = 0xAA007613 | trap_AC2; in get_ddr3_info()
854 param->reg_DQSIC = 0x000000BA; in get_ddr3_info()
855 param->reg_MRS = 0x04001400 | trap_MRS; in get_ddr3_info()
856 param->reg_EMRS = 0x00000000; in get_ddr3_info()
857 param->reg_IOZ = 0x00000023; in get_ddr3_info()
858 param->reg_DQIDLY = 0x00000074; in get_ddr3_info()
859 param->reg_FREQ = 0x00004DC0; in get_ddr3_info()
860 param->madj_max = 96; in get_ddr3_info()
861 param->dll2_finetune_step = 3; in get_ddr3_info()
862 switch (param->dram_chipid) { in get_ddr3_info()
866 param->reg_AC2 = 0xAA007613 | trap_AC2; in get_ddr3_info()
869 param->reg_AC2 = 0xAA00761C | trap_AC2; in get_ddr3_info()
872 param->reg_AC2 = 0xAA007636 | trap_AC2; in get_ddr3_info()
879 param->wodt = 1; in get_ddr3_info()
880 param->reg_AC1 = 0x33302825; in get_ddr3_info()
881 param->reg_AC2 = 0xCC009617 | trap_AC2; in get_ddr3_info()
882 param->reg_DQSIC = 0x000000E2; in get_ddr3_info()
883 param->reg_MRS = 0x04001600 | trap_MRS; in get_ddr3_info()
884 param->reg_EMRS = 0x00000000; in get_ddr3_info()
885 param->reg_IOZ = 0x00000034; in get_ddr3_info()
886 param->reg_DRV = 0x000000FA; in get_ddr3_info()
887 param->reg_DQIDLY = 0x00000089; in get_ddr3_info()
888 param->reg_FREQ = 0x00005040; in get_ddr3_info()
889 param->madj_max = 96; in get_ddr3_info()
890 param->dll2_finetune_step = 4; in get_ddr3_info()
892 switch (param->dram_chipid) { in get_ddr3_info()
896 param->reg_AC2 = 0xCC009617 | trap_AC2; in get_ddr3_info()
899 param->reg_AC2 = 0xCC009622 | trap_AC2; in get_ddr3_info()
902 param->reg_AC2 = 0xCC00963F | trap_AC2; in get_ddr3_info()
909 param->wodt = 1; in get_ddr3_info()
910 param->reg_AC1 = 0x33302825; in get_ddr3_info()
911 param->reg_AC2 = 0xCC009617 | trap_AC2; in get_ddr3_info()
912 param->reg_DQSIC = 0x000000E2; in get_ddr3_info()
913 param->reg_MRS = 0x04001600 | trap_MRS; in get_ddr3_info()
914 param->reg_EMRS = 0x00000000; in get_ddr3_info()
915 param->reg_IOZ = 0x00000023; in get_ddr3_info()
916 param->reg_DRV = 0x000000FA; in get_ddr3_info()
917 param->reg_DQIDLY = 0x00000089; in get_ddr3_info()
918 param->reg_FREQ = 0x000050C0; in get_ddr3_info()
919 param->madj_max = 96; in get_ddr3_info()
920 param->dll2_finetune_step = 4; in get_ddr3_info()
922 switch (param->dram_chipid) { in get_ddr3_info()
926 param->reg_AC2 = 0xCC009617 | trap_AC2; in get_ddr3_info()
929 param->reg_AC2 = 0xCC009622 | trap_AC2; in get_ddr3_info()
932 param->reg_AC2 = 0xCC00963F | trap_AC2; in get_ddr3_info()
939 param->wodt = 0; in get_ddr3_info()
940 param->reg_AC1 = 0x33302926; in get_ddr3_info()
941 param->reg_AC2 = 0xCD44961A; in get_ddr3_info()
942 param->reg_DQSIC = 0x000000FC; in get_ddr3_info()
943 param->reg_MRS = 0x00081830; in get_ddr3_info()
944 param->reg_EMRS = 0x00000000; in get_ddr3_info()
945 param->reg_IOZ = 0x00000045; in get_ddr3_info()
946 param->reg_DQIDLY = 0x00000097; in get_ddr3_info()
947 param->reg_FREQ = 0x000052C0; in get_ddr3_info()
948 param->madj_max = 88; in get_ddr3_info()
949 param->dll2_finetune_step = 4; in get_ddr3_info()
953 param->wodt = 1; in get_ddr3_info()
954 param->reg_AC1 = 0x33302926; in get_ddr3_info()
955 param->reg_AC2 = 0xDE44A61D; in get_ddr3_info()
956 param->reg_DQSIC = 0x00000117; in get_ddr3_info()
957 param->reg_MRS = 0x00081A30; in get_ddr3_info()
958 param->reg_EMRS = 0x00000000; in get_ddr3_info()
959 param->reg_IOZ = 0x070000BB; in get_ddr3_info()
960 param->reg_DQIDLY = 0x000000A0; in get_ddr3_info()
961 param->reg_FREQ = 0x000054C0; in get_ddr3_info()
962 param->madj_max = 79; in get_ddr3_info()
963 param->dll2_finetune_step = 4; in get_ddr3_info()
967 param->wodt = 1; in get_ddr3_info()
968 param->rodt = 1; in get_ddr3_info()
969 param->reg_AC1 = 0x33302926; in get_ddr3_info()
970 param->reg_AC2 = 0xEF44B61E; in get_ddr3_info()
971 param->reg_DQSIC = 0x00000125; in get_ddr3_info()
972 param->reg_MRS = 0x00081A30; in get_ddr3_info()
973 param->reg_EMRS = 0x00000040; in get_ddr3_info()
974 param->reg_DRV = 0x000000F5; in get_ddr3_info()
975 param->reg_IOZ = 0x00000023; in get_ddr3_info()
976 param->reg_DQIDLY = 0x00000088; in get_ddr3_info()
977 param->reg_FREQ = 0x000055C0; in get_ddr3_info()
978 param->madj_max = 76; in get_ddr3_info()
979 param->dll2_finetune_step = 3; in get_ddr3_info()
983 param->reg_MADJ = 0x00136868; in get_ddr3_info()
984 param->reg_SADJ = 0x00004534; in get_ddr3_info()
985 param->wodt = 1; in get_ddr3_info()
986 param->rodt = 1; in get_ddr3_info()
987 param->reg_AC1 = 0x33302A37; in get_ddr3_info()
988 param->reg_AC2 = 0xEF56B61E; in get_ddr3_info()
989 param->reg_DQSIC = 0x0000013F; in get_ddr3_info()
990 param->reg_MRS = 0x00101A50; in get_ddr3_info()
991 param->reg_EMRS = 0x00000040; in get_ddr3_info()
992 param->reg_DRV = 0x000000FA; in get_ddr3_info()
993 param->reg_IOZ = 0x00000023; in get_ddr3_info()
994 param->reg_DQIDLY = 0x00000078; in get_ddr3_info()
995 param->reg_FREQ = 0x000057C0; in get_ddr3_info()
996 param->madj_max = 136; in get_ddr3_info()
997 param->dll2_finetune_step = 3; in get_ddr3_info()
1001 param->reg_MADJ = 0x00136868; in get_ddr3_info()
1002 param->reg_SADJ = 0x00004534; in get_ddr3_info()
1003 param->wodt = 1; in get_ddr3_info()
1004 param->rodt = 1; in get_ddr3_info()
1005 param->reg_AC1 = 0x32302A37; in get_ddr3_info()
1006 param->reg_AC2 = 0xDF56B61F; in get_ddr3_info()
1007 param->reg_DQSIC = 0x0000014D; in get_ddr3_info()
1008 param->reg_MRS = 0x00101A50; in get_ddr3_info()
1009 param->reg_EMRS = 0x00000004; in get_ddr3_info()
1010 param->reg_DRV = 0x000000F5; in get_ddr3_info()
1011 param->reg_IOZ = 0x00000023; in get_ddr3_info()
1012 param->reg_DQIDLY = 0x00000078; in get_ddr3_info()
1013 param->reg_FREQ = 0x000058C0; in get_ddr3_info()
1014 param->madj_max = 132; in get_ddr3_info()
1015 param->dll2_finetune_step = 3; in get_ddr3_info()
1019 param->reg_MADJ = 0x00136868; in get_ddr3_info()
1020 param->reg_SADJ = 0x00004534; in get_ddr3_info()
1021 param->wodt = 1; in get_ddr3_info()
1022 param->rodt = 1; in get_ddr3_info()
1023 param->reg_AC1 = 0x32302A37; in get_ddr3_info()
1024 param->reg_AC2 = 0xEF56B621; in get_ddr3_info()
1025 param->reg_DQSIC = 0x0000015A; in get_ddr3_info()
1026 param->reg_MRS = 0x02101A50; in get_ddr3_info()
1027 param->reg_EMRS = 0x00000004; in get_ddr3_info()
1028 param->reg_DRV = 0x000000F5; in get_ddr3_info()
1029 param->reg_IOZ = 0x00000034; in get_ddr3_info()
1030 param->reg_DQIDLY = 0x00000078; in get_ddr3_info()
1031 param->reg_FREQ = 0x000059C0; in get_ddr3_info()
1032 param->madj_max = 128; in get_ddr3_info()
1033 param->dll2_finetune_step = 3; in get_ddr3_info()
1037 switch (param->dram_chipid) { in get_ddr3_info()
1039 param->dram_config = 0x130; in get_ddr3_info()
1043 param->dram_config = 0x131; in get_ddr3_info()
1046 param->dram_config = 0x132; in get_ddr3_info()
1049 param->dram_config = 0x133; in get_ddr3_info()
1053 switch (param->vram_size) { in get_ddr3_info()
1056 param->dram_config |= 0x00; in get_ddr3_info()
1059 param->dram_config |= 0x04; in get_ddr3_info()
1062 param->dram_config |= 0x08; in get_ddr3_info()
1065 param->dram_config |= 0x0c; in get_ddr3_info()
1071 static void ddr3_init(struct ast_device *ast, struct ast2300_dram_param *param) in ddr3_init() argument
1081 ast_moutdwm(ast, 0x1E6E0064, param->reg_MADJ); in ddr3_init()
1082 ast_moutdwm(ast, 0x1E6E0068, param->reg_SADJ); in ddr3_init()
1084 ast_moutdwm(ast, 0x1E6E0064, param->reg_MADJ | 0xC0000); in ddr3_init()
1087 ast_moutdwm(ast, 0x1E6E0004, param->dram_config); in ddr3_init()
1089 ast_moutdwm(ast, 0x1E6E0010, param->reg_AC1); in ddr3_init()
1090 ast_moutdwm(ast, 0x1E6E0014, param->reg_AC2); in ddr3_init()
1091 ast_moutdwm(ast, 0x1E6E0020, param->reg_DQSIC); in ddr3_init()
1094 ast_moutdwm(ast, 0x1E6E0088, param->reg_DQIDLY); in ddr3_init()
1105 ast_moutdwm(ast, 0x1E6E0060, param->reg_DRV); in ddr3_init()
1106 ast_moutdwm(ast, 0x1E6E006C, param->reg_IOZ); in ddr3_init()
1119 if ((data2 & 0xff) > param->madj_max) { in ddr3_init()
1154 ast_moutdwm(ast, 0x1E6E002C, param->reg_MRS | 0x100); in ddr3_init()
1155 ast_moutdwm(ast, 0x1E6E0030, param->reg_EMRS); in ddr3_init()
1160 ast_moutdwm(ast, 0x1E6E002C, param->reg_MRS); in ddr3_init()
1166 if (param->wodt) { in ddr3_init()
1169 if (param->rodt) { in ddr3_init()
1170 data = data | 0x3000 | ((param->reg_AC2 & 0x60000) >> 3); in ddr3_init()
1175 if ((cbr_dll2(ast, param) == false) && (retry++ < 10)) in ddr3_init()
1178 ast_moutdwm(ast, 0x1E6E0120, param->reg_FREQ); in ddr3_init()
1194 static void get_ddr2_info(struct ast_device *ast, struct ast2300_dram_param *param) in get_ddr2_info() argument
1207 param->reg_MADJ = 0x00034C4C; in get_ddr2_info()
1208 param->reg_SADJ = 0x00001800; in get_ddr2_info()
1209 param->reg_DRV = 0x000000F0; in get_ddr2_info()
1210 param->reg_PERIOD = param->dram_freq; in get_ddr2_info()
1211 param->rodt = 0; in get_ddr2_info()
1213 switch (param->dram_freq) { in get_ddr2_info()
1216 param->wodt = 0; in get_ddr2_info()
1217 param->reg_AC1 = 0x11101513; in get_ddr2_info()
1218 param->reg_AC2 = 0x78117011; in get_ddr2_info()
1219 param->reg_DQSIC = 0x00000092; in get_ddr2_info()
1220 param->reg_MRS = 0x00000842; in get_ddr2_info()
1221 param->reg_EMRS = 0x00000000; in get_ddr2_info()
1222 param->reg_DRV = 0x000000F0; in get_ddr2_info()
1223 param->reg_IOZ = 0x00000034; in get_ddr2_info()
1224 param->reg_DQIDLY = 0x0000005A; in get_ddr2_info()
1225 param->reg_FREQ = 0x00004AC0; in get_ddr2_info()
1226 param->madj_max = 138; in get_ddr2_info()
1227 param->dll2_finetune_step = 3; in get_ddr2_info()
1231 param->wodt = 1; in get_ddr2_info()
1232 param->reg_AC1 = 0x22202613; in get_ddr2_info()
1233 param->reg_AC2 = 0xAA009016 | trap_AC2; in get_ddr2_info()
1234 param->reg_DQSIC = 0x000000BA; in get_ddr2_info()
1235 param->reg_MRS = 0x00000A02 | trap_MRS; in get_ddr2_info()
1236 param->reg_EMRS = 0x00000040; in get_ddr2_info()
1237 param->reg_DRV = 0x000000FA; in get_ddr2_info()
1238 param->reg_IOZ = 0x00000034; in get_ddr2_info()
1239 param->reg_DQIDLY = 0x00000074; in get_ddr2_info()
1240 param->reg_FREQ = 0x00004DC0; in get_ddr2_info()
1241 param->madj_max = 96; in get_ddr2_info()
1242 param->dll2_finetune_step = 3; in get_ddr2_info()
1243 switch (param->dram_chipid) { in get_ddr2_info()
1246 param->reg_AC2 = 0xAA009012 | trap_AC2; in get_ddr2_info()
1249 param->reg_AC2 = 0xAA009016 | trap_AC2; in get_ddr2_info()
1252 param->reg_AC2 = 0xAA009023 | trap_AC2; in get_ddr2_info()
1255 param->reg_AC2 = 0xAA00903B | trap_AC2; in get_ddr2_info()
1262 param->wodt = 1; in get_ddr2_info()
1263 param->rodt = 0; in get_ddr2_info()
1264 param->reg_AC1 = 0x33302714; in get_ddr2_info()
1265 param->reg_AC2 = 0xCC00B01B | trap_AC2; in get_ddr2_info()
1266 param->reg_DQSIC = 0x000000E2; in get_ddr2_info()
1267 param->reg_MRS = 0x00000C02 | trap_MRS; in get_ddr2_info()
1268 param->reg_EMRS = 0x00000040; in get_ddr2_info()
1269 param->reg_DRV = 0x000000FA; in get_ddr2_info()
1270 param->reg_IOZ = 0x00000034; in get_ddr2_info()
1271 param->reg_DQIDLY = 0x00000089; in get_ddr2_info()
1272 param->reg_FREQ = 0x00005040; in get_ddr2_info()
1273 param->madj_max = 96; in get_ddr2_info()
1274 param->dll2_finetune_step = 4; in get_ddr2_info()
1276 switch (param->dram_chipid) { in get_ddr2_info()
1278 param->reg_AC2 = 0xCC00B016 | trap_AC2; in get_ddr2_info()
1282 param->reg_AC2 = 0xCC00B01B | trap_AC2; in get_ddr2_info()
1285 param->reg_AC2 = 0xCC00B02B | trap_AC2; in get_ddr2_info()
1288 param->reg_AC2 = 0xCC00B03F | trap_AC2; in get_ddr2_info()
1296 param->wodt = 1; in get_ddr2_info()
1297 param->rodt = 0; in get_ddr2_info()
1298 param->reg_AC1 = 0x33302714; in get_ddr2_info()
1299 param->reg_AC2 = 0xCC00B01B | trap_AC2; in get_ddr2_info()
1300 param->reg_DQSIC = 0x000000E2; in get_ddr2_info()
1301 param->reg_MRS = 0x00000C02 | trap_MRS; in get_ddr2_info()
1302 param->reg_EMRS = 0x00000040; in get_ddr2_info()
1303 param->reg_DRV = 0x000000FA; in get_ddr2_info()
1304 param->reg_IOZ = 0x00000034; in get_ddr2_info()
1305 param->reg_DQIDLY = 0x00000089; in get_ddr2_info()
1306 param->reg_FREQ = 0x000050C0; in get_ddr2_info()
1307 param->madj_max = 96; in get_ddr2_info()
1308 param->dll2_finetune_step = 4; in get_ddr2_info()
1310 switch (param->dram_chipid) { in get_ddr2_info()
1312 param->reg_AC2 = 0xCC00B016 | trap_AC2; in get_ddr2_info()
1316 param->reg_AC2 = 0xCC00B01B | trap_AC2; in get_ddr2_info()
1319 param->reg_AC2 = 0xCC00B02B | trap_AC2; in get_ddr2_info()
1322 param->reg_AC2 = 0xCC00B03F | trap_AC2; in get_ddr2_info()
1329 param->wodt = 0; in get_ddr2_info()
1330 param->reg_AC1 = 0x33302815; in get_ddr2_info()
1331 param->reg_AC2 = 0xCD44B01E; in get_ddr2_info()
1332 param->reg_DQSIC = 0x000000FC; in get_ddr2_info()
1333 param->reg_MRS = 0x00000E72; in get_ddr2_info()
1334 param->reg_EMRS = 0x00000000; in get_ddr2_info()
1335 param->reg_DRV = 0x00000000; in get_ddr2_info()
1336 param->reg_IOZ = 0x00000034; in get_ddr2_info()
1337 param->reg_DQIDLY = 0x00000097; in get_ddr2_info()
1338 param->reg_FREQ = 0x000052C0; in get_ddr2_info()
1339 param->madj_max = 88; in get_ddr2_info()
1340 param->dll2_finetune_step = 3; in get_ddr2_info()
1344 param->wodt = 1; in get_ddr2_info()
1345 param->rodt = 1; in get_ddr2_info()
1346 param->reg_AC1 = 0x33302815; in get_ddr2_info()
1347 param->reg_AC2 = 0xDE44C022; in get_ddr2_info()
1348 param->reg_DQSIC = 0x00000117; in get_ddr2_info()
1349 param->reg_MRS = 0x00000E72; in get_ddr2_info()
1350 param->reg_EMRS = 0x00000040; in get_ddr2_info()
1351 param->reg_DRV = 0x0000000A; in get_ddr2_info()
1352 param->reg_IOZ = 0x00000045; in get_ddr2_info()
1353 param->reg_DQIDLY = 0x000000A0; in get_ddr2_info()
1354 param->reg_FREQ = 0x000054C0; in get_ddr2_info()
1355 param->madj_max = 79; in get_ddr2_info()
1356 param->dll2_finetune_step = 3; in get_ddr2_info()
1360 param->wodt = 1; in get_ddr2_info()
1361 param->rodt = 1; in get_ddr2_info()
1362 param->reg_AC1 = 0x33302815; in get_ddr2_info()
1363 param->reg_AC2 = 0xEF44D024; in get_ddr2_info()
1364 param->reg_DQSIC = 0x00000125; in get_ddr2_info()
1365 param->reg_MRS = 0x00000E72; in get_ddr2_info()
1366 param->reg_EMRS = 0x00000004; in get_ddr2_info()
1367 param->reg_DRV = 0x000000F9; in get_ddr2_info()
1368 param->reg_IOZ = 0x00000045; in get_ddr2_info()
1369 param->reg_DQIDLY = 0x000000A7; in get_ddr2_info()
1370 param->reg_FREQ = 0x000055C0; in get_ddr2_info()
1371 param->madj_max = 76; in get_ddr2_info()
1372 param->dll2_finetune_step = 3; in get_ddr2_info()
1376 param->wodt = 1; in get_ddr2_info()
1377 param->rodt = 1; in get_ddr2_info()
1378 param->reg_AC1 = 0x43402915; in get_ddr2_info()
1379 param->reg_AC2 = 0xFF44E025; in get_ddr2_info()
1380 param->reg_DQSIC = 0x00000132; in get_ddr2_info()
1381 param->reg_MRS = 0x00000E72; in get_ddr2_info()
1382 param->reg_EMRS = 0x00000040; in get_ddr2_info()
1383 param->reg_DRV = 0x0000000A; in get_ddr2_info()
1384 param->reg_IOZ = 0x00000045; in get_ddr2_info()
1385 param->reg_DQIDLY = 0x000000AD; in get_ddr2_info()
1386 param->reg_FREQ = 0x000056C0; in get_ddr2_info()
1387 param->madj_max = 76; in get_ddr2_info()
1388 param->dll2_finetune_step = 3; in get_ddr2_info()
1392 param->wodt = 1; in get_ddr2_info()
1393 param->rodt = 1; in get_ddr2_info()
1394 param->reg_AC1 = 0x43402915; in get_ddr2_info()
1395 param->reg_AC2 = 0xFF44E027; in get_ddr2_info()
1396 param->reg_DQSIC = 0x0000013F; in get_ddr2_info()
1397 param->reg_MRS = 0x00000E72; in get_ddr2_info()
1398 param->reg_EMRS = 0x00000004; in get_ddr2_info()
1399 param->reg_DRV = 0x000000F5; in get_ddr2_info()
1400 param->reg_IOZ = 0x00000045; in get_ddr2_info()
1401 param->reg_DQIDLY = 0x000000B3; in get_ddr2_info()
1402 param->reg_FREQ = 0x000057C0; in get_ddr2_info()
1403 param->madj_max = 76; in get_ddr2_info()
1404 param->dll2_finetune_step = 3; in get_ddr2_info()
1408 switch (param->dram_chipid) { in get_ddr2_info()
1410 param->dram_config = 0x100; in get_ddr2_info()
1414 param->dram_config = 0x121; in get_ddr2_info()
1417 param->dram_config = 0x122; in get_ddr2_info()
1420 param->dram_config = 0x123; in get_ddr2_info()
1424 switch (param->vram_size) { in get_ddr2_info()
1427 param->dram_config |= 0x00; in get_ddr2_info()
1430 param->dram_config |= 0x04; in get_ddr2_info()
1433 param->dram_config |= 0x08; in get_ddr2_info()
1436 param->dram_config |= 0x0c; in get_ddr2_info()
1441 static void ddr2_init(struct ast_device *ast, struct ast2300_dram_param *param) in ddr2_init() argument
1449 ast_moutdwm(ast, 0x1E6E0064, param->reg_MADJ); in ddr2_init()
1450 ast_moutdwm(ast, 0x1E6E0068, param->reg_SADJ); in ddr2_init()
1452 ast_moutdwm(ast, 0x1E6E0064, param->reg_MADJ | 0xC0000); in ddr2_init()
1455 ast_moutdwm(ast, 0x1E6E0004, param->dram_config); in ddr2_init()
1457 ast_moutdwm(ast, 0x1E6E0010, param->reg_AC1); in ddr2_init()
1458 ast_moutdwm(ast, 0x1E6E0014, param->reg_AC2); in ddr2_init()
1459 ast_moutdwm(ast, 0x1E6E0020, param->reg_DQSIC); in ddr2_init()
1462 ast_moutdwm(ast, 0x1E6E0088, param->reg_DQIDLY); in ddr2_init()
1473 ast_moutdwm(ast, 0x1E6E0060, param->reg_DRV); in ddr2_init()
1474 ast_moutdwm(ast, 0x1E6E006C, param->reg_IOZ); in ddr2_init()
1488 if ((data2 & 0xff) > param->madj_max) { in ddr2_init()
1523 ast_moutdwm(ast, 0x1E6E002C, param->reg_MRS | 0x100); in ddr2_init()
1524 ast_moutdwm(ast, 0x1E6E0030, param->reg_EMRS); in ddr2_init()
1531 ast_moutdwm(ast, 0x1E6E002C, param->reg_MRS); in ddr2_init()
1533 ast_moutdwm(ast, 0x1E6E0030, param->reg_EMRS | 0x380); in ddr2_init()
1535 ast_moutdwm(ast, 0x1E6E0030, param->reg_EMRS); in ddr2_init()
1540 if (param->wodt) { in ddr2_init()
1543 if (param->rodt) { in ddr2_init()
1544 data = data | 0x3000 | ((param->reg_AC2 & 0x60000) >> 3); in ddr2_init()
1547 ast_moutdwm(ast, 0x1E6E0120, param->reg_FREQ); in ddr2_init()
1550 if ((cbr_dll2(ast, param) == false) && (retry++ < 10)) in ddr2_init()
1569 struct ast2300_dram_param param; in ast_post_chip_2300() local
1592 param.dram_freq = 396; in ast_post_chip_2300()
1593 param.dram_type = AST_DDR3; in ast_post_chip_2300()
1596 param.dram_type = AST_DDR2; in ast_post_chip_2300()
1599 param.dram_chipid = AST_DRAM_512Mx16; in ast_post_chip_2300()
1603 param.dram_chipid = AST_DRAM_1Gx16; in ast_post_chip_2300()
1606 param.dram_chipid = AST_DRAM_2Gx16; in ast_post_chip_2300()
1609 param.dram_chipid = AST_DRAM_4Gx16; in ast_post_chip_2300()
1615 param.vram_size = AST_VIDMEM_SIZE_8M; in ast_post_chip_2300()
1619 param.vram_size = AST_VIDMEM_SIZE_16M; in ast_post_chip_2300()
1623 param.vram_size = AST_VIDMEM_SIZE_32M; in ast_post_chip_2300()
1627 param.vram_size = AST_VIDMEM_SIZE_64M; in ast_post_chip_2300()
1631 if (param.dram_type == AST_DDR3) { in ast_post_chip_2300()
1632 get_ddr3_info(ast, &param); in ast_post_chip_2300()
1633 ddr3_init(ast, &param); in ast_post_chip_2300()
1635 get_ddr2_info(ast, &param); in ast_post_chip_2300()
1636 ddr2_init(ast, &param); in ast_post_chip_2300()
1780 u32 addr, data, param; in set_mpll_2500() local
1795 param = 0x930023E0; in set_mpll_2500()
1799 param = 0x93002400; in set_mpll_2500()
1801 ast_moutdwm(ast, 0x1E6E2020, param); in set_mpll_2500()