Skip to content

Commit 3ec50c7

Browse files
mvduinRobertCNelson
authored andcommitted
uio_pruss: add names to memory regions
Signed-off-by: Matthijs van Duin <[email protected]>
1 parent 6edacd6 commit 3ec50c7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/uio/uio_pruss.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,23 +304,24 @@ static int pruss_probe(struct platform_device *pdev)
304304
gdev->hostirq_start = platform_get_irq(pdev, 0);
305305

306306
for (cnt = 0, p = gdev->info; cnt < MAX_PRUSS_EVT; cnt++, p++) {
307+
p->mem[0].name = "pruss";
307308
p->mem[0].addr = regs_prussio->start;
308309
p->mem[0].size = resource_size(regs_prussio);
309310
p->mem[0].memtype = UIO_MEM_PHYS;
310311

311-
/* oh this is nicely done... *barf*
312-
* and of course the userspace libs now hardcode these indices
313-
* - Matthijs van Duin
314-
*/
312+
/* note: some userspace code uses hardcoded indices... */
315313
#ifdef CONFIG_ARCH_DAVINCI_DA850
314+
p->mem[1].name = "sram";
316315
p->mem[1].addr = gdev->sram_paddr;
317316
p->mem[1].size = sram_pool_sz;
318317
p->mem[1].memtype = UIO_MEM_PHYS;
319318

319+
p->mem[2].name = "ddr";
320320
p->mem[2].addr = gdev->ddr_paddr;
321321
p->mem[2].size = extram_pool_sz;
322322
p->mem[2].memtype = UIO_MEM_PHYS;
323323
#else
324+
p->mem[1].name = "ddr";
324325
p->mem[1].addr = gdev->ddr_paddr;
325326
p->mem[1].size = extram_pool_sz;
326327
p->mem[1].memtype = UIO_MEM_PHYS;

0 commit comments

Comments
 (0)