[media] media: ti-vpe: scaler: 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>
This commit is contained in:
Benoit Parrot 2016-11-18 21:20:40 -02:00 коммит произвёл Mauro Carvalho Chehab
Родитель 1c6e81783c
Коммит d6a6178773
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -28,6 +28,8 @@ void sc_dump_regs(struct sc_data *sc)
#define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \ #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \
ioread32(sc->base + CFG_##r)) ioread32(sc->base + CFG_##r))
dev_dbg(dev, "SC Registers @ %pa:\n", &sc->res->start);
DUMPREG(SC0); DUMPREG(SC0);
DUMPREG(SC1); DUMPREG(SC1);
DUMPREG(SC2); DUMPREG(SC2);