Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: sh/pci-rework
Commits on Apr 24, 2009
  1. sh: pci: Fix up the build for CONFIG_PCI=n.

    authored
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Commits on Apr 20, 2009
  1. sh: pci: Rename pci-new.c to pci.c.

    authored
    pci-new.c is now in a state to replace the old pci.c, rename it
    accordingly.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  2. sh: pci: Roll pci-lib in to pci-new.

    authored
    Now that the pci-auto cruft is gone, pci-lib can go away.
    Roll it back in to pci-new.c where it originally split off from.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  3. sh: pci: Kill off the last remnants of the now unused pci-auto code.

    authored
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  4. sh: pci: Move the se7751 fixups in to arch/sh/drivers/pci/.

    authored
    The se7751 was still doing the PCI fixups in its own board directory,
    so we move it over to arch/sh/drivers/pci/ with the rest of the board
    fixups. It has bitrotted significantly over the years, so will still
    likely need a bit of work to bring back up to date.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  5. sh: pci: Convert dreamcast to new-style interface.

    authored
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  6. sh: pci: Consolidate lboxre2 and r2d IRQ fixups.

    authored
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  7. sh: pci: Rename SH7751 platform ops files to fixups.

    authored
    None of these contain pci_ops, only IRQ routing bits, rename them
    accordingly.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  8. sh: pci: Rewrite SH7751 PCI support to follow SH7780.

    authored
    This follows the similar sort of scheme that the refactored SH7780 code
    uses, using a 64MB CS3 mapping to handle the window0 case, and simply
    discarding window1. This vastly simplifies the code, and allows most of
    the board-specific setup to go die.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  9. sh: pci: Rename ops-cayman -> fixups-cayman.

    authored
    Now that ops-cayman.c only contains IRQ routing fixups, rename it.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  10. sh: pci: Convert the SH-5 code over to the new interface.

    authored
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  11. sh: pci: Tidy up the dreamcast PCI support.

    authored
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  12. sh: pci: Kill off legacy ide quirks.

    authored
    These fixups seem to have bitrotted a bit since their introduction in the
    2.4 days. As we never had much use for them in the first place, and
    nothing is using them any more, kill them off the rest of the way.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  13. sh: pci: Consolidate pcibios_setup() in pci-lib.

    authored
    This wasn't really being used for anything useful, so just stub it in
    pci-lib.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  14. sh: pci: Kill off dead references to is_pci_ioaddr and friends.

    authored
    Some old boards are still using this in their I/O routines, kill it off.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  15. sh: pci: Flag the dreamcast BBA as IORESOURCE_PCI_FIXED.

    authored
    This isn't a real BAR, so prevent any attempts to move it, as we don't
    wish to encourage a bus luck by overzealous PCI initialization code.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  16. sh: pci: Kill off superfluous lboxre2 pci fixups.

    authored
    This is a verbatim copy of the r2d one, use that instead.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  17. sh: pci: Kill off the now unused hose->io_base.

    authored
    Nothing is using this any more, so kill it off.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  18. sh: pci: Consolidate the remaining common bits.

    authored
    This moves the remaining common bits in to pci-lib. Thereby reducing
    pci.c/pci-new.c to simple bus fixups and controller registration.
    
    As more platforms are moved over, the old code will disappear completely
    and the pci-new bits will be rolled in to pci-lib, eventually replacing
    pci.c completely.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  19. sh: pci: Consolidate bus<->resource mapping in pci-lib.

    authored
    Now that the io and mem offsets are tracked accordingly, the pci-new
    version of the bus<->resource mappers can be used generically. This
    moves them in to pci-lib.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  20. sh: pci: Track io and mem_offset per-channel.

    authored
    This implements a per-hose offset for I/O and mem resources.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  21. sh: pci: New-style controller registration.

    authored
    This moves off of the board_pci_channels[] approach for bus registration
    and over to a cleaner register_pci_controller(), all derived from the
    MIPS code.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  22. sh: pci: Rework fixed region checks in ioremap().

    authored
    Not all PCI channels have non-translatable memory windows, this is a
    special property of the on-chip PCIC with its 0xfd00... mapping, handle
    this explicitly.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  23. sh: pci: Consolidate pci_iomap() and use the generic I/O base.

    authored
    This consolidates the pci_iomap() definitions and reworks how the I/O
    port base is handled. PCI channels can register their own I/O map base,
    or if none is provided, the system-wide generic I/O base is used instead.
    
    Functionally nothing changes, while this allows us to kill off lots of
    I/O address special casing and lookups.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  24. sh: pci: Kill off unused pcibios_fixup().

    authored
    This is left over cruft that hasn't been used by anything in a long time,
    kill off bits that weren't purged previously.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  25. sh: pci: Consolidate pcibios_align_resource() definitions.

    authored
    This introduces a saner pcibios_align_resource() that can be used
    regardless of whether pci-auto or pci-new are being used, and
    consolidates it in pci-lib.c.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  26. sh: pci: HAVE_PCI_MMAP support.

    authored
    Derived from the MIPS version, now uses pgprot_noncached().
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  27. sh: pci: Split out new-style PCI core.

    authored
    This splits off a 'pci-new.c' which is aimed at gradually replacing the
    pci-auto backend and the arch/sh/drivers/pci/pci.c core respectively.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  28. sh: pci: Drop asm-generic/pci.h, so we can use our own fixups.

    authored
    The new PCI code wants its own bus<->resource mappings instead of the
    generic equivalents, so drop the asm-generic include in preparation.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Commits on Apr 17, 2009
  1. sh: pci: Start unifying the SH7780 PCIC initialization.

    authored
    This starts moving out the common initialization bits from the various
    fixup paths in to the shared init path.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  2. sh: pci: Consolidate SH7780 PCIC IRQ routing.

    authored
    Now that the platform code is a bit leaner, we can start consolidating
    the various IRQ routing implementations. There are effectively only 2
    variants, and the others can use those directly.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  3. sh: pci: Kill off platform-specific multi-window mappings.

    authored
    Commit 68b42d1 ("sh: sh7785lcr: Map
    whole PCI address space.") changed around the semantics of how various
    chip-selects are made accessible to PCI. Now that there is a single
    large mapping covering from CS0-CS6, there is no longer any need to
    do multi-window mapping. Subsequently, all of the differing
    implementations can be consolidated in to pci-sh7780.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  4. sh: pci: Consolidate PCI I/O and mem window definitions for SH7780.

    authored
    This consolidates all of the PCI I/O and memory window definitions across
    the pci-sh7780 users in pci-sh7780 itself. No functional changes, in that
    every platform had exactly the same implementation.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  5. sh: pci: Set the I/O port base to the SH7780 I/O window default.

    authored
    Presently the I/O port base isn't being set anywhere, which allows things
    like generic_inl() to blow up. Fix this up to point at the PCI IO window.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  6. sh: pci: Set pci_cache_line_size on SH7780 via the PCICLS register.

    authored
    The SH7780 PCIC contains a read-only cache line size register that we can
    derive pci_cache_line_size from. So, make sure that the software idea of
    the cache line size actually matches the host controller's idea.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Something went wrong with that request. Please try again.