diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-11-04 18:42:33 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-11-04 18:42:33 -0500 |
commit | 4f59ecfa9b87da09bdc346f2c443e25fa2c0674c (patch) | |
tree | 39a935e77cfe9119f9b6b2aa9ab6ded6ef09a897 /arch/powerpc/include/asm/mpc52xx.h | |
parent | 42bbb70980f3720b0ae6da6af862af0e95a04351 (diff) |
powerpc/5200: add general purpose timer API for the MPC5200
This patch adds an interface for controlling the timer function of the
MPC5200 GPT devices.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/include/asm/mpc52xx.h')
-rw-r--r-- | arch/powerpc/include/asm/mpc52xx.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mpc52xx.h b/arch/powerpc/include/asm/mpc52xx.h index 1b4f697abbd..671685011a2 100644 --- a/arch/powerpc/include/asm/mpc52xx.h +++ b/arch/powerpc/include/asm/mpc52xx.h | |||
@@ -276,6 +276,13 @@ extern int mpc52xx_set_psc_clkdiv(int psc_id, int clkdiv); | |||
276 | extern unsigned int mpc52xx_get_xtal_freq(struct device_node *node); | 276 | extern unsigned int mpc52xx_get_xtal_freq(struct device_node *node); |
277 | extern void mpc52xx_restart(char *cmd); | 277 | extern void mpc52xx_restart(char *cmd); |
278 | 278 | ||
279 | /* mpc52xx_gpt.c */ | ||
280 | struct mpc52xx_gpt_priv; | ||
281 | extern struct mpc52xx_gpt_priv *mpc52xx_gpt_from_irq(int irq); | ||
282 | extern int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, int period, | ||
283 | int continuous); | ||
284 | extern void mpc52xx_gpt_stop_timer(struct mpc52xx_gpt_priv *gpt); | ||
285 | |||
279 | /* mpc52xx_pic.c */ | 286 | /* mpc52xx_pic.c */ |
280 | extern void mpc52xx_init_irq(void); | 287 | extern void mpc52xx_init_irq(void); |
281 | extern unsigned int mpc52xx_get_irq(void); | 288 | extern unsigned int mpc52xx_get_irq(void); |