Which GPU ? Docco for more recent GPUs can be found at http://www.x.org/docs/AMD/. We included a couple of typical GPUs from each generation.
One way would be to just check the source code in the existing X drivers. The radeon driver (xorg/driver/xf86-video-ati) has hard-coded modesetting from r1xx-r4xx, and the radeonhd driver (xorg/driver/xf86-video-radeonhd) has hard-coded modesetting for 5xx through early 7xx.
Do you really just need to set CRTC registers or do you need to play with the pixel clock PLL as well ? Changing the clock frequencies is more involved, so you might want to use the X driver source as a reference.
Probably not -- AFAIK the X driver (vesa in this case) negotiates display resolution with the X server so even if you reprogrammed the registers the X server would still think the screen resolution was unchanged. Then again, if this is an embedded application and you don't have a display server/manager either then I guess maybe this could work.


Reply With Quote
