mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-23 23:51:34 +00:00
ddr: altera: Clean up rw_mgr_mem_calibrate_write_test_issue()
Brief clean, add kerneldoc. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
4a82854b07
commit
8371c2ee68
1 changed files with 18 additions and 13 deletions
|
@ -1032,19 +1032,23 @@ static void rw_mgr_mem_handoff(void)
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* issue write test command.
|
/**
|
||||||
* two variants are provided. one that just tests a write pattern and
|
* rw_mgr_mem_calibrate_write_test_issue() - Issue write test command
|
||||||
* another that tests datamask functionality.
|
* @group: Write Group
|
||||||
|
* @use_dm: Use DM
|
||||||
|
*
|
||||||
|
* Issue write test command. Two variants are provided, one that just tests
|
||||||
|
* a write pattern and another that tests datamask functionality.
|
||||||
*/
|
*/
|
||||||
static void rw_mgr_mem_calibrate_write_test_issue(uint32_t group,
|
static void rw_mgr_mem_calibrate_write_test_issue(u32 group,
|
||||||
uint32_t test_dm)
|
u32 test_dm)
|
||||||
{
|
{
|
||||||
uint32_t mcc_instruction;
|
const u32 quick_write_mode =
|
||||||
uint32_t quick_write_mode = (((STATIC_CALIB_STEPS) & CALIB_SKIP_WRITES) &&
|
(STATIC_CALIB_STEPS & CALIB_SKIP_WRITES) &&
|
||||||
ENABLE_SUPER_QUICK_CALIBRATION);
|
ENABLE_SUPER_QUICK_CALIBRATION;
|
||||||
uint32_t rw_wl_nop_cycles;
|
u32 mcc_instruction;
|
||||||
uint32_t addr;
|
u32 rw_wl_nop_cycles;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set counter and jump addresses for the right
|
* Set counter and jump addresses for the right
|
||||||
|
@ -1164,8 +1168,9 @@ static void rw_mgr_mem_calibrate_write_test_issue(uint32_t group,
|
||||||
&sdr_rw_load_jump_mgr_regs->load_jump_add1);
|
&sdr_rw_load_jump_mgr_regs->load_jump_add1);
|
||||||
}
|
}
|
||||||
|
|
||||||
addr = SDR_PHYGRP_RWMGRGRP_ADDRESS | RW_MGR_RUN_SINGLE_GROUP_OFFSET;
|
writel(mcc_instruction, (SDR_PHYGRP_RWMGRGRP_ADDRESS |
|
||||||
writel(mcc_instruction, addr + (group << 2));
|
RW_MGR_RUN_SINGLE_GROUP_OFFSET) +
|
||||||
|
(group << 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue