summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-07-17 02:06:20 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:12 +0200
commitc5c5f5378fc306bef37d69ed299c0002196316a5 (patch)
treecb4694febab3912920ec8a9297cb89695c9d7927 /drivers
parent5e837896344a6810b003442c4fbfd5cb5692745a (diff)
ddr: altera: Clean up scc_set_bypass_mode()
The mode argument of this function is not used at all, zap it. Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ddr/altera/sequencer.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
index 1122cfa71d..0b76ba29db 100644
--- a/drivers/ddr/altera/sequencer.c
+++ b/drivers/ddr/altera/sequencer.c
@@ -503,12 +503,15 @@ static void scc_mgr_zero_all(void)
writel(0, &sdr_scc_mgr->update);
}
-static void scc_set_bypass_mode(uint32_t write_group, uint32_t mode)
+/**
+ * scc_set_bypass_mode() - Set bypass mode and trigger SCC update
+ * @write_group: Write group
+ *
+ * Set bypass mode and trigger SCC update.
+ */
+static void scc_set_bypass_mode(const u32 write_group)
{
- /* mode = 0 : Do NOT bypass - Half Rate Mode */
- /* mode = 1 : Bypass - Full Rate Mode */
-
- /* only need to set once for all groups, pins, dq, dqs, dm */
+ /* Only needed once to set all groups, pins, DQ, DQS, DM. */
if (write_group == 0) {
debug_cond(DLEVEL == 1, "%s:%d Setting HHP Extras\n", __func__,
__LINE__);
@@ -516,17 +519,18 @@ static void scc_set_bypass_mode(uint32_t write_group, uint32_t mode)
debug_cond(DLEVEL == 1, "%s:%d Done Setting HHP Extras\n",
__func__, __LINE__);
}
- /* multicast to all DQ enables */
+
+ /* Multicast to all DQ enables. */
writel(0xff, &sdr_scc_mgr->dq_ena);
writel(0xff, &sdr_scc_mgr->dm_ena);
- /* update current DQS IO enable */
+ /* Update current DQS IO enable. */
writel(0, &sdr_scc_mgr->dqs_io_ena);
- /* update the DQS logic */
+ /* Update the DQS logic. */
writel(write_group, &sdr_scc_mgr->dqs_ena);
- /* hit update */
+ /* Hit update. */
writel(0, &sdr_scc_mgr->update);
}
@@ -3314,11 +3318,10 @@ static uint32_t mem_calibrate(void)
mem_config();
- uint32_t bypass_mode = 0x1;
for (i = 0; i < RW_MGR_MEM_IF_READ_DQS_WIDTH; i++) {
writel(i, SDR_PHYGRP_SCCGRP_ADDRESS |
SCC_MGR_GROUP_COUNTER_OFFSET);
- scc_set_bypass_mode(i, bypass_mode);
+ scc_set_bypass_mode(i);
}
if ((dyn_calib_steps & CALIB_SKIP_ALL) == CALIB_SKIP_ALL) {