diff options
| author | Tom Rini <trini@ti.com> | 2012-07-30 11:49:47 -0700 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-01 14:58:13 +0200 | 
| commit | a74f0c7cb505d3e2184bfd2ab42c3a6e45a1d54a (patch) | |
| tree | 23885e01becaecb7258d20cb9077c4831877539f /arch/arm/cpu/armv7/am33xx/ddr.c | |
| parent | 82afcc9efd4a734f550381fab311644de2c4c524 (diff) | |
| download | olio-uboot-2014.01-a74f0c7cb505d3e2184bfd2ab42c3a6e45a1d54a.tar.xz olio-uboot-2014.01-a74f0c7cb505d3e2184bfd2ab42c3a6e45a1d54a.zip | |
am33xx: Correct and clean up ddr_regs struct
The ddr_regs struct was incorrectly offset after the dt0wiratio0 entry.
Correct this by documenting a missing register that will be used at some
point in the future (when write leveling is supported).  Further, the
cmdNcs{force,delay} fields are undocumented and we have been setting
them to zero, remove.  Next, setting of the
'DATAn_REG_PHY_USE_RANK0_DELAYS field belongs with the rest of the
ddr_data entries, so program it there.  Finally, comment on how we are
configuring the DATA1 registers that correspond to the DATA0 (dt0)
registers defined in the struct.
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx/ddr.c')
| -rw-r--r-- | arch/arm/cpu/armv7/am33xx/ddr.c | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/arch/arm/cpu/armv7/am33xx/ddr.c b/arch/arm/cpu/armv7/am33xx/ddr.c index 59ca51f59..bceed8150 100644 --- a/arch/arm/cpu/armv7/am33xx/ddr.c +++ b/arch/arm/cpu/armv7/am33xx/ddr.c @@ -77,20 +77,14 @@ void config_ddr_phy(const struct emif_regs *regs)  void config_cmd_ctrl(const struct cmd_control *cmd)  {  	writel(cmd->cmd0csratio, &ddr_reg[0]->cm0csratio); -	writel(cmd->cmd0csforce, &ddr_reg[0]->cm0csforce); -	writel(cmd->cmd0csdelay, &ddr_reg[0]->cm0csdelay);  	writel(cmd->cmd0dldiff, &ddr_reg[0]->cm0dldiff);  	writel(cmd->cmd0iclkout, &ddr_reg[0]->cm0iclkout);  	writel(cmd->cmd1csratio, &ddr_reg[0]->cm1csratio); -	writel(cmd->cmd1csforce, &ddr_reg[0]->cm1csforce); -	writel(cmd->cmd1csdelay, &ddr_reg[0]->cm1csdelay);  	writel(cmd->cmd1dldiff, &ddr_reg[0]->cm1dldiff);  	writel(cmd->cmd1iclkout, &ddr_reg[0]->cm1iclkout);  	writel(cmd->cmd2csratio, &ddr_reg[0]->cm2csratio); -	writel(cmd->cmd2csforce, &ddr_reg[0]->cm2csforce); -	writel(cmd->cmd2csdelay, &ddr_reg[0]->cm2csdelay);  	writel(cmd->cmd2dldiff, &ddr_reg[0]->cm2dldiff);  	writel(cmd->cmd2iclkout, &ddr_reg[0]->cm2iclkout);  } @@ -106,6 +100,7 @@ void config_ddr_data(int macrono, const struct ddr_data *data)  	writel(data->datagiratio0, &ddr_reg[macrono]->dt0giratio0);  	writel(data->datafwsratio0, &ddr_reg[macrono]->dt0fwsratio0);  	writel(data->datawrsratio0, &ddr_reg[macrono]->dt0wrsratio0); +	writel(data->datauserank0delay, &ddr_reg[macrono]->dt0rdelays0);  	writel(data->datadldiff0, &ddr_reg[macrono]->dt0dldiff0);  } |