1. 16 Apr, 2009 2 commits
    • Magnus Damm's avatar
      sh: add init member to pci_channel data · d0e3db40
      Magnus Damm authored
      This patch adds an init callback to struct pci_channel and makes sure
      it is initialized properly. Code is added to call this init function
      from pcibios_init(). Return values are adjusted and a warning is is
      printed if init fails.
      Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      d0e3db40
    • Magnus Damm's avatar
      sh: pass along struct pci_channel · b8b47bfb
      Magnus Damm authored
      These patches rework the pci code for the sh architecture.
      
      Currently each board implements some kind of ioport to address mapping.
      Some boards use generic_io_base others try passing addresses as io ports.
      This is the first set of patches that try to unify the pci code as much
      as possible to avoid duplicated code. This will in the end lead to fewer
      lines board specific code and more generic code.
      
      This patch makes sure a struct pci_channel pointer is passed along to
      various pci functions such as pci_read_reg(), pci_write_reg(),
      pci_fixup_pcic(), sh7751_pcic_init() and sh7780_pcic_init().
      Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      b8b47bfb
  2. 15 Apr, 2009 38 commits