Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263582
b: refs/heads/master
c: 2a004c6
h: refs/heads/master
v: v3
  • Loading branch information
Petr Štetiar authored and Russell King committed Aug 15, 2011
1 parent 6f73191 commit 4b8b212
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e426f8e39bb612bfdd38fa7a75d10ba95787d1af
refs/heads/master: 2a004c686e7997ddb795dbce10b263e241f9bdaf
12 changes: 12 additions & 0 deletions trunk/arch/arm/mach-ep93xx/include/mach/ts72xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#define TS72XX_MODEL_TS7200 0x00
#define TS72XX_MODEL_TS7250 0x01
#define TS72XX_MODEL_TS7260 0x02
#define TS72XX_MODEL_TS7300 0x03
#define TS72XX_MODEL_TS7400 0x04


#define TS72XX_OPTIONS_PHYS_BASE 0x22400000
Expand Down Expand Up @@ -66,6 +68,16 @@ static inline int board_is_ts7260(void)
return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7260;
}

static inline int board_is_ts7300(void)
{
return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7300;
}

static inline int board_is_ts7400(void)
{
return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7400;
}

static inline int is_max197_installed(void)
{
return !!(__raw_readb(TS72XX_OPTIONS_VIRT_BASE) &
Expand Down

0 comments on commit 4b8b212

Please sign in to comment.