mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
ddr: altera: Minor clean up of set_jump_as_return()
Add kerneldoc and do a minor comment cleanup. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
ecd2334a17
commit
f936f94f80
1 changed files with 8 additions and 4 deletions
|
@ -732,14 +732,18 @@ scc_mgr_apply_group_all_out_delay_add_all_ranks(const u32 write_group,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* optimization used to recover some slots in ddr3 inst_rom */
|
/**
|
||||||
/* could be applied to other protocols if we wanted to */
|
* set_jump_as_return() - Return instruction optimization
|
||||||
|
*
|
||||||
|
* Optimization used to recover some slots in ddr3 inst_rom could be
|
||||||
|
* applied to other protocols if we wanted to
|
||||||
|
*/
|
||||||
static void set_jump_as_return(void)
|
static void set_jump_as_return(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* to save space, we replace return with jump to special shared
|
* To save space, we replace return with jump to special shared
|
||||||
* RETURN instruction so we set the counter to large value so that
|
* RETURN instruction so we set the counter to large value so that
|
||||||
* we always jump
|
* we always jump.
|
||||||
*/
|
*/
|
||||||
writel(0xff, &sdr_rw_load_mgr_regs->load_cntr0);
|
writel(0xff, &sdr_rw_load_mgr_regs->load_cntr0);
|
||||||
writel(RW_MGR_RETURN, &sdr_rw_load_jump_mgr_regs->load_jump_add0);
|
writel(RW_MGR_RETURN, &sdr_rw_load_jump_mgr_regs->load_jump_add0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue