/* Change the resolution by calling the appropriate hardware functions  */
static void w100fb_activate_var(struct w100fb_par *par)
/* Change the resolution by calling the appropriate hardware functions  */
static void w100fb_activate_var(struct w100fb_par *par)
{
	struct w100_tg_info *tg = par->mach->tg;
	w100_pwm_setup(par);
	w100_setup_memory(par);
	w100_init_clocks(par);
	w100fb_clear_screen(par);
	w100_vsync();
	w100_update_disable();
	w100_init_lcd(par);
	w100_set_dispregs(par);
	w100_update_enable();
	w100_init_graphic_engine(par);
	calc_hsync(par);
	if (!par->blanked && tg && tg->change)
		tg->change(par);
}