Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200435
b: refs/heads/master
c: fb73538
h: refs/heads/master
i:
  200433: 37ccf5a
  200431: 3bed0f5
v: v3
  • Loading branch information
Dmitry Baryshkov authored and Grant Likely committed Jun 15, 2010
1 parent 9cab60d commit 533a00b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: a2c9a603c72be0d9a0780f196bff53ab0d517347
refs/heads/master: fb73538e10c7fc4823a56e97bba600c2f9294012
11 changes: 10 additions & 1 deletion trunk/arch/powerpc/platforms/52xx/mpc52xx_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,19 @@ int mpc52xx_pm_prepare(void)
{ .type = "builtin", .compatible = "mpc5200", }, /* efika */
{}
};
struct resource res;

/* map the whole register space */
np = of_find_matching_node(NULL, immr_ids);
mbar = of_iomap(np, 0);

if (of_address_to_resource(np, 0, &res)) {
pr_err("mpc52xx_pm_prepare(): could not get IMMR address\n");
of_node_put(np);
return -ENOSYS;
}

mbar = ioremap(res.start, 0xc000); /* we should map whole region including SRAM */

of_node_put(np);
if (!mbar) {
pr_err("mpc52xx_pm_prepare(): could not map registers\n");
Expand Down

0 comments on commit 533a00b

Please sign in to comment.