This repairs the other Geode mainboards so they'll build with the new
[coreboot.git] / src / northbridge / amd / gx2 / grphinit.c
1 #include <arch/io.h>
2 #include <stdint.h>
3 #include <cpu/amd/vr.h>
4  
5 #define VIDEO_MB        8                                       // MB of video memory
6
7
8  /*
9  * This function mirrors the Graphics_Init routine in GeodeROM.
10  */
11 void graphics_init(void)
12 {
13         /* SoftVG initialization */
14
15         /* Call SoftVG with the main configuration parameters. */
16         /* NOTE: SoftVG expects the memory size to be given in 512 KB pages */
17         vrWrite((VRC_VG <<  8) + VG_MEM_SIZE, 0x0100 | (VIDEO_MB * 2));
18 }
19
20