From 613e09b46a86d454fb53f7e9eac5e240f1e3bacf Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 30 Dec 2008 16:24:17 +0000 Subject: [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 --- arch/arm/mach-footbridge/common.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/arm/mach-footbridge/common.c') 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; 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; -- cgit v1.2.2 From 39ebfd3f0d58a89f29097f99a1de50c096375ee2 Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Thu, 8 Jan 2009 15:42:41 +0000 Subject: [ARM] footbridge: add isa_init_irq() to common header isa_init_irq() is defined in arch/arm/mach-footbridge/isa-irq.c and used in arch/arm/mach-footbridge/common.c but there is no definition in any header. Move the definition in common.c to common.h to stop the sparse warning: isa-irq.c:118:13: warning: symbol 'isa_init_irq' was not declared. Signed-off-by: Ben Dooks --- arch/arm/mach-footbridge/common.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'arch/arm/mach-footbridge/common.c') diff --git a/arch/arm/mach-footbridge/common.c b/arch/arm/mach-footbridge/common.c index 36ff06d4df15..aad270b76311 100644 --- a/arch/arm/mach-footbridge/common.c +++ b/arch/arm/mach-footbridge/common.c @@ -28,8 +28,6 @@ #include "common.h" -extern void __init isa_init_irq(unsigned int irq); - unsigned int mem_fclk_21285 = 50000000; EXPORT_SYMBOL(mem_fclk_21285); -- cgit v1.2.2