Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146639
b: refs/heads/master
c: 0232ba9
h: refs/heads/master
i:
  146637: 50b8960
  146635: ef5844a
  146631: 23a838a
  146623: de07098
v: v3
  • Loading branch information
Paul Mundt committed Apr 16, 2009
1 parent 08dfbe6 commit 4659d4a
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 59 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: f1a9ba8f15f89f3f444985251efaf809cd16da53
refs/heads/master: 0232ba9ce031d0fd8f331fa8b3c00e16901f54e6
2 changes: 0 additions & 2 deletions trunk/arch/sh/drivers/pci/ops-landisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
.base = SH7751_CS3_BASE_ADDR,
.size = (64 << 20), /* 64MB */
},

.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/sh/drivers/pci/ops-lboxre2.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
.base = SH7751_CS3_BASE_ADDR,
.size = 0x04000000,
},
.window1 = {
.base = 0x00000000, /* Unused */
.size = 0x00000000, /* Unused */
},
.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sh/drivers/pci/ops-r7780rp.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ static struct sh4_pci_address_map sh7780_pci_map = {
.base = SH7780_CS3_BASE_ADDR,
.size = 0x04000000,
},

.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/sh/drivers/pci/ops-rts7751r2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
.base = SH7751_CS3_BASE_ADDR,
.size = 0x04000000,
},

.window1 = {
.base = 0x00000000, /* Unused */
.size = 0x00000000, /* Unused */
},

.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sh/drivers/pci/ops-sdk7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ static struct sh4_pci_address_map sdk7780_pci_map = {
.base = SH7780_CS3_BASE_ADDR,
.size = 0x04000000,
},
.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sh/drivers/pci/ops-se7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ static struct sh4_pci_address_map se7780_pci_map = {
.base = SH7780_CS2_BASE_ADDR,
.size = 0x04000000,
},
.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sh/drivers/pci/ops-sh7785lcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ static struct sh4_pci_address_map sh7785_pci_map = {
.size = 0x20000000,
#endif
},

.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sh/drivers/pci/ops-snapgear.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
.base = SH7751_CS2_BASE_ADDR,
.size = SNAPGEAR_LSR1_SIZE,
},

.flags = SH4_PCIC_NO_RESET,
};

/*
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sh/drivers/pci/ops-titan.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
.base = SH7751_CS2_BASE_ADDR,
.size = SH7751_MEM_REGION_SIZE*2,
},

.flags = SH4_PCIC_NO_RESET,
};

int __init pcibios_init_platform(void)
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/sh/drivers/pci/pci-sh4.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@
#define SH4_PCIPDTR_PB0 0x000000001 /* Port 0 Enable */
#define SH4_PCIPDR 0x220 /* Port IO Data Register */

/* Flags */
#define SH4_PCIC_NO_RESET 0x0001

/* arch/sh/kernel/drivers/pci/ops-sh4.c */
extern struct pci_ops sh4_pci_ops;
int sh4_pci_check_direct(struct pci_channel *chan);
Expand All @@ -165,7 +162,6 @@ struct sh4_pci_address_space {
struct sh4_pci_address_map {
struct sh4_pci_address_space window0;
struct sh4_pci_address_space window1;
unsigned long flags;
};

static inline void pci_write_reg(struct pci_channel *chan,
Expand Down
15 changes: 0 additions & 15 deletions trunk/arch/sh/drivers/pci/pci-sh7751.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,6 @@ int __init sh7751_pcic_init(struct pci_channel *chan,
word = SH4_PCIPINT_D3 | SH4_PCIPINT_D0;
pci_write_reg(chan, word, SH4_PCIPINT);

/*
* This code is unused for some boards as it is done in the
* bootloader and doing it here means the MAC addresses loaded
* by the bootloader get lost.
*/
if (!(map->flags & SH4_PCIC_NO_RESET)) {
/* toggle PCI reset pin */
word = SH4_PCICR_PREFIX | SH4_PCICR_PRST;
pci_write_reg(chan, word, SH4_PCICR);
/* Wait for a long time... not 1 sec. but long enough */
mdelay(100);
word = SH4_PCICR_PREFIX;
pci_write_reg(chan, word, SH4_PCICR);
}

/* set the command/status bits to:
* Wait Cycle Control + Parity Enable + Bus Master +
* Mem space enable
Expand Down
15 changes: 0 additions & 15 deletions trunk/arch/sh/drivers/pci/pci-sh7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,6 @@ int __init sh7780_pcic_init(struct pci_channel *chan,
{
u32 word;

/*
* This code is unused for some boards as it is done in the
* bootloader and doing it here means the MAC addresses loaded
* by the bootloader get lost.
*/
if (!(map->flags & SH4_PCIC_NO_RESET)) {
/* toggle PCI reset pin */
word = SH4_PCICR_PREFIX | SH4_PCICR_PRST;
pci_write_reg(chan, word, SH4_PCICR);
/* Wait for a long time... not 1 sec. but long enough */
mdelay(100);
word = SH4_PCICR_PREFIX;
pci_write_reg(chan, word, SH4_PCICR);
}

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

0 comments on commit 4659d4a

Please sign in to comment.