Lines Matching refs:emc_dbg
36 #define emc_dbg(emc, flags, ...) dev_dbg(emc->dev, __VA_ARGS__) macro
108 emc_dbg(emc, EMA_UPDATES, "%s: (s=%u) EMA: %u\n", \
262 emc_dbg(emc, PER_TRAIN, "Periodic training starting\n"); in tegra210_emc_r21021_periodic_compensation()
311 emc_dbg(emc, EMA_WRITES, "0x%08x <= 0x%08x\n", in tegra210_emc_r21021_periodic_compensation()
368 u32 emc_dbg, emc_cfg_pipe_clk, emc_pin; in tegra210_emc_r21021_set_clock() local
376 emc_dbg(emc, INFO, "Running clock change.\n"); in tegra210_emc_r21021_set_clock()
413 emc_dbg = emc_readl(emc, EMC_DBG); in tegra210_emc_r21021_set_clock()
427 emc_dbg(emc, INFO, "Clock change version: %d\n", in tegra210_emc_r21021_set_clock()
429 emc_dbg(emc, INFO, "DRAM type = %d\n", dram_type); in tegra210_emc_r21021_set_clock()
430 emc_dbg(emc, INFO, "DRAM dev #: %u\n", emc->num_devices); in tegra210_emc_r21021_set_clock()
431 emc_dbg(emc, INFO, "Next EMC clksrc: 0x%08x\n", clksrc); in tegra210_emc_r21021_set_clock()
432 emc_dbg(emc, INFO, "DLL clksrc: 0x%08x\n", next->dll_clk_src); in tegra210_emc_r21021_set_clock()
433 emc_dbg(emc, INFO, "last rate: %u, next rate %u\n", last->rate, in tegra210_emc_r21021_set_clock()
435 emc_dbg(emc, INFO, "last period: %u, next period: %u\n", in tegra210_emc_r21021_set_clock()
437 emc_dbg(emc, INFO, " shared_zq_resistor: %d\n", !!shared_zq_resistor); in tegra210_emc_r21021_set_clock()
438 emc_dbg(emc, INFO, " num_channels: %u\n", emc->num_channels); in tegra210_emc_r21021_set_clock()
439 emc_dbg(emc, INFO, " opt_dll_mode: %d\n", opt_dll_mode); in tegra210_emc_r21021_set_clock()
445 emc_dbg(emc, STEPS, "Step 1\n"); in tegra210_emc_r21021_set_clock()
446 emc_dbg(emc, STEPS, "Step 1.1: Disable DLL temporarily.\n"); in tegra210_emc_r21021_set_clock()
458 emc_dbg(emc, STEPS, "Step 1.2: Disable AUTOCAL temporarily.\n"); in tegra210_emc_r21021_set_clock()
469 emc_dbg(emc, STEPS, "Step 1.3: Disable other power features.\n"); in tegra210_emc_r21021_set_clock()
568 emc_dbg(emc, STEPS, "Step 2\n"); in tegra210_emc_r21021_set_clock()
572 emc_dbg(emc, INFO, "Prelock enabled for target frequency.\n"); in tegra210_emc_r21021_set_clock()
574 emc_dbg(emc, INFO, "DLL out: 0x%03x\n", value); in tegra210_emc_r21021_set_clock()
576 emc_dbg(emc, INFO, "Disabling DLL for target frequency.\n"); in tegra210_emc_r21021_set_clock()
584 emc_dbg(emc, STEPS, "Step 3\n"); in tegra210_emc_r21021_set_clock()
604 emc_dbg(emc, STEPS, "Step 4\n"); in tegra210_emc_r21021_set_clock()
615 emc_dbg(emc, STEPS, "Step 5\n"); in tegra210_emc_r21021_set_clock()
632 emc_dbg(emc, STEPS, "Step 6\n"); in tegra210_emc_r21021_set_clock()
638 emc_dbg(emc, STEPS, "Step 7\n"); in tegra210_emc_r21021_set_clock()
639 emc_dbg(emc, SUB_STEPS, "Step 7.1: Bug 200024907 - Patch RP R2P"); in tegra210_emc_r21021_set_clock()
672 emc_dbg(emc, INFO, "tRTM = %u, EMC_RP = %u\n", tRTM, in tegra210_emc_r21021_set_clock()
723 emc_dbg(emc, INFO, "Skipped WAR\n"); in tegra210_emc_r21021_set_clock()
745 emc_dbg(emc, STEPS, "Step 8\n"); in tegra210_emc_r21021_set_clock()
746 emc_dbg(emc, SUB_STEPS, "Writing burst_regs\n"); in tegra210_emc_r21021_set_clock()
825 emc_dbg(emc, SUB_STEPS, "Writing burst_regs_per_ch\n"); in tegra210_emc_r21021_set_clock()
851 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
859 emc_dbg(emc, SUB_STEPS, "Writing vref_regs\n"); in tegra210_emc_r21021_set_clock()
871 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
878 emc_dbg(emc, SUB_STEPS, "Writing trim_regs\n"); in tegra210_emc_r21021_set_clock()
898 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
900 emc_dbg(emc, EMA_WRITES, "0x%08x <= 0x%08x\n", in tegra210_emc_r21021_set_clock()
904 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
911 emc_dbg(emc, SUB_STEPS, "Writing trim_regs_per_ch\n"); in tegra210_emc_r21021_set_clock()
938 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
940 emc_dbg(emc, EMA_WRITES, "0x%08x <= 0x%08x\n", offset, in tegra210_emc_r21021_set_clock()
944 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
951 emc_dbg(emc, SUB_STEPS, "Writing burst_mc_regs\n"); in tegra210_emc_r21021_set_clock()
957 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
966 emc_dbg(emc, SUB_STEPS, "Writing la_scale_regs\n"); in tegra210_emc_r21021_set_clock()
969 emc_dbg(emc, REG_LISTS, "(%u) 0x%08x => 0x%08x\n", i, in tegra210_emc_r21021_set_clock()
982 emc_dbg(emc, STEPS, "Step 9\n"); in tegra210_emc_r21021_set_clock()
991 value = emc_dbg | (EMC_DBG_WRITE_MUX_ACTIVE | in tegra210_emc_r21021_set_clock()
996 emc_writel(emc, emc_dbg, EMC_DBG); in tegra210_emc_r21021_set_clock()
1003 emc_dbg(emc, STEPS, "Step 10\n"); in tegra210_emc_r21021_set_clock()
1100 emc_dbg(emc, STEPS, "Step 11\n"); in tegra210_emc_r21021_set_clock()
1104 value = emc_dbg | EMC_DBG_WRITE_MUX_ACTIVE | EMC_DBG_WRITE_ACTIVE_ONLY; in tegra210_emc_r21021_set_clock()
1114 emc_dbg(emc, STEPS, "Step 12\n"); in tegra210_emc_r21021_set_clock()
1124 emc_dbg(emc, STEPS, "Step 13\n"); in tegra210_emc_r21021_set_clock()
1127 ccfifo_writel(emc, emc_dbg, EMC_DBG, 0); in tegra210_emc_r21021_set_clock()
1133 emc_dbg(emc, STEPS, "Step 14\n"); in tegra210_emc_r21021_set_clock()
1150 emc_dbg(emc, STEPS, "Step 15\n"); in tegra210_emc_r21021_set_clock()
1162 emc_dbg(emc, INFO, "tZQCAL_lpddr4_fc_adj = %u\n", tZQCAL_lpddr4_fc_adj); in tegra210_emc_r21021_set_clock()
1163 emc_dbg(emc, INFO, "dst_clk_period = %u\n", in tegra210_emc_r21021_set_clock()
1165 emc_dbg(emc, INFO, "next->dram_timings[T_PDEX] = %u\n", in tegra210_emc_r21021_set_clock()
1167 emc_dbg(emc, INFO, "zq_latch_dvfs_wait_time = %d\n", in tegra210_emc_r21021_set_clock()
1239 emc_dbg(emc, STEPS, "Step 17\n"); in tegra210_emc_r21021_set_clock()
1248 emc_dbg(emc, STEPS, "Step 18\n"); in tegra210_emc_r21021_set_clock()
1269 emc_dbg(emc, STEPS, "Step 19\n"); in tegra210_emc_r21021_set_clock()
1329 emc_dbg(emc, STEPS, "Step 20\n"); in tegra210_emc_r21021_set_clock()
1343 emc_dbg(emc, STEPS, "Step 21\n"); in tegra210_emc_r21021_set_clock()
1346 ccfifo_writel(emc, emc_dbg | EMC_DBG_WRITE_MUX_ACTIVE, in tegra210_emc_r21021_set_clock()
1356 ccfifo_writel(emc, emc_dbg, EMC_DBG, 0); in tegra210_emc_r21021_set_clock()
1363 emc_dbg(emc, STEPS, "Step 22\n"); in tegra210_emc_r21021_set_clock()
1383 emc_dbg(emc, STEPS, "Step 23\n"); in tegra210_emc_r21021_set_clock()
1405 emc_dbg(emc, STEPS, "Step 25\n"); in tegra210_emc_r21021_set_clock()
1419 emc_dbg(emc, STEPS, "Step 26\n"); in tegra210_emc_r21021_set_clock()
1448 emc_dbg(emc, STEPS, "Step 27\n"); in tegra210_emc_r21021_set_clock()
1461 emc_dbg(emc, STEPS, "Step 28\n"); in tegra210_emc_r21021_set_clock()
1473 emc_dbg(emc, STEPS, "Step 29\n"); in tegra210_emc_r21021_set_clock()
1494 emc_dbg(emc, STEPS, "Step 30: Re-enable DLL and AUTOCAL\n"); in tegra210_emc_r21021_set_clock()