]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[PATCH] ppc32: Allows compilation of a MPC52xx kernel without PCI
authorSylvain Munaut <tnt@246tNt.com>
Fri, 6 Jan 2006 08:11:38 +0000 (00:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:31 +0000 (08:33 -0800)
Some custom cards might not need PCI, without this patch, compilation fails.

Signed-off-by: Roger Blofeld <blofeldus@yahoo.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/platforms/lite5200.c
include/asm-ppc/io.h
include/asm-ppc/mpc52xx.h

index d44cc991179fddef3afbbdbe697b63726d8f53d7..7ed52dc340c95394cf3a8e5a2c1ef32ec3744ca7 100644 (file)
@@ -196,8 +196,10 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
        mpc52xx_set_bat();
 
        /* No ISA bus by default */
+#ifdef CONFIG_PCI
        isa_io_base             = 0;
        isa_mem_base            = 0;
+#endif
 
        /* Powersave */
        /* This is provided as an example on how to do it. But you
index 84ac6e258eef723750fd0b7351ee249f5b3bbbee..df9cf6ed189d6bc7392dc308a9c465b31ece8212 100644 (file)
@@ -27,6 +27,8 @@
 
 #if defined(CONFIG_4xx)
 #include <asm/ibm4xx.h>
+#elif defined(CONFIG_PPC_MPC52xx)
+#include <asm/mpc52xx.h>
 #elif defined(CONFIG_8xx)
 #include <asm/mpc8xx.h>
 #elif defined(CONFIG_8260)
index 04d56301345ba71e4d3b710c1ef65c8d368a08ce..a055e0756b9d85e1ba72b34ec6c10b3ad72a1486 100644 (file)
@@ -29,6 +29,17 @@ struct pt_regs;
 #endif /* __ASSEMBLY__ */
 
 
+#ifdef CONFIG_PCI
+#define _IO_BASE       isa_io_base
+#define _ISA_MEM_BASE  isa_mem_base
+#define PCI_DRAM_OFFSET        pci_dram_offset
+#else
+#define _IO_BASE       0
+#define _ISA_MEM_BASE  0
+#define PCI_DRAM_OFFSET        0
+#endif
+
+
 /* ======================================================================== */
 /* PPC Sys devices definition                                               */
 /* ======================================================================== */