diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-12-30 11:24:17 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-12-30 11:24:17 -0500 |
commit | 613e09b46a86d454fb53f7e9eac5e240f1e3bacf (patch) | |
tree | 60e80514c17b299f7f2c262a650d165f2f949c71 /arch | |
parent | 47992cbdaef2f18a47871b2ed01ad27f568c8b73 (diff) |
[ARM] footbridge: set dc21285 clock rate from command line
Allow the footbridge clock rate to be specified on the kernel command
line. This allows us to work-around broken Personal Server firmware.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-footbridge/common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-footbridge/common.c b/arch/arm/mach-footbridge/common.c index 36ff06d4df15..26e444a3cffd 100644 --- a/arch/arm/mach-footbridge/common.c +++ b/arch/arm/mach-footbridge/common.c | |||
@@ -34,6 +34,13 @@ unsigned int mem_fclk_21285 = 50000000; | |||
34 | 34 | ||
35 | EXPORT_SYMBOL(mem_fclk_21285); | 35 | EXPORT_SYMBOL(mem_fclk_21285); |
36 | 36 | ||
37 | static void __init early_fclk(char **arg) | ||
38 | { | ||
39 | mem_fclk_21285 = simple_strtoul(*arg, arg, 0); | ||
40 | } | ||
41 | |||
42 | __early_param("mem_fclk_21285=", early_fclk); | ||
43 | |||
37 | static int __init parse_tag_memclk(const struct tag *tag) | 44 | static int __init parse_tag_memclk(const struct tag *tag) |
38 | { | 45 | { |
39 | mem_fclk_21285 = tag->u.memclk.fmemclk; | 46 | mem_fclk_21285 = tag->u.memclk.fmemclk; |