Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106294
b: refs/heads/master
c: 0138da6
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Jul 19, 2008
1 parent e295f24 commit 61046f2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc2e16bd35f6d78f559467358259e7d7264d4e96
refs/heads/master: 0138da6101fa3cdfea7f470d014c2f13cc03e7a9
21 changes: 20 additions & 1 deletion trunk/include/asm-blackfin/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,26 @@ unsigned long get_wchan(struct task_struct *p);
static inline uint32_t __pure bfin_revid(void)
{
/* stored in the upper 4 bits */
return bfin_read_CHIPID() >> 28;
uint32_t revid = bfin_read_CHIPID() >> 28;

#ifdef CONFIG_BF52x
/* ANOMALY_05000357
* Incorrect Revision Number in DSPID Register
*/
if (revid == 0)
switch (bfin_read16(_BOOTROM_GET_DXE_ADDRESS_TWI)) {
case 0x0010:
revid = 0;
break;
case 0x2796:
revid = 1;
break;
default:
revid = 0xFFFF;
break;
}
#endif
return revid;
}

static inline uint32_t __pure bfin_compiled_revid(void)
Expand Down

0 comments on commit 61046f2

Please sign in to comment.