diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-02-02 01:27:07 -0500 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-05-25 11:04:34 -0400 |
commit | bd60299594fb1d28ae66563c9e76a0b89b0412cf (patch) | |
tree | be57b42058328220a29a03ab68970a3b2a12949d /arch/arm/mach-at91/generic.h | |
parent | 1b021a3b23a40be89c4f3fbe6f4696aa15141f26 (diff) |
at91: switch to CLKDEV_LOOKUP
we do not change the clock naming convention so does not need to switch
the AVR32 yet
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/generic.h')
-rw-r--r-- | arch/arm/mach-at91/generic.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index 50d46fa9ddb6..ecba94ee520b 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h | |||
@@ -8,6 +8,8 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/clkdev.h> | ||
12 | |||
11 | /* Map io */ | 13 | /* Map io */ |
12 | extern void __init at91rm9200_map_io(void); | 14 | extern void __init at91rm9200_map_io(void); |
13 | extern void __init at91sam9260_map_io(void); | 15 | extern void __init at91sam9260_map_io(void); |
@@ -50,8 +52,20 @@ extern struct sys_timer at91x40_timer; | |||
50 | 52 | ||
51 | /* Clocks */ | 53 | /* Clocks */ |
52 | extern int __init at91_clock_init(unsigned long main_clock); | 54 | extern int __init at91_clock_init(unsigned long main_clock); |
55 | /* | ||
56 | * function to specify the clock of the default console. As we do not | ||
57 | * use the device/driver bus, the dev_name is not intialize. So we need | ||
58 | * to link the clock to a specific con_id only "usart" | ||
59 | */ | ||
60 | extern void __init at91rm9200_set_console_clock(int id); | ||
61 | extern void __init at91sam9260_set_console_clock(int id); | ||
62 | extern void __init at91sam9261_set_console_clock(int id); | ||
63 | extern void __init at91sam9263_set_console_clock(int id); | ||
64 | extern void __init at91sam9rl_set_console_clock(int id); | ||
65 | extern void __init at91sam9g45_set_console_clock(int id); | ||
66 | extern void __init at91cap9_set_console_clock(int id); | ||
67 | extern void __init at572d940hf_set_console_clock(int id); | ||
53 | struct device; | 68 | struct device; |
54 | extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func); | ||
55 | 69 | ||
56 | /* Power Management */ | 70 | /* Power Management */ |
57 | extern void at91_irq_suspend(void); | 71 | extern void at91_irq_suspend(void); |