Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94142
b: refs/heads/master
c: e933836
h: refs/heads/master
v: v3
  • Loading branch information
Andres Salomon authored and Linus Torvalds committed Apr 28, 2008
1 parent 18bde4e commit ab02271
Show file tree
Hide file tree
Showing 2 changed files with 20 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: 32bf87e3697cf2f730b8fbf47cad903ceef718a2
refs/heads/master: e9338364e6989ca2707638c7c70ae22975b0bb6c
19 changes: 19 additions & 0 deletions trunk/include/asm-x86/geode.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ extern int geode_get_dev_base(unsigned int dev);
#define PM_AWKD 0x50
#define PM_SSC 0x54

/* VSA2 magic values */

#define VSA_VRC_INDEX 0xAC1C
#define VSA_VRC_DATA 0xAC1E
#define VSA_VR_UNLOCK 0xFC53 /* unlock virtual register */
#define VSA_VR_SIGNATURE 0x0003
#define VSA_SIG 0x4132 /* signature is ascii 'VSA2' */

/* GPIO */

#define GPIO_OUTPUT_VAL 0x00
Expand Down Expand Up @@ -174,6 +182,17 @@ static inline int is_geode(void)
return (is_geode_gx() || is_geode_lx());
}

/*
* The VSA has virtual registers that we can query for a signature.
*/
static inline int geode_has_vsa2(void)
{
outw(VSA_VR_UNLOCK, VSA_VRC_INDEX);
outw(VSA_VR_SIGNATURE, VSA_VRC_INDEX);

return (inw(VSA_VRC_DATA) == VSA_SIG);
}

/* MFGPTs */

#define MFGPT_MAX_TIMERS 8
Expand Down

0 comments on commit ab02271

Please sign in to comment.