summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/mpc52xx.h
diff options
context:
space:
mode:
authorSylvain Munaut2006-01-06 09:11:38 +0100
committerLinus Torvalds2006-01-06 17:33:31 +0100
commitf80257a25d9f73a0e6e377c7d6bf29b8938c042d (patch)
treee44b01971bafb813785c8c55e75b2a29f31b804d /include/asm-ppc/mpc52xx.h
parent[PATCH] ppc32: Fix MPC52xx PCI init in cas the bootloader didn't do it (diff)
downloadkernel-qcow2-linux-f80257a25d9f73a0e6e377c7d6bf29b8938c042d.tar.gz
kernel-qcow2-linux-f80257a25d9f73a0e6e377c7d6bf29b8938c042d.tar.xz
kernel-qcow2-linux-f80257a25d9f73a0e6e377c7d6bf29b8938c042d.zip
[PATCH] ppc32: Allows compilation of a MPC52xx kernel without PCI
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>
Diffstat (limited to 'include/asm-ppc/mpc52xx.h')
-rw-r--r--include/asm-ppc/mpc52xx.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-ppc/mpc52xx.h b/include/asm-ppc/mpc52xx.h
index 04d56301345b..a055e0756b9d 100644
--- a/include/asm-ppc/mpc52xx.h
+++ b/include/asm-ppc/mpc52xx.h
@@ -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 */
/* ======================================================================== */