mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
Blackfin: add workaround for anomaly 05000287
Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
1fa9be72b5
commit
8af7ffa0d5
1 changed files with 8 additions and 1 deletions
|
@ -55,7 +55,14 @@ void __cpuinit bfin_dcache_init(struct cplb_entry *dcplb_tbl)
|
||||||
}
|
}
|
||||||
|
|
||||||
ctrl = bfin_read_DMEM_CONTROL();
|
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);
|
bfin_write_DMEM_CONTROL(ctrl);
|
||||||
SSYNC();
|
SSYNC();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue