Skip to content

Commit

Permalink
usb: fhci-hcd: Allocate pram dynamically.
Browse files Browse the repository at this point in the history
MPC832x does not have enough MURAM to do fixed MURAM allocation.
Change to dynamic allocation.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Joakim Tjernlund authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 74ad602 commit 39eb4ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usb/host/fhci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,12 +621,15 @@ static int __devinit of_fhci_probe(struct platform_device *ofdev)
goto err_pram;
}

pram_addr = cpm_muram_alloc_fixed(iprop[2], FHCI_PRAM_SIZE);
pram_addr = cpm_muram_alloc(FHCI_PRAM_SIZE, 64);
if (IS_ERR_VALUE(pram_addr)) {
dev_err(dev, "failed to allocate usb pram\n");
ret = -ENOMEM;
goto err_pram;
}

qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, QE_CR_SUBBLOCK_USB,
QE_CR_PROTOCOL_UNSPECIFIED, pram_addr);
fhci->pram = cpm_muram_addr(pram_addr);

/* GPIOs and pins */
Expand Down

0 comments on commit 39eb4ed

Please sign in to comment.