mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
ddr: altera: Minor rw_mgr_mem_calibrate_read_load_patterns() cleanup
Just do an easy data type cleanup of this function, no functional change. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
16cfc4b987
commit
b6cb7f9edd
1 changed files with 14 additions and 6 deletions
|
@ -1114,15 +1114,23 @@ static uint32_t rw_mgr_mem_calibrate_read_test_patterns_all_ranks
|
||||||
num_tries, bit_chk, 1);
|
num_tries, bit_chk, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* load up the patterns we are going to use during a read test */
|
/**
|
||||||
static void rw_mgr_mem_calibrate_read_load_patterns(uint32_t rank_bgn,
|
* rw_mgr_mem_calibrate_read_load_patterns() - Load up the patterns for read test
|
||||||
uint32_t all_ranks)
|
* @rank_bgn: Rank number
|
||||||
|
* @all_ranks: Test all ranks
|
||||||
|
*
|
||||||
|
* Load up the patterns we are going to use during a read test.
|
||||||
|
*/
|
||||||
|
static void rw_mgr_mem_calibrate_read_load_patterns(const u32 rank_bgn,
|
||||||
|
const int all_ranks)
|
||||||
{
|
{
|
||||||
uint32_t r;
|
const u32 rank_end = all_ranks ?
|
||||||
uint32_t rank_end = all_ranks ? RW_MGR_MEM_NUMBER_OF_RANKS :
|
RW_MGR_MEM_NUMBER_OF_RANKS :
|
||||||
(rank_bgn + NUM_RANKS_PER_SHADOW_REG);
|
(rank_bgn + NUM_RANKS_PER_SHADOW_REG);
|
||||||
|
u32 r;
|
||||||
|
|
||||||
debug("%s:%d\n", __func__, __LINE__);
|
debug("%s:%d\n", __func__, __LINE__);
|
||||||
|
|
||||||
for (r = rank_bgn; r < rank_end; r++) {
|
for (r = rank_bgn; r < rank_end; r++) {
|
||||||
if (param->skip_ranks[r])
|
if (param->skip_ranks[r])
|
||||||
/* request to skip the rank */
|
/* request to skip the rank */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue