[PATCH 1/1] TX4938: Bugfix for PCI 66MHz of Toshiba RBHMA4500(TX4938)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

This patch is against latest cvs.
Could you review it?

	Hiroshi DOYU

----
Bugfix for handling PCI 66MHz correctly

Signed-off-by: Hiroshi DOYU <hdoyu@xxxxxxxxxx>

 setup.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

Index: mipslinux/arch/mips/tx4938/toshiba_rbtx4938/setup.c
===================================================================
--- mipslinux.orig/arch/mips/tx4938/toshiba_rbtx4938/setup.c
+++ mipslinux/arch/mips/tx4938/toshiba_rbtx4938/setup.c
@@ -411,7 +411,8 @@
 	tx4938_ccfgptr->ccfg |= TX4938_CCFG_PCI66;
 	/* Double PCICLK (if possible) */
 	if (tx4938_ccfgptr->pcfg & TX4938_PCFG_PCICLKEN_ALL) {
-		unsigned int pcidivmode = 0;
+		unsigned int pcidivmode =
+			tx4938_ccfgptr->ccfg & TX4938_CCFG_PCIDIVMODE_MASK;
 		switch (pcidivmode) {
 		case TX4938_CCFG_PCIDIVMODE_8:
 		case TX4938_CCFG_PCIDIVMODE_4:


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux