diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-01-25 00:25:31 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-01-26 17:32:18 -0500 |
commit | c8004a28186110657aa3e75135a6b96ebfa3e8f0 (patch) | |
tree | ac199954acf7aa7b9ead9a427eaf51362dde0c23 /include/asm-powerpc/mpc52xx.h | |
parent | 94d2dde738a50124d1f1b1b40bd5b9d0ed22e2e2 (diff) |
[POWERPC] Add common clock setting routine mpc52xx_psc_set_clkdiv()
PSC drivers should not access the CDM registers directly. Instead provide
a common routine for setting the PSC clock parameters with the required
locking.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/asm-powerpc/mpc52xx.h')
-rw-r--r-- | include/asm-powerpc/mpc52xx.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-powerpc/mpc52xx.h b/include/asm-powerpc/mpc52xx.h index 1c48c6d16335..81ef10b6b672 100644 --- a/include/asm-powerpc/mpc52xx.h +++ b/include/asm-powerpc/mpc52xx.h | |||
@@ -248,13 +248,19 @@ struct mpc52xx_cdm { | |||
248 | 248 | ||
249 | #ifndef __ASSEMBLY__ | 249 | #ifndef __ASSEMBLY__ |
250 | 250 | ||
251 | /* mpc52xx_common.c */ | ||
251 | extern unsigned int mpc52xx_find_ipb_freq(struct device_node *node); | 252 | extern unsigned int mpc52xx_find_ipb_freq(struct device_node *node); |
252 | extern void mpc5200_setup_xlb_arbiter(void); | 253 | extern void mpc5200_setup_xlb_arbiter(void); |
253 | extern void mpc52xx_declare_of_platform_devices(void); | 254 | extern void mpc52xx_declare_of_platform_devices(void); |
255 | extern void mpc52xx_map_common_devices(void); | ||
256 | extern int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv); | ||
257 | extern void mpc52xx_restart(char *cmd); | ||
254 | 258 | ||
259 | /* mpc52xx_pic.c */ | ||
255 | extern void mpc52xx_init_irq(void); | 260 | extern void mpc52xx_init_irq(void); |
256 | extern unsigned int mpc52xx_get_irq(void); | 261 | extern unsigned int mpc52xx_get_irq(void); |
257 | 262 | ||
263 | /* mpc52xx_pci.c */ | ||
258 | #ifdef CONFIG_PCI | 264 | #ifdef CONFIG_PCI |
259 | extern int __init mpc52xx_add_bridge(struct device_node *node); | 265 | extern int __init mpc52xx_add_bridge(struct device_node *node); |
260 | extern void __init mpc52xx_setup_pci(void); | 266 | extern void __init mpc52xx_setup_pci(void); |
@@ -262,9 +268,6 @@ extern void __init mpc52xx_setup_pci(void); | |||
262 | static inline void mpc52xx_setup_pci(void) { } | 268 | static inline void mpc52xx_setup_pci(void) { } |
263 | #endif | 269 | #endif |
264 | 270 | ||
265 | extern void __init mpc52xx_map_wdt(void); | ||
266 | extern void mpc52xx_restart(char *cmd); | ||
267 | |||
268 | #endif /* __ASSEMBLY__ */ | 271 | #endif /* __ASSEMBLY__ */ |
269 | 272 | ||
270 | #ifdef CONFIG_PM | 273 | #ifdef CONFIG_PM |