|
@@ -58,7 +58,7 @@ EXPORT_SYMBOL_GPL(ath79_ddr_ctrl_init);
|
|
|
|
|
|
void ath79_ddr_wb_flush(u32 reg)
|
|
void ath79_ddr_wb_flush(u32 reg)
|
|
{
|
|
{
|
|
- void __iomem *flush_reg = ath79_ddr_wb_flush_base + reg;
|
|
|
|
|
|
+ void __iomem *flush_reg = ath79_ddr_wb_flush_base + (reg * 4);
|
|
|
|
|
|
/* Flush the DDR write buffer. */
|
|
/* Flush the DDR write buffer. */
|
|
__raw_writel(0x1, flush_reg);
|
|
__raw_writel(0x1, flush_reg);
|