summaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/setup.c')
-rw-r--r--target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/setup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/setup.c b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/setup.c
index 41e6415e8..01d324977 100644
--- a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/setup.c
+++ b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/setup.c
@@ -78,8 +78,11 @@ ifxmips_get_cpu_hz(void)
return CLOCK_333M;
case 4:
return DDR_HZ;
+ case 8:
+ return DDR_HZ << 1;
+ default:
+ return DDR_HZ >> 1;
}
- return DDR_HZ >> 1;
}
EXPORT_SYMBOL(ifxmips_get_cpu_hz);