/*
* Part comes in -125, -110, -80, and -66MHz speed-grades.
* Work out the part speed-grade from name. Name can have,
* e.g. '-110' on the end for 100MHz part.
*/
pclk = 66000000;
if(p = strrchr(ctlr->name, '-'))
pclk = strtoul(p+1, 0, 0) * 1000000;
/*
* If we don't already have a desired pclk,
* take it from the mode.
* Check it's within range.
*/
if(vga->f[0] == 0)
vga->f[0] = vga->mode->frequency;
if(vga->f[0] > pclk)
error("%s: invalid pclk - %ld\n", ctlr->name, vga->f[0]);
}