Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349091
b: refs/heads/master
c: 67c6b2e
h: refs/heads/master
i:
  349089: 10cad7b
  349087: a37fda8
v: v3
  • Loading branch information
Linus Walleij authored and Olof Johansson committed Jan 11, 2013
1 parent eb4d07e commit 0ed99bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 65aabd61a4c5fa4033d2af7692ae7994845ab0ca
refs/heads/master: 67c6b2ef2662b17cc2174f2bdc22a7cb818a8376
14 changes: 10 additions & 4 deletions trunk/arch/arm/mach-integrator/pci_v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,12 @@ int __init pci_v3_setup(int nr, struct pci_sys_data *sys)
{
int ret = 0;

if (!ap_syscon_base)
return -EINVAL;

if (nr == 0) {
sys->mem_offset = PHYS_PCI_MEM_BASE;
ret = pci_v3_setup_resources(sys);
/* Remap the Integrator system controller */
ap_syscon_base = ioremap(INTEGRATOR_SC_BASE, 0x100);
if (!ap_syscon_base)
return -EINVAL;
}

return ret;
Expand All @@ -497,6 +496,13 @@ void __init pci_v3_preinit(void)
unsigned int temp;
int ret;

/* Remap the Integrator system controller */
ap_syscon_base = ioremap(INTEGRATOR_SC_BASE, 0x100);
if (!ap_syscon_base) {
pr_err("unable to remap the AP syscon for PCIv3\n");
return;
}

pcibios_min_mem = 0x00100000;

/*
Expand Down

0 comments on commit 0ed99bb

Please sign in to comment.