sparc32: added CONFIG_PCIC_PCI Kconfig setting
authorDaniel Hellstrom <daniel@gaisler.com>
Mon, 23 May 2011 21:04:46 +0000 (21:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jun 2011 21:32:37 +0000 (14:32 -0700)
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Kconfig
arch/sparc/include/asm/pcic.h
arch/sparc/kernel/Makefile
arch/sparc/kernel/entry.S

index af32e17fa170c3d9fa1ef259e4fd7cee0ad48f12..09b1d8e80399a1a91dd75b80de57bb884047e7f4 100644 (file)
@@ -528,6 +528,11 @@ config PCI_DOMAINS
 config PCI_SYSCALL
        def_bool PCI
 
+config PCIC_PCI
+       bool
+       depends on PCI && !SPARC_LEON
+       default y
+
 source "drivers/pci/Kconfig"
 
 source "drivers/pcmcia/Kconfig"
index 7eb5d78f5211d04782430eeb8c71b8083522f22f..6676cbcc8b6a37799633e2850fbc72540e825c24 100644 (file)
@@ -29,7 +29,7 @@ struct linux_pcic {
        int                     pcic_imdim;
 };
 
-#ifdef CONFIG_PCI
+#ifdef CONFIG_PCIC_PCI
 extern int pcic_present(void);
 extern int pcic_probe(void);
 extern void pci_time_init(void);
index 9cff2709a96df89576b460d1138199c79c4eb5c2..59a2256aee38245d3c77b79b0d04cd484d82fbdd 100644 (file)
@@ -73,7 +73,7 @@ obj-$(CONFIG_SPARC64_SMP) += cpumap.o
 
 obj-y                     += dma.o
 
-obj-$(CONFIG_SPARC32_PCI) += pcic.o
+obj-$(CONFIG_PCIC_PCI)    += pcic.o
 
 obj-$(CONFIG_SMP)         += trampoline_$(BITS).o smp_$(BITS).o
 obj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o
index 8341963f4c84c10f5974edfa6f10af7db42754bd..c4e61671134837b76274491678e5bebe97ff6d23 100644 (file)
@@ -1604,7 +1604,7 @@ restore_current:
        retl
         nop
 
-#ifdef CONFIG_PCI
+#ifdef CONFIG_PCIC_PCI
 #include <asm/pcic.h>
 
        .align  4
@@ -1650,7 +1650,7 @@ pcic_nmi_trap_patch:
         rd     %psr, %l0
        .word   0
 
-#endif /* CONFIG_PCI */
+#endif /* CONFIG_PCIC_PCI */
 
        .globl  flushw_all
 flushw_all:
This page took 0.028249 seconds and 5 git commands to generate.