void jpeg_drv_dec_dump_reg(void)
{
	unsigned int reg_value = 0;
	unsigned int index = 0;

	JPEG_VEB("<<<<<= JPEG DEC DUMP =>>>>>\n");
	for (index = 0x8C; index <= 0x3FC; index += 4) {
		IMG_REG_READ(reg_value, JPEG_DEC_BASE + index);	/* reg_value = ioread32(JPEG_DEC_BASE + index); */
		JPEG_VEB("+0x%x(%d) 0x%08x\n", index, index / 4, reg_value);
		wait_pr();
	}
}
Beispiel #2
0
void jpeg_drv_dec_dump_reg(void)
{
    unsigned int reg_value = 0;
    unsigned int index = 0;

    JPEG_VEB("<<<<<= JPEG DEC DUMP =>>>>>\n");
    for(index = 0x8C; index <= 0x3FC ; index += 4)
    {
#ifdef FPGA_VERSION      
        reg_value = *(volatile kal_uint32 *)(JPEG_DEC_BASE + index);
#else        
        IMG_REG_READ(reg_value, JPEG_DEC_BASE + index);   //reg_value = ioread32(JPEG_DEC_BASE + index);
#endif         
        JPEG_VEB("+0x%x(%d) 0x%08x\n", index, index/4, reg_value);
        wait_pr();
    }
}
void jpeg_drv_dec_rw_reg(void)
{
	kal_uint32 i;
	unsigned long addr = 0;
	unsigned int reg_value = 0;
	/* kal_uint32 restore = 0; */


	JPEG_VEB("=======================================\n\r");
	JPEG_VEB("   JPEG decoder register RW test!!!!\n\r");

	/* for (i = 0x8C; i < 0x3FC; i+=4) */
	for (i = 0x090; i <= 0x294; i += 4) {
		addr = (unsigned long)(JPEG_DEC_BASE + i);
		JPEG_VEB("addr %03x(%03d) ", i, i / 4);

		IMG_REG_WRITE(0x00000000, addr);
		IMG_REG_READ(reg_value, addr);
		JPEG_VEB("write 0x00000000 read: 0x%08x\n", reg_value);

		IMG_REG_WRITE(0xffffffff, addr);
		IMG_REG_READ(reg_value, addr);
		JPEG_VEB("              write 0xffffffff read: 0x%08x\n", reg_value);

		wait_pr();
	}

	JPEG_VEB("=======================================\n\r\n\r");
}
Beispiel #4
0
void jpeg_drv_dec_rw_reg(void)
{
    kal_uint32 i;
    unsigned long addr = 0;
    unsigned int reg_value = 0;
    //kal_uint32 restore = 0;
    

    JPEG_VEB("=======================================\n\r");
    JPEG_VEB("   JPEG decoder register RW test!!!!\n\r");

    //for (i = 0x8C; i < 0x3FC; i+=4)    
    for (i = 0x090; i <= 0x294; i+=4)    
    {
        addr = (unsigned long)(JPEG_DEC_BASE + i);
        JPEG_VEB("addr %03x(%03d) ", i, i/4);

#if 0
        // power down related register 
        if ((i==0xC4) || (i==0xC8))
            restore = *((volatile unsigned int*)addr);
#endif            
        
        IMG_REG_WRITE(0x00000000, addr);
        IMG_REG_READ(reg_value, addr);
        JPEG_VEB("write 0x00000000 read: 0x%08x\n", reg_value);
        
        IMG_REG_WRITE(0xffffffff, addr);
        IMG_REG_READ(reg_value, addr);
        JPEG_VEB("              write 0xffffffff read: 0x%08x\n", reg_value);
#if 0
        // power down related register 
        if ((i==0xC4) || (i==0xC8))
            *((volatile unsigned int*)addr) = restore;
#endif

        wait_pr();
    }

    JPEG_VEB("=======================================\n\r\n\r");

}
void jpeg_drv_dec_rw_reg(void)
{
    kal_uint32 i;
    kal_uint32 addr = 0;
    //kal_uint32 restore = 0;
    

    JPEG_VEB("=======================================\n\r");
    JPEG_VEB("   JPEG decoder register RW test!!!!\n\r");

    //for (i = 0x8C; i < 0x3FC; i+=4)    
    for (i = 0x090; i <= 0x294; i+=4)    
    {
        addr = JPEG_DEC_BASE + i;
        JPEG_VEB("addr %03x(%03d) ", i, i/4);

#if 0
        // power down related register 
        if ((i==0xC4) || (i==0xC8))
            restore = *((volatile unsigned int*)addr);
#endif            
        
        *((volatile unsigned int*)addr) = 0x00000000;
        JPEG_VEB("write 0x00000000 read: 0x%08x\n", *((volatile unsigned int*)addr));
        
        *((volatile unsigned int*)addr) = 0xffffffff;
        JPEG_VEB("              write 0xffffffff read: 0x%08x\n", *((volatile unsigned int*)addr));
#if 0
        // power down related register 
        if ((i==0xC4) || (i==0xC8))
            *((volatile unsigned int*)addr) = restore;
#endif

        wait_pr();
    }

    JPEG_VEB("=======================================\n\r\n\r");

}