IPUv3 Dump Reg

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IPUv3 Dump Reg

Jump to solution
1,000 Views
cagrisma
Contributor I

Hi everybody,

i have a sabre-lite board which has imx6q. i am using ipu to play video on tv (via tv encoder)

but something problem on video about colors, vibration etc.

So, i decided to dump ipu registers with kernel module programing, shuch as dp or di.

when i write that code, on prink, its hanging

#include <asm/io.h>

#include <linux/module.h>

#include <mach/hardware.h>

MODULE_LICENSE("GPL v2");

static int __init g_init(void)

{

    volatile u32 *ipu_base = ioremap(MX6Q_IPU1_ARB_BASE_ADDR , 32);

    printk(KERN_ERR "IPU_BASE= %08x\n", *ipu_base);

    iounmap(ipu_base);

    return 0;

}

// #define MX6Q_IPU1_ARB_BASE_ADDR 0x02400000 declerated in  "\arch\arm\plat-mxc\include\mach|mx6.h"

static void __exit g_exit(void)

{

    printk(KERN_ERR "exit from module...\n");

}

module_init(g_init);

module_exit(g_exit);

0 Kudos
1 Solution
777 Views
fabio_estevam
NXP Employee
NXP Employee

Maybe you could share exactly what you are trying to achieve.

There are lots of debug printk's throught the IPU driver that you can use for reference.


View solution in original post

0 Kudos
3 Replies
778 Views
fabio_estevam
NXP Employee
NXP Employee

Maybe you could share exactly what you are trying to achieve.

There are lots of debug printk's throught the IPU driver that you can use for reference.


0 Kudos
777 Views
cagrisma
Contributor I

On tv that we connect via tv encoder, the video's color confused.

So, i just wanna see the IPU Registers to see how its configured. To understand its configure RGB or YUV, or anything else.

0 Kudos
777 Views
fabio_estevam
NXP Employee
NXP Employee

Are you using the HDMI output of mx6qsabrelite? Please look carefully at the BSP Release Notes where you can find the correct kernel command line.

0 Kudos