Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96345
b: refs/heads/master
c: 547acec
h: refs/heads/master
i:
  96343: a3a99ef
v: v3
  • Loading branch information
Andres Salomon authored and Ingo Molnar committed May 8, 2008
1 parent 1917f85 commit 9258bbe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 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: ac44cc96fbc8f44c056fa37573e8447eec512b10
refs/heads/master: 547acec7ecc32b14c2740de3f32ce7d1b36a0f69
19 changes: 19 additions & 0 deletions trunk/arch/x86/kernel/geode_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,25 @@ void geode_gpio_setup_event(unsigned int gpio, int pair, int pme)
}
EXPORT_SYMBOL_GPL(geode_gpio_setup_event);

int geode_has_vsa2(void)
{
static int has_vsa2 = -1;

if (has_vsa2 == -1) {
/*
* The VSA has virtual registers that we can query for a
* signature.
*/
outw(VSA_VR_UNLOCK, VSA_VRC_INDEX);
outw(VSA_VR_SIGNATURE, VSA_VRC_INDEX);

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

return has_vsa2;
}
EXPORT_SYMBOL_GPL(geode_has_vsa2);

static int __init geode_southbridge_init(void)
{
if (!is_geode())
Expand Down
11 changes: 1 addition & 10 deletions trunk/include/asm-x86/geode.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,7 @@ 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);
}
extern int geode_has_vsa2(void);

/* MFGPTs */

Expand Down

0 comments on commit 9258bbe

Please sign in to comment.