提交 f80257a2 编写于 作者: S Sylvain Munaut 提交者: Linus Torvalds

[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: NRoger Blofeld <blofeldus@yahoo.com>
Signed-off-by: NSylvain Munaut <tnt@246tNt.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 041cb624
...@@ -196,8 +196,10 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5, ...@@ -196,8 +196,10 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
mpc52xx_set_bat(); mpc52xx_set_bat();
/* No ISA bus by default */ /* No ISA bus by default */
#ifdef CONFIG_PCI
isa_io_base = 0; isa_io_base = 0;
isa_mem_base = 0; isa_mem_base = 0;
#endif
/* Powersave */ /* Powersave */
/* This is provided as an example on how to do it. But you /* This is provided as an example on how to do it. But you
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#if defined(CONFIG_4xx) #if defined(CONFIG_4xx)
#include <asm/ibm4xx.h> #include <asm/ibm4xx.h>
#elif defined(CONFIG_PPC_MPC52xx)
#include <asm/mpc52xx.h>
#elif defined(CONFIG_8xx) #elif defined(CONFIG_8xx)
#include <asm/mpc8xx.h> #include <asm/mpc8xx.h>
#elif defined(CONFIG_8260) #elif defined(CONFIG_8260)
......
...@@ -29,6 +29,17 @@ struct pt_regs; ...@@ -29,6 +29,17 @@ struct pt_regs;
#endif /* __ASSEMBLY__ */ #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 */ /* PPC Sys devices definition */
/* ======================================================================== */ /* ======================================================================== */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册