Browse Source

[media] media: ti-vpe: csc: Add debug support for multi-instance

Since there might be more then one instance it is better to
show the base address when dumping registers to help
with debugging.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Benoit Parrot 8 years ago
parent
commit
3ce0f30f8e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/media/platform/ti-vpe/csc.c

+ 2 - 0
drivers/media/platform/ti-vpe/csc.c

@@ -97,6 +97,8 @@ void csc_dump_regs(struct csc_data *csc)
 #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \
 #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \
 	ioread32(csc->base + CSC_##r))
 	ioread32(csc->base + CSC_##r))
 
 
+	dev_dbg(dev, "CSC Registers @ %pa:\n", &csc->res->start);
+
 	DUMPREG(CSC00);
 	DUMPREG(CSC00);
 	DUMPREG(CSC01);
 	DUMPREG(CSC01);
 	DUMPREG(CSC02);
 	DUMPREG(CSC02);