Skip to content

Commit

Permalink
sparc32: added CONFIG_PCIC_PCI Kconfig setting
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Daniel Hellstrom authored and David S. Miller committed Jun 2, 2011
1 parent 1fa7b6a commit cfe3af5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/include/asm/pcic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions arch/sparc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ restore_current:
retl
nop

#ifdef CONFIG_PCI
#ifdef CONFIG_PCIC_PCI
#include <asm/pcic.h>

.align 4
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit cfe3af5

Please sign in to comment.