Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355234
b: refs/heads/master
c: b5bbd41
h: refs/heads/master
v: v3
  • Loading branch information
Maxime Coquelin authored and Linus Walleij committed Jan 29, 2013
1 parent b2005a4 commit 1c19314
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: 222e8500f5e75d578ce1cc38c0349f89646319c4
refs/heads/master: b5bbd41784cb607dd4499e893a660a04873d830b
21 changes: 20 additions & 1 deletion trunk/arch/arm/mach-ux500/include/mach/id.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,14 @@ static inline bool __attribute_const__ cpu_is_u8540(void)
return dbx500_partnumber() == 0x8540;
}

static inline bool __attribute_const__ cpu_is_u8580(void)
{
return dbx500_partnumber() == 0x8580;
}

static inline bool cpu_is_ux540_family(void)
{
return cpu_is_u9540() || cpu_is_u8540();
return cpu_is_u9540() || cpu_is_u8540() || cpu_is_u8580();
}

/*
Expand Down Expand Up @@ -115,6 +120,20 @@ static inline bool cpu_is_u8500v20_or_later(void)
return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11());
}

/*
* 8540 revisions
*/

static inline bool __attribute_const__ cpu_is_u8540v10(void)
{
return cpu_is_u8540() && dbx500_revision() == 0xA0;
}

static inline bool __attribute_const__ cpu_is_u8580v10(void)
{
return cpu_is_u8580() && dbx500_revision() == 0xA0;
}

static inline bool ux500_is_svp(void)
{
return false;
Expand Down

0 comments on commit 1c19314

Please sign in to comment.