diff options
author | Marek Vasut <marex@denx.de> | 2015-07-26 11:07:19 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 14:14:14 +0200 |
commit | f936f94f8070133fbf8195e5349d7eeed9dd70ec (patch) | |
tree | 76513c2d887ad3a3f8f3b0ee85981f114deebf80 /drivers | |
parent | ecd2334a1759fe671396596a2958dbc1741e1910 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ddr/altera/sequencer.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index 35ecc67560..8c56f02c16 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -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) { /* - * 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 - * we always jump + * we always jump. */ writel(0xff, &sdr_rw_load_mgr_regs->load_cntr0); writel(RW_MGR_RETURN, &sdr_rw_load_jump_mgr_regs->load_jump_add0); |