Пример #1
0
void govw_init(void *base)
{
	govw_mod_t *mod_p;

	mod_p = (govw_mod_t *) base;

	//disable
	govw_set_reg_level(VPP_REG_LEVEL_1);
	govw_set_int_enable(VPP_FLAG_DISABLE, VPP_INT_ALL);
	govw_set_mif_enable(VPP_FLAG_DISABLE);
	govw_set_tg_enable(VPP_FLAG_DISABLE);

	//register
	govw_set_framebuffer(&mod_p->fb_p->fb);
	govw_set_watchdog(mod_p->fb_p->wait_ready);

	//enable
	govw_set_int_enable(VPP_FLAG_ENABLE, mod_p->int_catch);
	govw_set_reg_update(VPP_FLAG_ENABLE);
//	govw_set_tg_enable(VPP_FLAG_ENABLE);
}
Пример #2
0
void govw_init(void *base)
{
	govw_mod_t *mod_p;

	mod_p = (govw_mod_t *) base;

//	vppif_reg32_write(0xd8130254,BIT29,29,1);	// GOVW clock enable

	//disable
	govw_set_reg_level(VPP_REG_LEVEL_1);
	govw_set_int_enable(VPP_FLAG_DISABLE, VPP_INT_ALL);
	govw_set_hd_mif_enable(VPP_FLAG_DISABLE);
	govw_set_tg_enable(VPP_FLAG_DISABLE);

	//register
	govw_set_hd_framebuffer(&mod_p->fb_p->fb);
	govw_set_watchdog(mod_p->fb_p->wait_ready);

	//enable
	//govw_set_int_enable(VPP_FLAG_ENABLE, mod_p->int_catch);
	govw_set_hd_mif_enable(VPP_FLAG_ENABLE);
	govw_set_reg_update(VPP_FLAG_ENABLE);
	govw_set_tg_enable(VPP_FLAG_ENABLE);
}