Skip to content

Add PCI support on nios2 architecture

Ley Foon Tan linux-arch linux-pci lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- nios2: remove PCI_SYSCALL from Kconfig
- nios2: set IO_SPACE_LIMIT to 0xffff
- nios2: remove arch/nios2/include/asm/pci.h and use asm-generic pci.h
- pci: add include <linux/dma-mapping.h> to pci.c
- asm-generic: add pci generic functions/defines to pci.h

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4asm-generic: add pci required defines and functionsinclude/asm-generic/pci.h+34 -00 replies
2/4pci: add include <linux/dma-mapping.h>drivers/pci/pci.c+1 -00 replies
3/4PCI: Build setup-irq.o for nios2drivers/pci/Makefile+1 -00 replies
4/4nios2: Add architectural support for PCIearch/nios2/Kconfig arch/nios2/include/asm/Kbuild arch/nios2/include/asm/io.h +2 more+66 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Add PCI support on nios2 architecture

This is 2nd version of patch to add pci support for nios2 architecture. This patchset also update asm-generic/pci.h to include PCI generic define/function as suggested by Arnd.
It requires pci_fixup_irqs() from setup-irq.c.

v1->v2 changes:
- nios2: remove PCI_SYSCALL from Kconfig
- nios2: set IO_SPACE_LIMIT to 0xffff
- nios2: remove arch/nios2/include/asm/pci.h and use asm-generic pci.h
- pci: add include <linux/dma-mapping.h> to pci.c
- asm-generic: add pci generic functions/defines to pci.h

History
-------
[v1]: https://lkml.org/lkml/2015/9/22/44

Ley Foon Tan (4):
asm-generic: add pci required defines and functions
pci: add include <linux/dma-mapping.h>
PCI: Build setup-irq.o for nios2
nios2: Add architectural support for PCIe

 arch/nios2/Kconfig            | 21 +++++++++++++++++++++
 arch/nios2/include/asm/Kbuild |  1 +
 arch/nios2/include/asm/io.h   | 12 ++++++++++--
 arch/nios2/kernel/Makefile    |  1 +
 arch/nios2/kernel/pci.c       | 33 +++++++++++++++++++++++++++++++++
 drivers/pci/Makefile          |  1 +
 drivers/pci/pci.c             |  1 +
 include/asm-generic/pci.h     | 34 ++++++++++++++++++++++++++++++++++
 8 files changed, 102 insertions(+), 2 deletions(-)
 create mode 100644 arch/nios2/kernel/pci.c
Signature · 1 line
1.8.2.1