diff options
author | Nils <njacobs8@adsltotaal.nl> | 2012-01-14 12:15:14 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-01-14 12:15:14 -0500 |
commit | 24ddd8678cacab4268e8cd8209f30e3e69f12852 (patch) | |
tree | c1e59b9898627a23d79d36a26184343b9e5b1c59 /vgasrc/geodevga.c | |
parent | e8b184fe576e5b1263f2e72f0c71b3f4bb158e82 (diff) | |
download | seabios-24ddd8678cacab4268e8cd8209f30e3e69f12852.tar.gz |
vgabios: Add the geode GX2 functionality.
Signed-off-by: Nils Jacobs <njacobs8 at adsltotaal.nl>
Diffstat (limited to 'vgasrc/geodevga.c')
-rw-r--r-- | vgasrc/geodevga.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c index 0008abec..7735fdca 100644 --- a/vgasrc/geodevga.c +++ b/vgasrc/geodevga.c @@ -87,7 +87,10 @@ static int legacyio_check(void) int ret=0; union u64_u32_u val; - val=geode_msrRead(MSR_GLIU0_BASE4); + if (CONFIG_VGA_GEODEGX2) + val=geode_msrRead(GLIU0_P2D_BM_4); + else + val=geode_msrRead(MSR_GLIU0_BASE4); if (val.lo != 0x0A0fffe0) ret|=1; @@ -255,7 +258,10 @@ int vp_setup(void) dprintf(2,"VP_SETUP\n"); /* set output to crt and RGB/YUV */ - geode_msrWrite(VP_MSR_CONFIG,~0 ,~0xf8,0,0); + if (CONFIG_VGA_GEODEGX2) + geode_msrWrite(VP_MSR_CONFIG_GX2,~0 ,~0xf8,0,0); + else + geode_msrWrite(VP_MSR_CONFIG_LX,~0 ,~0xf8,0,0); /* get vp register base from pci */ outl(GEODE_PCI_VP,PORT_PCI_CMD); |