Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / src / northbridge / amd / gx2 / grphinit.c
1 #include <arch/io.h>
2 #include <stdint.h>
3 #include <cpu/amd/vr.h>
4 #include <device/device.h>
5 #include "chip.h"
6 #include "northbridge.h"
7
8 // FIXME handle UMA properly.
9 #define VIDEO_MB        8                                       // MB of video memory
10
11
12  /*
13  * This function mirrors the Graphics_Init routine in GeodeROM.
14  */
15 void graphics_init(void)
16 {
17         /* SoftVG initialization */
18
19         /* Call SoftVG with the main configuration parameters. */
20         /* NOTE: SoftVG expects the memory size to be given in 512 KB pages */
21         vrWrite((VRC_VG <<  8) + VG_MEM_SIZE, 0x0100 | (VIDEO_MB * 2));
22 }
23
24