mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
ddr: altera: Clean up scc_mgr_zero_all()
Add kerneldoc, clean up datatypes and fix minor indentation issue. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -482,20 +482,21 @@ static void scc_mgr_set_hhp_extras(void)
|
|||||||
__func__, __LINE__);
|
__func__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* USER Zero all DQS config
|
* scc_mgr_zero_all() - Zero all DQS config
|
||||||
* TODO: maybe rename to scc_mgr_zero_dqs_config (or something)
|
*
|
||||||
|
* Zero all DQS config.
|
||||||
*/
|
*/
|
||||||
static void scc_mgr_zero_all(void)
|
static void scc_mgr_zero_all(void)
|
||||||
{
|
{
|
||||||
uint32_t i, r;
|
int i, r;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* USER Zero all DQS config settings, across all groups and all
|
* USER Zero all DQS config settings, across all groups and all
|
||||||
* shadow registers
|
* shadow registers
|
||||||
*/
|
*/
|
||||||
for (r = 0; r < RW_MGR_MEM_NUMBER_OF_RANKS; r +=
|
for (r = 0; r < RW_MGR_MEM_NUMBER_OF_RANKS;
|
||||||
NUM_RANKS_PER_SHADOW_REG) {
|
r += NUM_RANKS_PER_SHADOW_REG) {
|
||||||
for (i = 0; i < RW_MGR_MEM_IF_READ_DQS_WIDTH; i++) {
|
for (i = 0; i < RW_MGR_MEM_IF_READ_DQS_WIDTH; i++) {
|
||||||
/*
|
/*
|
||||||
* The phases actually don't exist on a per-rank basis,
|
* The phases actually don't exist on a per-rank basis,
|
||||||
@@ -509,12 +510,12 @@ static void scc_mgr_zero_all(void)
|
|||||||
|
|
||||||
for (i = 0; i < RW_MGR_MEM_IF_WRITE_DQS_WIDTH; i++) {
|
for (i = 0; i < RW_MGR_MEM_IF_WRITE_DQS_WIDTH; i++) {
|
||||||
scc_mgr_set_dqdqs_output_phase(i, 0);
|
scc_mgr_set_dqdqs_output_phase(i, 0);
|
||||||
/* av/cv don't have out2 */
|
/* Arria V/Cyclone V don't have out2. */
|
||||||
scc_mgr_set_oct_out1_delay(i, IO_DQS_OUT_RESERVE);
|
scc_mgr_set_oct_out1_delay(i, IO_DQS_OUT_RESERVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* multicast to all DQS group enables */
|
/* Multicast to all DQS group enables. */
|
||||||
writel(0xff, &sdr_scc_mgr->dqs_ena);
|
writel(0xff, &sdr_scc_mgr->dqs_ena);
|
||||||
writel(0, &sdr_scc_mgr->update);
|
writel(0, &sdr_scc_mgr->update);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user