Re: [PATCH 4/4] powerpc, mpc5200: add options to mpc5200_defconfig

2012-03-18 Thread Anatolij Gustschin
On Wed, 22 Jun 2011 09:55:11 +0200
Heiko Schocher h...@denx.de wrote:

 Add the following options to the mpc5200_defconfig, needed
 for the a4m072 board support:
 
 CONFIG_AMD_PHY=y
 CONFIG_MTD_PLATRAM=y - this deletes CONFIG_MTD_RAM=y
 CONFIG_GPIO_SYSFS=y
 CONFIG_SENSORS_LM87=m
 CONFIG_RTC_DRV_PCF8563=m
 
 Signed-off-by: Heiko Schocher h...@denx.de
 cc: Wolfgang Denk w...@denx.de
 ---
  arch/powerpc/configs/mpc5200_defconfig |6 +-
  1 files changed, 5 insertions(+), 1 deletions(-)

I squashed both patches (3/4, 4/4) to a single patch when re-basing
and applying.

Thanks,
Anatolij
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH -v11 15/30] PCI, powerpc: Register busn_res for root buses

2012-03-18 Thread Yinghai Lu
Signed-off-by: Yinghai Lu ying...@kernel.org
Cc: Benjamin Herrenschmidt b...@kernel.crashing.org
Cc: Paul Mackerras pau...@samba.org
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/include/asm/pci-bridge.h |1 +
 arch/powerpc/kernel/pci-common.c  |   10 +-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/pci-bridge.h 
b/arch/powerpc/include/asm/pci-bridge.h
index 5d48765..11cebf0 100644
--- a/arch/powerpc/include/asm/pci-bridge.h
+++ b/arch/powerpc/include/asm/pci-bridge.h
@@ -30,6 +30,7 @@ struct pci_controller {
int first_busno;
int last_busno;
int self_busno;
+   struct resource busn;
 
void __iomem *io_base_virt;
 #ifdef CONFIG_PPC64
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 910b9de..ee8c0c9 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -1648,6 +1648,11 @@ void __devinit pcibios_scan_phb(struct pci_controller 
*hose)
/* Wire up PHB bus resources */
pcibios_setup_phb_resources(hose, resources);
 
+   hose-busn.start = hose-first_busno;
+   hose-busn.end   = hose-last_busno;
+   hose-busn.flags = IORESOURCE_BUS;
+   pci_add_resource(resources, hose-busn);
+
/* Create an empty bus for the toplevel */
bus = pci_create_root_bus(hose-parent, hose-first_busno,
  hose-ops, hose, resources);
@@ -1670,8 +1675,11 @@ void __devinit pcibios_scan_phb(struct pci_controller 
*hose)
of_scan_bus(node, bus);
}
 
-   if (mode == PCI_PROBE_NORMAL)
+   if (mode == PCI_PROBE_NORMAL) {
+   pci_bus_update_busn_res_end(bus, 255);
hose-last_busno = bus-subordinate = pci_scan_child_bus(bus);
+   pci_bus_update_busn_res_end(bus, bus-subordinate);
+   }
 
/* Platform gets a chance to do some global fixups before
 * we proceed to resource allocation
-- 
1.7.7

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev