diff options
author | Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com> | 2013-05-03 08:43:12 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-05-05 19:25:38 -0400 |
commit | d82fb31abc46620b7c22758c75707069f2763646 (patch) | |
tree | 29a92372ff460db1008565aa027a7fc60f2277e9 /arch/powerpc/include/asm | |
parent | e61133dda480062d221f09e4fc18f66763f8ecd0 (diff) |
powerpc/pseries: Perform proper max_bus_speed detection
On pseries machines the detection for max_bus_speed should be done
through an OpenFirmware property. This patch adds a function to perform
this detection and a hook to perform dynamic adding of the function only
for pseries. This is done by overwriting the weak
pcibios_root_bridge_prepare function which is called by
pci_create_root_bus().
From: Lucas Kannebley Tavares <lucaskt@linux.vnet.ibm.com>
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/machdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index 3f3f691be2e7..92386fc4e82a 100644 --- a/arch/powerpc/include/asm/machdep.h +++ b/arch/powerpc/include/asm/machdep.h | |||
@@ -29,6 +29,7 @@ struct rtc_time; | |||
29 | struct file; | 29 | struct file; |
30 | struct pci_controller; | 30 | struct pci_controller; |
31 | struct kimage; | 31 | struct kimage; |
32 | struct pci_host_bridge; | ||
32 | 33 | ||
33 | struct machdep_calls { | 34 | struct machdep_calls { |
34 | char *name; | 35 | char *name; |
@@ -108,6 +109,8 @@ struct machdep_calls { | |||
108 | void (*pcibios_fixup)(void); | 109 | void (*pcibios_fixup)(void); |
109 | int (*pci_probe_mode)(struct pci_bus *); | 110 | int (*pci_probe_mode)(struct pci_bus *); |
110 | void (*pci_irq_fixup)(struct pci_dev *dev); | 111 | void (*pci_irq_fixup)(struct pci_dev *dev); |
112 | int (*pcibios_root_bridge_prepare)(struct pci_host_bridge | ||
113 | *bridge); | ||
111 | 114 | ||
112 | /* To setup PHBs when using automatic OF platform driver for PCI */ | 115 | /* To setup PHBs when using automatic OF platform driver for PCI */ |
113 | int (*pci_setup_phb)(struct pci_controller *host); | 116 | int (*pci_setup_phb)(struct pci_controller *host); |