Esempio n. 1
0
void hdmi_wr_reg(unsigned int addr, unsigned int data)
{
    unsigned long flags, fiq_flag;
    spin_lock_irqsave(&reg_lock, flags);
    raw_local_save_flags(fiq_flag);
    local_fiq_disable();

    check_cts_hdmi_sys_clk_status();
    aml_write_reg32(P_HDMI_ADDR_PORT, addr);
    aml_write_reg32(P_HDMI_ADDR_PORT, addr);
    aml_write_reg32(P_HDMI_DATA_PORT, data);
    raw_local_irq_restore(fiq_flag);
    spin_unlock_irqrestore(&reg_lock, flags);
}
Esempio n. 2
0
void p1275_cmd_direct(unsigned long *args)
{
	unsigned long flags;

	raw_local_save_flags(flags);
	raw_local_irq_restore((unsigned long)PIL_NMI);
	raw_spin_lock(&prom_entry_lock);

	prom_world(1);
	prom_cif_direct(args);
	prom_world(0);

	raw_spin_unlock(&prom_entry_lock);
	raw_local_irq_restore(flags);
}
static void fiq_printk_timer(unsigned long arg){
	unsigned long flags;
	int len=0;
	if(fiqprint_buf_off>0){
		raw_local_save_flags(flags);
		local_fiq_disable();
		memcpy(fiqprint_buf1,fiqprint_buf,fiqprint_buf_off);
		len=fiqprint_buf_off;
		fiqprint_buf_off=0;
		fiqprint_buf1[len]='\n';
		fiqprint_buf1[len+1]='0';
		raw_local_irq_restore(flags);
	}
	if(len>0)
		printk("%s\n",fiqprint_buf1);
	mod_timer(&fiq_print_timer,jiffies+HZ/10);
	///printk("fiq timer fired,waper data len=%d\n",len);
}
Esempio n. 4
0
void p1275_cmd_direct(unsigned long *args)
{
	unsigned long flags;

	raw_local_save_flags(flags);
<<<<<<< HEAD