Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146646
b: refs/heads/master
c: c66c1d7
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Apr 17, 2009
1 parent 8d40bee commit 46f9426
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab78cbcf6877334fc20868b7df7887349e2e01c8
refs/heads/master: c66c1d79a94a7a302e2dc6c93da40902423eac3e
21 changes: 12 additions & 9 deletions trunk/arch/sh/drivers/pci/pci-sh7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@
#include <linux/delay.h>
#include "pci-sh4.h"

/*
* Initialization. Try all known PCI access methods. Note that we support
* using both PCI BIOS and direct access: in such cases, we use I/O ports
* to access config space.
*
* Note that the platform specific initialization (BSC registers, and memory
* space mapping) will be called via the platform defined function
* pcibios_init_platform().
*/
int __init sh7780_pci_init(struct pci_channel *chan)
{
unsigned int id;
Expand Down Expand Up @@ -70,19 +61,31 @@ int __init sh7780_pci_init(struct pci_channel *chan)
if ((ret = sh4_pci_check_direct(chan)) != 0)
return ret;

/*
* Platform specific initialization (BSC registers, and memory space
* mapping) will be called via the platform defined function
* pcibios_init_platform().
*/
return pcibios_init_platform();
}

extern u8 pci_cache_line_size;

int __init sh7780_pcic_init(struct pci_channel *chan,
struct sh4_pci_address_map *map)
{
u32 word;

/*
* Set the class and sub-class codes.
*/
__raw_writeb(PCI_CLASS_BRIDGE_HOST >> 8,
chan->reg_base + SH7780_PCIBCC);
__raw_writeb(PCI_CLASS_BRIDGE_HOST & 0xff,
chan->reg_base + SH7780_PCISUB);

pci_cache_line_size = pci_read_reg(chan, SH7780_PCICLS) / 4;

/* set the command/status bits to:
* Wait Cycle Control + Parity Enable + Bus Master +
* Mem space enable
Expand Down

0 comments on commit 46f9426

Please sign in to comment.