Skip to content

Commit

Permalink
Blackfin: work around anomaly 05000287
Browse files Browse the repository at this point in the history
Make sure we work around anomaly 05000287 by configuring different port
preferences for the data cache.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Graf Yang authored and Mike Frysinger committed Jun 12, 2009
1 parent a9a59e3 commit e522c84
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/blackfin/kernel/cplb-mpu/cacheinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ void __cpuinit bfin_dcache_init(struct cplb_entry *dcplb_tbl)
}

ctrl = bfin_read_DMEM_CONTROL();
ctrl |= DMEM_CNTR;

/*
* Anomaly notes:
* 05000287 - We implement workaround #2 - Change the DMEM_CONTROL
* register, so that the port preferences for DAG0 and DAG1 are set
* to port B
*/
ctrl |= DMEM_CNTR | PORT_PREF0 | (ANOMALY_05000287 ? PORT_PREF1 : 0);
bfin_write_DMEM_CONTROL(ctrl);
SSYNC();
}
Expand Down

0 comments on commit e522c84

Please sign in to comment.