]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] footbridge: set dc21285 clock rate from command line
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 30 Dec 2008 16:24:17 +0000 (16:24 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 30 Dec 2008 16:24:17 +0000 (16:24 +0000)
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>
arch/arm/mach-footbridge/common.c

index 36ff06d4df15e30ba0272ee5645a811aa0f6b9cf..26e444a3cffd860aa8758d25baa9312a316bb23a 100644 (file)
@@ -34,6 +34,13 @@ unsigned int mem_fclk_21285 = 50000000;
 
 EXPORT_SYMBOL(mem_fclk_21285);
 
+static void __init early_fclk(char **arg)
+{
+       mem_fclk_21285 = simple_strtoul(*arg, arg, 0);
+}
+
+__early_param("mem_fclk_21285=", early_fclk);
+
 static int __init parse_tag_memclk(const struct tag *tag)
 {
        mem_fclk_21285 = tag->u.memclk.fmemclk;