aboutsummaryrefslogtreecommitdiff
path: root/arch/blackfin/include/asm/processor.h
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2009-04-23 14:15:04 +0000
committerMike Frysinger <vapier@gentoo.org>2009-06-12 06:11:28 -0400
commitbc4d6f36db4b24bf328a5fd70038a2e609b9f028 (patch)
tree68a2eb845ea54fe14721a8a4a18d116fdb0d0748 /arch/blackfin/include/asm/processor.h
parentfecbd7366bf5a39eaae2c03541f0b412f319534f (diff)
Blackfin: document anomaly 05000234 workaround
Note the reason for using CHIPD over DSPID. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/processor.h')
-rw-r--r--arch/blackfin/include/asm/processor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/include/asm/processor.h b/arch/blackfin/include/asm/processor.h
index 0eece23b41c..3040415523b 100644
--- a/arch/blackfin/include/asm/processor.h
+++ b/arch/blackfin/include/asm/processor.h
@@ -131,8 +131,8 @@ unsigned long get_wchan(struct task_struct *p);
/* Get the Silicon Revision of the chip */
static inline uint32_t __pure bfin_revid(void)
{
- /* stored in the upper 4 bits */
- uint32_t revid = bfin_read_CHIPID() >> 28;
+ /* Always use CHIPID, to work around ANOMALY_05000234 */
+ uint32_t revid = (bfin_read_CHIPID() & CHIPID_VERSION) >> 28;
#ifdef CONFIG_BF52x
/* ANOMALY_05000357