diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2007-05-10 18:16:03 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2007-05-10 18:16:03 +0000 |
commit | f8030bd9245f2f6fb7418595d58dc4326f6621f3 (patch) | |
tree | 428e715cb97af44317600f643d25e52acdde4eff /src/northbridge/amd/lx/grphinit.c | |
parent | 89d7cd2c833245078d917bf7d85b3a7ba4fd6c03 (diff) |
Fix the indent and whitespace to match LinuxBIOS standards
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2649 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/lx/grphinit.c')
-rw-r--r-- | src/northbridge/amd/lx/grphinit.c | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/src/northbridge/amd/lx/grphinit.c b/src/northbridge/amd/lx/grphinit.c index c4d2173ba4..6603a4c454 100644 --- a/src/northbridge/amd/lx/grphinit.c +++ b/src/northbridge/amd/lx/grphinit.c @@ -23,42 +23,40 @@ #include <cpu/amd/vr.h> #include <console/console.h> - /* - * This function mirrors the Graphics_Init routine in GeodeROM. - */ + * This function mirrors the Graphics_Init routine in GeodeROM. + */ void graphics_init(void) { uint16_t wClassIndex, wData, res; - + /* SoftVG initialization */ printk_debug("Graphics init...\n"); /* Call SoftVG with the main configuration parameters. */ /* NOTE: SoftVG expects the memory size to be given in 2MB blocks */ - - wClassIndex = (VRC_VG << 8) + VG_CONFIG; - + + wClassIndex = (VRC_VG << 8) + VG_CONFIG; + /* - * Graphics Driver Enabled (13) 0, NO (lets BIOS controls the GP) - * External Monochrome Card Support(12) 0, NO - * Controller Priority Select(11) 1, Primary - * Display Select(10:8) 0x0, CRT - * Graphics Memory Size(7:1) CONFIG_VIDEO_MB >> 1, - * defined in mainboard/../Options.lb - * PLL Reference Clock Bypass(0) 0, Default + * Graphics Driver Enabled (13) 0, NO (lets BIOS controls the GP) + * External Monochrome Card Support(12) 0, NO + * Controller Priority Select(11) 1, Primary + * Display Select(10:8) 0x0, CRT + * Graphics Memory Size(7:1) CONFIG_VIDEO_MB >> 1, + * defined in mainboard/../Options.lb + * PLL Reference Clock Bypass(0) 0, Default */ /* Video RAM has to be given in 2MB chunks * the value is read @ 7:1 (value in 7:0 looks like /2) * so we can add the real value in megabytes */ - - wData = VG_CFG_DRIVER | VG_CFG_PRIORITY | VG_CFG_DSCRT | (CONFIG_VIDEO_MB & VG_MEM_MASK); + + wData = VG_CFG_DRIVER | VG_CFG_PRIORITY | + VG_CFG_DSCRT | (CONFIG_VIDEO_MB & VG_MEM_MASK); vrWrite(wClassIndex, wData); - + res = vrRead(wClassIndex); printk_debug("VRC_VG value: 0x%04x\n", res); } - - |