aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pci
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-07-23 11:25:15 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-07-30 16:54:38 -0400
commit07517529225ae4ce770271f83d8cd1004733a01d (patch)
treeb033a54238d5fc65faa81c6cb40cba90a7984a52 /arch/mips/pci
parent47a5c976486e407fc0d0bc8fa165132b6f9bec26 (diff)
[MIPS] TXx9: Add some pci options
Add pci options for backplane type, clock selection, error handling, timeout values. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci')
-rw-r--r--arch/mips/pci/ops-tx4927.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/mips/pci/ops-tx4927.c b/arch/mips/pci/ops-tx4927.c
index 6d844094ef5d..038e311b069d 100644
--- a/arch/mips/pci/ops-tx4927.c
+++ b/arch/mips/pci/ops-tx4927.c
@@ -194,6 +194,28 @@ static struct {
194 .gbwc = 0xfe0, /* 4064 GBUSCLK for CCFG.GTOT=0b11 */ 194 .gbwc = 0xfe0, /* 4064 GBUSCLK for CCFG.GTOT=0b11 */
195}; 195};
196 196
197char *__devinit tx4927_pcibios_setup(char *str)
198{
199 unsigned long val;
200
201 if (!strncmp(str, "trdyto=", 7)) {
202 if (strict_strtoul(str + 7, 0, &val) == 0)
203 tx4927_pci_opts.trdyto = val;
204 return NULL;
205 }
206 if (!strncmp(str, "retryto=", 8)) {
207 if (strict_strtoul(str + 8, 0, &val) == 0)
208 tx4927_pci_opts.retryto = val;
209 return NULL;
210 }
211 if (!strncmp(str, "gbwc=", 5)) {
212 if (strict_strtoul(str + 5, 0, &val) == 0)
213 tx4927_pci_opts.gbwc = val;
214 return NULL;
215 }
216 return str;
217}
218
197void __init tx4927_pcic_setup(struct tx4927_pcic_reg __iomem *pcicptr, 219void __init tx4927_pcic_setup(struct tx4927_pcic_reg __iomem *pcicptr,
198 struct pci_controller *channel, int extarb) 220 struct pci_controller *channel, int extarb)
199{ 221{