linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [POWERPC] Make non-PCI build work again
@ 2007-12-21  4:37 Stephen Rothwell
  2007-12-21  4:49 ` Olof Johansson
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2007-12-21  4:37 UTC (permalink / raw)
  To: paulus; +Cc: ppc-dev

Maple and pasemi both require PCI as does CONFIG_OF_PLATFORM_PCI.
The default setting of CONFIG_ISA_DMA_API is set to match the protection
around the relevant routines in asm/dma.h.

I also had to remove the PMAC platform from the combined build.  The
precis is that to build a 64 bit kernel with no PCI, you can only include
pSeries and iSeries.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/powerpc/Kconfig                  |    3 ++-
 arch/powerpc/platforms/maple/Kconfig  |    1 +
 arch/powerpc/platforms/pasemi/Kconfig |    1 +
 3 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 232c298..d40844f 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -160,6 +160,7 @@ config PPC_DCR
 
 config PPC_OF_PLATFORM_PCI
 	bool
+	depends on PCI
 	depends on PPC64 # not supported on 32 bits yet
 	default n
 
@@ -417,7 +418,7 @@ endmenu
 
 config ISA_DMA_API
 	bool
-	default y
+	default !PPC_ISERIES || PCI
 
 menu "Bus options"
 
diff --git a/arch/powerpc/platforms/maple/Kconfig b/arch/powerpc/platforms/maple/Kconfig
index f7c95eb..a6467a5 100644
--- a/arch/powerpc/platforms/maple/Kconfig
+++ b/arch/powerpc/platforms/maple/Kconfig
@@ -1,6 +1,7 @@
 config PPC_MAPLE
 	depends on PPC_MULTIPLATFORM && PPC64
 	bool "Maple 970FX Evaluation Board"
+	select PCI
 	select MPIC
 	select U3_DART
 	select MPIC_U3_HT_IRQS
diff --git a/arch/powerpc/platforms/pasemi/Kconfig b/arch/powerpc/platforms/pasemi/Kconfig
index 2f4dd6e..b3458a1 100644
--- a/arch/powerpc/platforms/pasemi/Kconfig
+++ b/arch/powerpc/platforms/pasemi/Kconfig
@@ -3,6 +3,7 @@ config PPC_PASEMI
 	bool "PA Semi SoC-based platforms"
 	default n
 	select MPIC
+	select PCI
 	select PPC_UDBG_16550
 	select PPC_NATIVE
 	select MPIC_BROKEN_REGREAD
-- 
1.5.3.7

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] [POWERPC] Make non-PCI build work again
  2007-12-21  4:37 [PATCH] [POWERPC] Make non-PCI build work again Stephen Rothwell
@ 2007-12-21  4:49 ` Olof Johansson
  0 siblings, 0 replies; 2+ messages in thread
From: Olof Johansson @ 2007-12-21  4:49 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: ppc-dev, paulus

On Fri, Dec 21, 2007 at 03:37:07PM +1100, Stephen Rothwell wrote:
> Maple and pasemi both require PCI as does CONFIG_OF_PLATFORM_PCI.
> The default setting of CONFIG_ISA_DMA_API is set to match the protection
> around the relevant routines in asm/dma.h.
> 
> I also had to remove the PMAC platform from the combined build.  The
> precis is that to build a 64 bit kernel with no PCI, you can only include
> pSeries and iSeries.
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  arch/powerpc/Kconfig                  |    3 ++-
>  arch/powerpc/platforms/maple/Kconfig  |    1 +
>  arch/powerpc/platforms/pasemi/Kconfig |    1 +

Acked-by: Olof Johansson <olof@lixom.net>


-Olof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-21  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21  4:37 [PATCH] [POWERPC] Make non-PCI build work again Stephen Rothwell
2007-12-21  4:49 ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).