From d2b954bb400fa9db5bcf9080f1b05d6c2d9545e5 Mon Sep 17 00:00:00 2001 From: Vitaly Bordug Date: Thu, 1 Dec 2005 00:51:15 -0800 Subject: [PATCH] --- yaml --- r: 14849 b: refs/heads/master c: 42ea0d037860690dde07a015d3473a17da35f74a h: refs/heads/master i: 14847: 92d0216f28c7d55d581d98ede6b6a795bcfca9a3 v: v3 --- [refs] | 2 +- trunk/arch/ppc/syslib/m82xx_pci.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a6cd29522654..fd2d1f4d7dd2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 00c1bd54d8c7b6210530cdbb3508125a0bf4a32b +refs/heads/master: 42ea0d037860690dde07a015d3473a17da35f74a diff --git a/trunk/arch/ppc/syslib/m82xx_pci.c b/trunk/arch/ppc/syslib/m82xx_pci.c index 1d1c3956c1ae..1941a8c7ca9a 100644 --- a/trunk/arch/ppc/syslib/m82xx_pci.c +++ b/trunk/arch/ppc/syslib/m82xx_pci.c @@ -248,7 +248,8 @@ pq2ads_setup_pci(struct pci_controller *hose) pci_div = ( (sccr & SCCR_PCI_MODCK) ? 2 : 1) * ( ( (sccr & SCCR_PCIDF_MSK) >> SCCR_PCIDF_SHIFT) + 1); freq = (uint)((2*binfo->bi_cpmfreq)/(pci_div)); - time = (int)666666/freq; + time = (int)66666666/freq; + /* due to PCI Local Bus spec, some devices needs to wait such a long time after RST deassertion. More specifically, 0.508s for 66MHz & twice more for 33 */ printk("%s: The PCI bus is %d Mhz.\nWaiting %s after deasserting RST...\n",__FILE__,freq,