Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318372
b: refs/heads/master
c: e13af18
h: refs/heads/master
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Jun 27, 2012
1 parent e4c66d4 commit 71ef80b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e24f7c9e87d46fad06bf1097d48f9923acd8e61c
refs/heads/master: e13af18a3e33259e264c7fb47b54fbf608137976
9 changes: 7 additions & 2 deletions trunk/drivers/crypto/caam/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,18 @@ static int caam_probe(struct platform_device *pdev)

/*
* Enable DECO watchdogs and, if this is a PHYS_ADDR_T_64BIT kernel,
* 36-bit pointers in master configuration register
* long pointers in master configuration register
*/
setbits32(&topregs->ctrl.mcr, MCFGR_WDENABLE |
(sizeof(dma_addr_t) == sizeof(u64) ? MCFGR_LONG_PTR : 0));

if (sizeof(dma_addr_t) == sizeof(u64))
dma_set_mask(dev, DMA_BIT_MASK(36));
if (of_device_is_compatible(nprop, "fsl,sec-v5.0"))
dma_set_mask(dev, DMA_BIT_MASK(40));
else
dma_set_mask(dev, DMA_BIT_MASK(36));
else
dma_set_mask(dev, DMA_BIT_MASK(32));

/*
* Detect and enable JobRs
Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/crypto/caam/jr.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,14 @@ int caam_jr_probe(struct platform_device *pdev, struct device_node *np,
dev_set_drvdata(jrdev, jrpriv);
ctrlpriv->jrdev[ring] = jrdev;

if (sizeof(dma_addr_t) == sizeof(u64))
if (of_device_is_compatible(np, "fsl,sec-v5.0-job-ring"))
dma_set_mask(jrdev, DMA_BIT_MASK(40));
else
dma_set_mask(jrdev, DMA_BIT_MASK(36));
else
dma_set_mask(jrdev, DMA_BIT_MASK(32));

/* Identify the interrupt */
jrpriv->irq = of_irq_to_resource(np, 0, NULL);

Expand Down

0 comments on commit 71ef80b

Please sign in to comment.